-
Notifications
You must be signed in to change notification settings - Fork 3
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
Compatibility with bdv-playground xml format #27
Comments
Hi, I think it is defined as in looks like:
The color is specified as ARGB values. I wonder how we can map it to the ColorMap strings from MoBIE. |
I found these base colors, but there are some more apparently. Where are these defined? randomFromGlasbey is only used by MobIE (google finds nothing else...) |
We support ARGB as well, see https://github.com/mobie/mobie.github.io/blob/master/schema/view.schema.json#L24-L27. |
Hi @constantinpape,
We added a custom attribute in the xml file, which is currently defined in https://github.com/NicoKiaru/bigdataviewer-spimdata-extras/blob/master/src/main/java/spimdata/util/XmlIoDisplaysettings.java . These can be modified in order to store a json string reprensentation into the xml tag. No issue to modifiy this one for better compatibility |
OK, cool. |
Ok, this should be straight forward to translate to our
|
ìsset` is not a good name, I think it is false when the source/image is of type RGB, in which case the color is ignored |
Ah ok, then I misinterpreted this. What exactly does it do? |
Yes, it's lacking documentation. The color field is used/applied if the image pixel is a single numerical value (=single channel). For ImgLib2, this means the underlying pixels are unsigned short, unsigned byte, etc. But I also need to handle the case of images where the pixel type is argb - typically histology images which have been acquired with color cameras. In this case, there's no color which needs to be applied to pixels values - the original rgb value is displayed (ok, maybe with some min max rescaling). In this case the color field of display settings is ignored, and the isset flag should be set to false. If you don't have rgb images, you can just set the flag to false. Again, we can change this spec. I don't have time to have a look now, but we can discuss this next week. I think it would be nice if we can already specify some layer index, even if it's not supported yet. |
This is exciting guys! |
I think that's a good point. I think the integer encoded ARGBType is useful (could be also useful for ome.ngff to store RGB images without having to worry about adding an additional color dimension, ping @joshmoore ):
However, the data type currently is not specified in the bdv xml which means one cannot know whether this should be opened as normal integer image or as an ARGBType. What about adding a required field |
@NicoKiaru thanks for the clarification, makes sense now. I don't quite understand what you mean by "layer index" though:
I like the idea, but I wouldn't use the name |
At least in ImgLib2, I think, |
I am happy with choosing something else than |
Happy to open up the discussion again but if I'm understanding correctly (IIUC) I think I made the argument to not include specialized types and had at least some supporters on an NGFF call (I'd have to check the notes). The reasoning was that the (a)rgb logic in, e.g., Bio-Formats can already get fairly complicated, and now we have a ND spec and can make use of it. |
@joshmoore OK! Just wanted to ping you in case it was useful. Let's see how the ND NGFF spec develops for ARGB sort of images! |
@constantinpape what about |
I think |
@tischi @martinschorb @NicoKiaru
Let's move the discussion about the MoBIE and bdv playground metadata here.
Specifically:
The text was updated successfully, but these errors were encountered: