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

ENH: Allow user-defined slicing over time or channel axes #43

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

tbirdso
Copy link
Collaborator

@tbirdso tbirdso commented Aug 8, 2023

Changes:

  • Adds axes metadata parsing and exposes result in API
  • Exposes optional parameter to allow slicing over channel or time axes

Addresses issue where 5D t/c/z/y/x volume subregions could not be read with OMEZarrNGFFImageIO because Tensorstore was not provided with enough information to map from 5D axes to 3D output image.

Could be extended in the future to allow the user to override the default mapping of ITK dimension 0 -> "x", 1 -> "y", 2 -> "z" for different input axes. (#45)

Changes:
- Adds axes metadata parsing and exposes result in API
- Exposes optional parameter to allow slicing over channel or time axes

Addresses issue where 5D t/c/z/y/x volume subregions could not be read
with OMEZarrNGFFImageIO because Tensorstore was not provided with enough
information to map from 5D axes to 3D output image.

Could be extended in the future to allow the user to override the
default mapping of ITK dimension 0 -> "x", 1 -> "y", 2 -> "z" for
different input axes.
@tbirdso tbirdso requested review from thewtex and dzenanz August 8, 2023 23:53
Copy link
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is up to you whether to handle direction now or later. Two minor in-line remarks.

test/itkOMEZarrNGFFHTTPTest.cxx Show resolved Hide resolved
src/itkOMEZarrNGFFImageIO.cxx Outdated Show resolved Hide resolved
src/itkOMEZarrNGFFImageIO.cxx Show resolved Hide resolved
Copy link
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash, possibly upon merge if not right away.

@tbirdso tbirdso merged commit 08d3617 into InsightSoftwareConsortium:master Aug 9, 2023
14 of 17 checks passed
@tbirdso
Copy link
Collaborator Author

tbirdso commented Aug 9, 2023

If there are no objections, I will tag a PyPI release to include this change.

@dzenanz
Copy link
Member

dzenanz commented Aug 9, 2023

No objections from me.

@tbirdso
Copy link
Collaborator Author

tbirdso commented Aug 9, 2023

I neglected to update the module version in setup.py for 0.1.5, so I have cancelled that tag CI to avoid conflicts on PyPI. Once we reach a resolution in #44 I will go ahead and tag 0.1.6 for simplicity.

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

Successfully merging this pull request may close these issues.

2 participants