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

Reverse spatial ome metadata when parsing it to avoid reversing the axis order later #122

Open
constantinpape opened this issue Sep 14, 2022 · 0 comments

Comments

@constantinpape
Copy link
Collaborator

n5-java reverses the known spatial metadata that is stored by zarr (the dimensions and the chunks). ome.zarr contains other spatial metadata, e.g. scale and translation. These are read in the native zarr axis order (i.e. reversed compared to dimensions and chunks). As a consequence we need to reverse the indices when reading from e.g. scale.
This can be quite confusing. Instead, we could reverse the ome.zarr spatial metadata when initially parsing it, and then could use the same axis order for everything.

@constantinpape constantinpape changed the title Reverse spatial ome metadata when parsing it to avoid reversing axis orders later Reverse spatial ome metadata when parsing it to avoid reversing the axis order later Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant