mobie / mobie-viewer-fiji

BSD 2-Clause "Simplified" License
29 stars 12 forks source link

Read colours from OME-Zarr omero #1143

Open tischi opened 1 month ago

tischi commented 1 month ago

https://forum.image.sc/t/mobie-ome-zarr-hcs-use-zattrs-omero-channel-color/96491/3

To do this I would need parse the .zattrs JSON, ideally directly into a corresponding Java class. @joshmoore do you know whether there is already Java code somewhere that I could steal?

Something that would allow me to do something like:

 MultiscalesAndOmero mao = gson.fromJson( zattrsJson, new TypeToken< MultiscalesAndOmero >() {}.getType() );