ome / omero-ms-zarr

Experimental micro-service for implementing the Zarr spec over HTTP
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
17 stars 12 forks source link

Labels: change colors to array of dict #68

Closed manics closed 4 years ago

manics commented 4 years ago

Alternative proposal to https://github.com/ome/omero-ms-zarr/pull/65

Each item has the format

{
    "label": INTEGER_PIXEL_VALUE,
    "rgba": RGBA_COLOUR
}

Items are in order of ascending label value

Advantages of this format are labels can be any non-negative integer value, they do not need to be consecutive. It also means the label is stored as an integer not a stringified-integer, and it supports future extensibility for another color model if necessary.

joshmoore commented 4 years ago

Closed in favor of https://github.com/ome/omero-ms-zarr/pull/71