Skip to content

More robust resampling and axes manipulation#228

Merged
Keyn34 merged 1 commit intoENHANCE-PET:mainfrom
Keyn34:main-upstream
Feb 25, 2026
Merged

More robust resampling and axes manipulation#228
Keyn34 merged 1 commit intoENHANCE-PET:mainfrom
Keyn34:main-upstream

Conversation

@Keyn34
Copy link
Collaborator

@Keyn34 Keyn34 commented Feb 25, 2026

pyproject.toml

  • Bump version to 3.1.6 from 3.1.5

moosez.py

  • reversing tuples with [::-1] was replaced by the newly implemented function reverse_axes() from image_processing.py

image_processing.py

  • implemented reverse_axes() to reverse the sequence of elements in tuples/axes, to quickly switch between numpy and SimpleITK order
  • resample_image_SimpleITK_DASK_array() is now more robust to axis order. Previously, the output spacing and sizes were computed naively with isometric model spacings in mind. This has been corrected now.
  • gave axis-dependent variables like spacings and sizes more telling names by and _xyz and _yxz suffix.
  • adjusted type hints

pyproject.toml
- Bump version to 3.1.6 from 3.1.5

moosez.py
- reversing tuples with [::-1] was replaced by the newly implemented function reverse_axes() from image_processing.py

image_processing.py
- implemented reverse_axes() to reverse the sequence of elements in tuples/axes, to quickly switch between numpy and SimpleITK order
- resample_image_SimpleITK_DASK_array() is now more robust to axis order. Previously, the output spacing and sizes were computed naively with isometric model spacings in mind. This has been corrected now.
- gave axis dependent variables like spacings and sizes more telling names by and _xyz and _yxz suffix.
- adjusted type hints
@vercel
Copy link

vercel bot commented Feb 25, 2026

@Keyn34 is attempting to deploy a commit to the lalithshiyam's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Keyn34 Keyn34 merged commit 8307ae7 into ENHANCE-PET:main Feb 25, 2026
5 of 6 checks passed
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.

1 participant