InsightSoftwareConsortium / InsightSoftwareConsortium/ITKIOOMEZarrNGFF

Support axis units

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
10
Forks
6
PR merge metrics
No merged PRs in 30d

Description

## 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](https://github.com/thewtex/ngff-zarr) CLI tool accepts unit inputs for OME-Zarr generation and can be used for testing.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.