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

xarray dims #2287

Merged
merged 2 commits into from
Feb 10, 2021
Merged

xarray dims #2287

merged 2 commits into from
Feb 10, 2021

Conversation

thewtex
Copy link
Member

@thewtex thewtex commented Feb 9, 2021

  • ENH: Support alternate dim orders in image_from_xarray
  • ENH: NumPy and XArray conversion for 4D images

The order of dims can be different from the result of xarray_from_image.
If they are not in the required ordere, the data is re-organized.

image_view_from_array defaults to a return type of VectorImage for
non-UC, 3 or 4 component images to support more pixel component values.
ImageDuplicator is wrapped for the required VectorImage types from
image_from_array.
Modules/Bridge/NumPy/wrapping/PyBuffer.i.in Outdated Show resolved Hide resolved
Wrapping/Generators/Python/Tests/extras.py Show resolved Hide resolved
Wrapping/Generators/Python/Tests/extras.py Outdated Show resolved Hide resolved
Wrapping/Generators/Python/Tests/extras.py Outdated Show resolved Hide resolved
@thewtex thewtex merged commit c3bf73c into InsightSoftwareConsortium:master Feb 10, 2021
@thewtex thewtex deleted the xarray-dims branch February 10, 2021 15:19
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.

3 participants