-
Notifications
You must be signed in to change notification settings - Fork 243
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
NDPIReader & makeRGBImage last scanlines wrong #3059
Comments
Hi @mstritt, thank you for reporting this issue. I was able to reproduce the behaviour using the first series of the sample file at http://downloads.openmicroscopy.org/images/Hamamatsu-NDPI/manuel/test3-FITC%202%20(485).ndpi as you suggested. From my initial investigation the problem appears to lie within the NDPIReader itself rather than the AWTImageTools functions. This will require further investigation on our side before a fix can be put in place. |
Confirmed that this is still a problem with #3505 included. |
…le's stream Fixes ome#3059 Without this fix, the bytes between the last restart marker and the end of the original JPEG stream were ignored.
I just tested the fix while preparing the latest release of Orbit Image Analysis which uses Bioformats 6.4.0, and it appears that the issue is still present. I verified this by running the same code that @mstritt submitted at the top of this bug report. |
FYI: I pushed the code including the gradle configuration to a repo here: https://github.com/jfkotw/LargeNDPIBug/blob/master/src/main/java/Issue3059.java |
6.4.0 does not contain the fix for this issue, so it is completely expected that you will still see the problem when using 6.4.0. |
When using NDPIReader and converting the data to an image using a BufferdImageReader - or makeRGBImage directly - on some images (probably depending on the height) the last few pixel rows (always 8?) have value 128 instead of the correct pixel value.
The problem can be reproduced on the example image
http://downloads.openmicroscopy.org/images/Hamamatsu-NDPI/manuel/test3-FITC%202%20(485).ndpi
Code:
Maybe this is related to #875 and/or #836
Result of the image using a BufferedImageReader (you can see the last part (8 lines) is gray)
Zoomin:
The text was updated successfully, but these errors were encountered: