Skip to content

Commit

Permalink
Add optional image key
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Li <[email protected]>
  • Loading branch information
sbesson and manics authored Jul 17, 2020
1 parent 228fbff commit 6add680
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,26 @@ the value is an RGBA color (4 byte, `0-255` per channel) for representing the ob
"1": 8388736,
...
```
### "image"

The `image` key is an optional dictionary which contains information on the image the mask is associated with.
If included it must include a key `array` whose value that is either:
- A relative path to a Zarr image array, for example:
```
{
"image": {
"array": "../../0"
}
}
```
- A URL to a Zarr image array (use this if the mask is stored seperately from the image Zarr), for example:
```
{
"image": {
"array": "https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001240.zarr/0"
}
}
```
Expand Down

0 comments on commit 6add680

Please sign in to comment.