Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add label properties description to spec #79

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,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 @@ -171,11 +177,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