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

Fix value error with 4D images #96

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix value error with 4D images #96

wants to merge 2 commits into from

Conversation

yw7
Copy link
Collaborator

@yw7 yw7 commented Dec 6, 2024

Fixes #95

Add handling for 4D images in transform_seg2image function.

  • Add a check for 4D images at the beginning of the transform_seg2image function.
  • If the input image is 4D, take the first image from the last axis for resampling.
  • Add a comment explaining the purpose of the check for 4D images.

For more details, open the Copilot Workspace session.

Fixes #95

Add handling for 4D images in `transform_seg2image` function.

* Add a check for 4D images at the beginning of the `transform_seg2image` function.
* If the input image is 4D, take the first image from the last axis for resampling.
* Add a comment explaining the purpose of the check for 4D images.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/neuropoly/totalspineseg/issues/95?shareId=XXXX-XXXX-XXXX-XXXX).
@yw7 yw7 requested a review from NathanMolinier December 6, 2024 23:06
* Check if the input image is 4D and take the first image from the last axis for resampling
* Add a comment explaining the purpose of the check for 4D images
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.

Value error with 4d images
1 participant