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

Fix xy coordinates of SegmentationImage polygon vertices #1646

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

larrybradley
Copy link
Member

This PR fixes an issue where the vertices of the SegmentationImage polygons were shifted by 0.5 pixels in both x and y. This is because rasterio.features.shapes uses a coordinate frame with the (0, 0) origin at the lower-left corner of the lower-left pixel.

@larrybradley larrybradley added this to the 1.10.0 milestone Nov 1, 2023
@larrybradley larrybradley merged commit 1516301 into astropy:main Nov 1, 2023
21 checks passed
@larrybradley larrybradley deleted the fix-polygons branch November 1, 2023 03:11
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.

1 participant