Project-MONAI / Project-MONAI/MONAILabel

Restored transform doesn't restore orientation

Open
#1,266 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0.7.0
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.