Skip to content

Commit

Permalink
Add label properties description to spec
Browse files Browse the repository at this point in the history
Migrated from: ome/omero-ms-zarr#79
  • Loading branch information
Draga Doncila Pop authored and joshmoore committed Nov 25, 2020
1 parent c6d7d84 commit 89756cf
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions latest/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ should ignore all except the _last_ entry.
Some implementations may represent overlapping labels by using a specially assigned
value, for example the highest integer available in the pixel range.

The `properties` key defines a list of JSON objects which also describes the unique
label values. Each entry in the list MUST contain the key "label-value" with the
pixel value for that label. Additionally, an arbitrary number of key-value pairs
MAY be present for each label value denoting associated metadata. Not all label
values must share the same key-value pairs within the properties list.

The `source` key is an optional dictionary which contains information on the
image the label is associated with. If included it MAY include a key `image`
whose value is the relative path to a Zarr image group. The default value is
Expand All @@ -265,11 +271,24 @@ above).
"rgba": [0, 255, 255, 128]
},
...
],
"properties": [
{
"label-value": 1,
"area (pixels)": 1200,
"class": "foo"

},
{
"label-value": 4,
"area (pixels)": 1650
},
...
]
},
"source": {
"image": "../../"
}
},
"source": {
"image": "../../"
}
]
```

Expand Down

0 comments on commit 89756cf

Please sign in to comment.