Project-MONAI / Project-MONAI/MONAILabel
Restored transform doesn't restore orientation
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 891
- Forks
- 269
- Avg merge
- 15h 41m
- Merged PRs (30d)
- 1
Description
Describe the bug
I use Restored transform to invert the space resolution, however it fails to restore the orientation changed with any of the Orientationd(keys="image", axcodes="RAS"),
To Reproduce
add this transform to spleen model
in the pretranforms
Orientationd(keys="image", axcodes="RAS"),
and in the post transform
Restored(keys="pred", ref_image="image"),
you would see that the segmentation is wrong
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the spleen model setup with Orientationd(keys="image", axcodes="RAS") in the pretransforms and Restored(keys="pred", ref_image="image") in the post transform. Trace how Restored handles spatial resolution and orientation, then verify that the resulting segmentation matches the original image orientation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100