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

Support axis units #42

Open
tbirdso opened this issue Aug 7, 2023 · 0 comments
Open

Support axis units #42

tbirdso opened this issue Aug 7, 2023 · 0 comments

Comments

@tbirdso
Copy link
Collaborator

tbirdso commented Aug 7, 2023

Current behavior

Image metadata is always read in regardless of axis unit metadata. For instance, a 3D image with spacing of 1.0 millimeters along each axis and another 3D image with spacing of 1.0 micrometers along each axis are both read in with spacing "[1.0,1.0,1.0]".

Requested behavior

My understanding is that ITK image metadata is "assumed" to have units in millimeters for historical reasons. We should parse the units attached to each physical axis and convert the resulting ITK image to have spacing in "millimeters" as standard practice. For instance, the image described above with "micrometer" spacing should be read in with spacing "[0.001, 0.001, 0.001]".

Additional Notes

The ngff-zarr CLI tool accepts unit inputs for OME-Zarr generation and can be used for testing.

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

No branches or pull requests

1 participant