Skip to content

Commit

Permalink
Merge pull request #3 from joshmoore/add-label-properties-spec
Browse files Browse the repository at this point in the history
Add label properties description to spec
  • Loading branch information
joshmoore committed Nov 30, 2020
2 parents 37f0223 + 89756cf commit f004687
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 @@ -296,6 +296,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 @@ -317,11 +323,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 f004687

Please sign in to comment.