# Strange results in model segmentation to label map

**URL:** <https://discourse.slicer.org/t/strange-results-in-model-segmentation-to-label-map/4518>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [October 24, 2018, 11:52am UTC](https://discourse.slicer.org/t/strange-results-in-model-segmentation-to-label-map/4518 "2018-10-24T11:52:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@Niels](https://discourse.slicer.org/u/Niels)\
**Post date:** [October 24, 2018, 11:52am UTC](https://discourse.slicer.org/t/strange-results-in-model-segmentation-to-label-map/4518/1 "2018-10-24T11:52:18Z")

</div>

Hello, I installed Slicer 4.11.0-2018-10-20 (revision 27509) macosx-amd64. I imported a model as a segmentation and exported this to a labelmap. Using these steps:

> [@Intersection between model and volume to select voxels](https://discourse.slicer.org/t/intersection-between-model-and-volume-to-select-voxels/4256):
>
> I have a generated a surface model by applying vtkMarchingCubes on a loaded volume. The next step I would like to perform is to identify which voxels intersect with the triangles that were generated. I was thinking of starting with iterating the vertices to see which voxels overlap and do some triangle intersect from there but I am not sure if that is the best method. Doe anybody know if there is a better way to select voxels that are inside, outside or on the contour of a model? I am using pyt…

Does anybody have an idea where is coming from?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 24, 2018, 11:58am UTC](https://discourse.slicer.org/t/strange-results-in-model-segmentation-to-label-map/4518/2 "2018-10-24T11:58:56Z")

</div>

I feel like I miss some key information to understand what the problem is. What was the strange result? The topic you point to seems not to contain such information.

---

<div class="post-metadata">

**Author:** ![Niels](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@Niels](https://discourse.slicer.org/u/Niels)\
**Post date:** [October 24, 2018, 12:12pm UTC](https://discourse.slicer.org/t/strange-results-in-model-segmentation-to-label-map/4518/3 "2018-10-24T12:12:53Z")

</div>

![48](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/0/10cc769b0151bcc98e22bdc0ef6e2e3a00a9d787.png)

Some nightly builds ago I used the windows version and it worked ok. this nightly build is macosx.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 24, 2018, 12:22pm UTC](https://discourse.slicer.org/t/strange-results-in-model-segmentation-to-label-map/4518/4 "2018-10-24T12:22:19Z")

</div>

1. Did you use the same input and method _exactly_ in the two scenarios you’re describing?
2. Do you have an anatomical image that you used as reference? (The screenshot just shows the labelmap)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 24, 2018, 5:49pm UTC](https://discourse.slicer.org/t/strange-results-in-model-segmentation-to-label-map/4518/5 "2018-10-24T17:49:19Z")

</div>

Most likely faces in the model are defined inconsistently. The referenced post above was long and it is not clear how you ended up creating the model. If you create it using Segment Editor then the model should be correct and you should be able to import it and visualize it correctly. If you created it using Segment Editor but you still have problems then please share the .seg.nrrd file and the exported model file so that we can investigate.
