Skip to content

FIX: Add half-pixel shift to img_transform y coordinate #2461

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

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

greglucas
Copy link
Contributor

Rationale

The y-coordinates input to the bounds calculation are the centers. The x-coordinates are shifted by half a pixel already, but we also need to do that to the y-coordinates otherwise we get some anomalous masking at the bottom/top of the images.

closes #2459

The y-coordinates input to the bounds calculation are the centers.
The x-coordinates are shifted by half a pixel already, but we
also need to do that to the y-coordinates otherwise we get some
anomalous masking at the bottom/top of the images.
Copy link
Member

@rcomer rcomer left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@rcomer rcomer merged commit def171d into SciTools:main Nov 3, 2024
27 of 29 checks passed
@greglucas greglucas deleted the fix-img-transform-y branch November 3, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

imshow not filling the whole extension
2 participants