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

Coordinate order #23

Open
nfahlgren opened this issue May 6, 2024 · 0 comments
Open

Coordinate order #23

nfahlgren opened this issue May 6, 2024 · 0 comments
Labels
enhancement Enhancements to existing features

Comments

@nfahlgren
Copy link
Member

Points (backed by matplotlib) uses coordinates in x, y order. get_centroids outputs points in row, column (y, x) order and the napari-based tools also use row, column order.

Whichever convention we use we need to have the tools do the conversion as necessary. The order is easy to flip if needed:

new_coords = [(x, y) for y, x in coords]
@nfahlgren nfahlgren added the enhancement Enhancements to existing features label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancements to existing features
Projects
None yet
Development

No branches or pull requests

1 participant