Open-Science-Tools / nd2reader

Pure Python library for reading NIS Elements ND2 images and metadata
http://www.lighthacking.nl/nd2reader
GNU General Public License v3.0
45 stars 28 forks source link

Issue to open stitched RGB nd2 files (related to issue #17) #45

Open bioimage-analysis opened 3 years ago

bioimage-analysis commented 3 years ago

Hi @rbnvrw ,

I recently tried to open an nd2 image with nd2read and I have a very similar issue than issue #17, when I tried to open it with Bioformats or PIMS nd2-reader, the image is distorted. In nd2reader, it seems that the image is skipping line and the format is off. It's an 8Bits RGB image as such in Elements:

Screen Shot 2021-02-06 at 9 58 33 PM

And it becomes a float 64 in nd2reader:

Screen Shot 2021-02-06 at 9 59 39 PM

pims and bioformats does open it as an 8bits image but it distorted

Screen Shot 2021-02-06 at 10 01 39 PM

Here is the file if by any chance you can take a look:

https://github.com/bioimage-analysis/Files/blob/master/error.nd2

ggirelli commented 3 years ago

Hi! Thanks for sharing the file :) I will have a look at this next week as I got my hands on some other problematic stitched nd2 files from some colleagues.