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

Highdicom support multiple segmentation when creating dicom seg #335

Open
anuragp2018 opened this issue Mar 6, 2025 · 1 comment
Open
Labels
question Further information is requested

Comments

@anuragp2018
Copy link

When i try to create dicom seg file it increase slices. For example I have (114 512 512) dimension but after creating dicom seg file it increases to (731 512 512). I am using dicom and segmentation nrrd for dicom seg creation.

@CPBridge CPBridge added the question Further information is requested label Mar 17, 2025
@CPBridge
Copy link
Collaborator

Hi @anuragp2018 yes this is expected behaviour if your segmentation contains multiple segments (classes). This is because DICOM segmentations (those with SegmentationType BINARY) stores a separate set of frames for each segment (allowing them to overlap).

You should find that if you use highdicom's methods to read the files, it can correctly recombine them if that is what you desire (see e.g. the get_volume method).

Alternatively, you could look into using the new LABELMAP segmentation type, which combines the segments into a single set of frames, as you were probably expecting. However, note that LABELMAP segmentations are not widely compatible with other tools (yet...)

I think you would find it helpful to read our documentation page on segmentations, which explains some of these concepts in detail: https://highdicom.readthedocs.io/en/latest/seg.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants