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

Ventana: fix tile arithmetic for smallest resolutions #4072

Merged
merged 2 commits into from
Oct 4, 2023

Conversation

melissalinkert
Copy link
Member

Fixes #3927.

Any of the .bif files in curated/ventana should show the issue, but the 3 files for which the problem was reported are in curated/ventana/gh-3927. Without this PR, showinf -noflat on the last 2 resolutions in the first series should show a grid of 0-value pixels. With this PR, the same command should show a normal-looking image that matches the larger resolutions in the pyramid.

Fixes ome#3927.

This makes the rounding consistent across all tile size and coordinate
calculations, which should eliminate off-by-ones that cause a grid of
black pixels to appear for the smallest few resolutions.
@dgault dgault added this to the 7.0.1 milestone Sep 4, 2023
Copy link
Member

@dgault dgault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with curated/ventana/gh-3927 and saw the same results for other files in the curated Ventana datasets.

Without the PR attempting to open the lowest resolution resulted in the grid like pattern appearing on the images.

Screenshot 2023-10-04 at 13 18 14

With the PR included the image now opens and displays as expected without the same pattern. The image dimensions and metadata remain unaffected.

Screenshot 2023-10-04 at 13 22 13

@dgault dgault merged commit 90bdfa5 into ome:develop Oct 4, 2023
17 checks passed
@melissalinkert melissalinkert deleted the gh-3927 branch September 6, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ventana BIF: grid of zero pixel values at lowest resolution levels
2 participants