Skip to content
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

ND2: Skewed image display #3661

Open
dgault opened this issue Feb 9, 2021 · 10 comments
Open

ND2: Skewed image display #3661

dgault opened this issue Feb 9, 2021 · 10 comments

Comments

@dgault
Copy link
Member

dgault commented Feb 9, 2021

Image was raised on imagesc thread https://forum.image.sc/t/bfconvert-nd2-rgb-to-stack-of-tiff-grays-channels/48360/7
A sample file reproducing the issue with Bio-Formats 6.6.0 can be found at https://github.com/bioimage-analysis/Files/blob/bd6977bbfb5081ba74d6202b3faf5b92ae1529f2/error.nd2

Opening the file with Elements Viewer suggests that the basic metadata (dimensions, pixel type etc) are correct.
In Elements Viewer the image displays as:

107138018-88a10780-68c6-11eb-8ac8-fb465d10e7d9

With Bio-Formats the image is displaying as:

107138061-e59cbd80-68c6-11eb-8d74-aa5ccd16658c

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/bfconvert-nd2-rgb-to-stack-of-tiff-grays-channels/48360/9

@loicsauteur
Copy link

Hi @dgault

I wanted to mention that I have observed the same issue.
A few RGB images saved as .nd2 would produce that, when opened with Bio-Formats (via Fiji). Sometimes, during the same imaging session, using the same acquisition/saving procedure, only a fraction of the nd2 files would give this skewed images (I could not identify a pattern).
Re-opening them in NIS and saving them as tif or ome.tif solves this problem, as mentioned in the forum thread above.

FYI:

  • only observed with RGB cameras, using a Nikon DS-Ri2 and DS-Fi3 (the two RGB camera types we have)
  • observed for several NIS 5-version (5.02_b1266, 5.11.03_1373, 5.20.02_b1453 and 5.21.03_b1489)

Could you find already a solution?

I have more example nd2 files if needed and can provide you a download link.

Thanks and bests.

@dgault
Copy link
Member Author

dgault commented Aug 12, 2021

Hi @loicsauteur, thank you for the additional details, unfortunately we do not yet have a solution for this particular bug. If you have any sample files showing the issue it would always be helpful.

@loicsauteur
Copy link

Please find 9 nd2 files with following link (will expire):
https://filesender.switch.ch/filesender2/?s=download&token=d658ddd7-027a-44f8-8a85-29bc328d0101
8 of them are opening showing problems, one of them is opening normally.
The biggest one might be a different problem... probably the only time I have seen that...

@dgault
Copy link
Member Author

dgault commented Aug 17, 2021

Thanks @loicsauteur for the sample images, they are a great help. With the latest Bio-Formats (6.6.1) I am seeing the skewing issue pretty clearly in 6 of them, however HistologzNikonMPVIVO_M2S2-75-25_HE_R2.3.nd2 and HistologzNikonMPVIVO_M1S2-25-75_HE_3.nd2 appear to open correctly. Are you seeing the same issue with those 2 files or is it a different problem?

@loicsauteur
Copy link

loicsauteur commented Aug 17, 2021

Yes, 6 of them have the described skewing error.

HistologzNikonMPVIVO_M2S2-75-25_HE_R2.3.nd2 is one that opens correctly. It is from a same acquisition session as some of the other images. May serve you as control...

HistologzNikonMPVIVO_M1S2-25-75_HE_3.nd2 opens almost correctly. The bottom part is screwed up... (see FIJI vs. NIS comparison below). Probably a different problem and maybe rather related to its size (and number of pixels, coming close to Java's limitation?). This problem is very rare, I observed it maybe 2-3 times. But I thought it may also be related...

Screenshot 2021-08-17 at 16 06 15

(Edit)
If it helps: with the Bio-Formats 6.7.0 release, one more image is opening correctly: HistologzNikonMPVIVO_M2S6-25-75_HE_R2.2

@dgault
Copy link
Member Author

dgault commented May 25, 2022

An additional report of this issue has been received on forum thread: https://forum.image.sc/t/problem-with-nd2-large-image-stitch-opening-strange-with-bioformats-on-fiji/67319/5

A sample image showing the skewed image was provided and the error could be reproduced using Bio-Formats 6.9.1.
In this case the image originally came from NIS Elements v4.3.

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/problem-with-nd2-large-image-stitch-opening-strange-with-bioformats-on-fiji/67319/6

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/problem-with-nd2-large-image-stitch-opening-strange-with-bioformats-on-fiji/67319/9

@dgault
Copy link
Member Author

dgault commented Jul 23, 2024

An additional report of this issue with 5 sample files showing the same skewed displayed can be found at /uod/idr/scratch/panama_nd2

4 of the files show the same issue and can be reproduced with Bio-Formats 7.3.1. The last file ending DIC_04T.nd2 appears to be correct. Changing the nd2 options for chunkmapping does not have any impact on the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants