# Matching segmentations to input volumes

**URL:** <https://discourse.slicer.org/t/matching-segmentations-to-input-volumes/21927>\
**Category:** Support\
**Created:** [February 11, 2022, 10:01pm UTC](https://discourse.slicer.org/t/matching-segmentations-to-input-volumes/21927 "2022-02-11T22:01:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paullane](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@paullane](https://discourse.slicer.org/u/paullane)\
**Post date:** [February 11, 2022, 10:01pm UTC](https://discourse.slicer.org/t/matching-segmentations-to-input-volumes/21927/1 "2022-02-11T22:01:22Z")

</div>

Hi,

I am curious if there is a module to match segmentations to input volume images in order to train a neural network?  
I have converted DICOM to PNG and converted segmented images into labelmaps and numpy arrays. The arrangement of segmented masks are not in order of the original image data.

Thanks

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [February 11, 2022, 10:09pm UTC](https://discourse.slicer.org/t/matching-segmentations-to-input-volumes/21927/2 "2022-02-11T22:09:30Z")

</div>

> [@paullane](#):
>
> I have converted DICOM to PNG and converted segmented images

That’s not a good operation because you loose the spatial reference system of the data. [MonaiLabel extension](https://github.com/Project-MONAI/MONAILabel) in slicer allows you to train a segmentation model by simply providing the 3D images and the associated segmentations, all in Slicer format. No need to convert anything to anything.

It might be easier for you to start from there.

---

<div class="post-metadata">

**Author:** ![paullane](https://avatars.discourse-cdn.com/v4/letter/p/c5a1d2/32.png) [@paullane](https://discourse.slicer.org/u/paullane)\
**Post date:** [February 18, 2022, 1:29am UTC](https://discourse.slicer.org/t/matching-segmentations-to-input-volumes/21927/3 "2022-02-18T01:29:23Z")

</div>

Thank you for your response and sorry for the late reply.  
I am not sure I am allowed to use the Preview Release version of 3D slicer for my project.  
Is there a way to work around this without using Monai?

Thanks
