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
data.lily() is 4-channel 12-bit, 3 color channels + diascopic DIC channel, not as stated in docs #7152
Comments
Thanks for the report @kwikwag! Yeah I don't think we have a good story now for 12-bit images, even though they are very common in microscopy. Perhaps we can have a keyword argument to the conversion functions, Would you want to contribute an update to the dataset docstring and to the documentation example? (Though I'm not sure how to update that example specifically... Special-case Lily?) |
Hi @kwikwag, Thanks for the detailed issue. Don't hesitate to submit an update to both the gallery example and the data documentation! Looping in @GenevieveBuckley who contributed the image in the first place. Thanks again. |
Unfortunately I cannot push this forward... |
Hi @kwikwag It's not entirely clear what the request in your issue is. I think there are three things mentioned here:
Thoughts:
There is some background information about the lily image and metadata here: https://gitlab.com/scikit-image/data/-/merge_requests/6 If one of the channels is DIC, that might make sense with why we saw two channels labelled with the same laser wavelength in the metadata. I assumed the settings were weird because this image was from my first training session on how to use the microscope, so we probably did a bunch of stuff that wouldn't make sense in an actual experiment. References: |
Hello scikit-image core devs! There hasn't been any activity on this issue for more than 180 days. I have marked it as "dormant" to make it easy to find. |
Description:
The
lily
image is different than all other images indata
. Even in the example code from the docs trying to render it produces a warning - and rightfully so.Documentation says it was produced by a Nikon C1 inverted microscope. From a quick search online (brochure, press release and software manual) it turns out images produced by the microscope are 12-bit and with a maximum of 3 fluorescence channels + 1 transmission diascopic DIC channel. The docs say it's 16-bit (which is indeed the 'container' dtype, but not the actual data type), 4 color channels (when in fact one of them is a DIC channel). I'm no microscope expert so I'm not sure how to render it, but I think something along the lines of
x[:, :, :3] * x[:, :, 3]
assumingx
is a scaled floating-point type (0..1) should be close to correct.It'd be nice if the example code is corrected. Also, consider modifying the image to reflect correct interpretation of the data (e.g. it should pass
img_to_ubyte
nicely - which is doesn't currently), or perhaps providing it as two separate images - a 3-color image + a grayscale DIC image. Perhaps reach out to whomever contributed the image in the first place.Way to reproduce:
Run the example provided by scikit-image documentation.
Version information:
The text was updated successfully, but these errors were encountered: