-
Notifications
You must be signed in to change notification settings - Fork 241
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
CZI: Blank planes in multi scene #3785
Labels
Comments
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/czi-multiscene-file-the-second-scene-is-black/63782/7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was raised on the forum thread https://forum.image.sc/t/czi-multiscene-file-the-second-scene-is-black/63782
A sample file has been provided which reproduces the issue with Bio-Formats 6.9.0
The provided sample file has 2 scenes each with 2 resolutions, so 4 series (when flattened) in Bio-Formats. Both resolutions of the second scene produce blank planes with all pixels being zero.
So far from my initial investigation I believe this is due to the row and col values for the second scene. At line https://github.com/ome/bioformats/blob/develop/components/formats-gpl/src/loci/formats/in/ZeissCZIReader.java#L390 the tiles are initialised with the below values for the top level resolution (image size is 512x973 , so 2 tiles):
Tile 1: x=1751, y=169, w=512, h=512
Tile 2: x=1751, y=630, w=512, h=512
This then means that the conditional statement at https://github.com/ome/bioformats/blob/develop/components/formats-gpl/src/loci/formats/in/ZeissCZIReader.java#L407 fails.
Modifying the X and Y values of the plane manually to deduct the start position of x:1751,y:169 seems to produce valid and correct planes. I have not yet have a fix for doing so programatically.
The text was updated successfully, but these errors were encountered: