Skip to content

Conversation

@jlvahldiek
Copy link
Contributor

At the moment the Slicer extension is not capable of handling .seg.nrrd segmentation files that come in from i.e. an InferTask.

This PR adds support for .seg.nrrd segmentation files. These are directly loaded into Slicer and deep copied to the corresponding segmentation node. Furthermore, the reference image geometry is set from the corresponding volume node.

The implementation to handle all other segmentation file formats is left unchanged.

Not quite sure if this will also work with other MONAILabel functionality but we heavily tested the proposed changes with the auto segmentation functionality.

May closes #766.

Signed-off-by: Janis Vahldiek <janis@vahldiek.info>
@jlvahldiek jlvahldiek marked this pull request as ready for review May 5, 2022 11:15
@jlvahldiek jlvahldiek changed the title [WIP] Add support for .seg.nrrd in UpdateSegmentationMask() of the Slicer extension Add support for .seg.nrrd in UpdateSegmentationMask() of the Slicer extension May 5, 2022
@SachidanandAlle SachidanandAlle added the 0.4.0 Targeted to Release version 0.4 label May 9, 2022
@SachidanandAlle SachidanandAlle merged commit 70f7bfe into Project-MONAI:main May 9, 2022
DaoMaoDuc pushed a commit to jlvahldiek/MONAILabel that referenced this pull request Jun 1, 2022
Signed-off-by: Janis Vahldiek <janis@vahldiek.info>

Co-authored-by: SACHIDANAND ALLE <sachidanand.alle@gmail.com>
Signed-off-by: Duc <ducdominhstart@googlemail.com>
Douwe-Spaanderman pushed a commit to Douwe-Spaanderman/MONAILabel that referenced this pull request Dec 9, 2022
Signed-off-by: Janis Vahldiek <janis@vahldiek.info>

Co-authored-by: SACHIDANAND ALLE <sachidanand.alle@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.4.0 Targeted to Release version 0.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UpdateSegmentationMask fails to correctly read .seg.nrrd in Slicer extension after InferTask

2 participants