# Model Maker does not create model from label map

**URL:** <https://discourse.slicer.org/t/model-maker-does-not-create-model-from-label-map/3977>\
**Category:** Support\
**Created:** [September 3, 2018, 4:40pm UTC](https://discourse.slicer.org/t/model-maker-does-not-create-model-from-label-map/3977 "2018-09-03T16:40:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [September 3, 2018, 4:40pm UTC](https://discourse.slicer.org/t/model-maker-does-not-create-model-from-label-map/3977/1 "2018-09-03T16:40:02Z")

</div>

Slicer built at commit af5f294fb on Linux using GCC 8.2, Python 2.7.15

I just noticed that Model Maker fails to create a model from a label map generated in Simple Growing Segmentation module with a few fiducial points. There’s only one label value.

The error log is [here](https://pastebin.com/393zfDBv).

Thanks for considering.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 3, 2018, 7:32pm UTC](https://discourse.slicer.org/t/model-maker-does-not-create-model-from-label-map/3977/2 "2018-09-03T19:32:10Z")

</div>

Thanks for reporting this.

The error messages from the log:

```auto
vtkMRMLColorTableNode::SetColor: ERROR: can't set a colour if not a user defined colour table, reset the type first to User or File

```

Make me wonder if it’s related to this commit:

> <https://github.com/Slicer/Slicer/commit/a694b040df3b44eb2dd3cc7d3b116d4bbac0e947>

---

<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:** [September 3, 2018, 7:49pm UTC](https://discourse.slicer.org/t/model-maker-does-not-create-model-from-label-map/3977/3 "2018-09-03T19:49:35Z")

</div>

It may be related. I can have a look at this later tonight or tomorrow.

---

<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:** [September 5, 2018, 3:35am UTC](https://discourse.slicer.org/t/model-maker-does-not-create-model-from-label-map/3977/4 "2018-09-05T03:35:30Z")

</div>

I’ve fixed the issue - it was a regression caused by the commit mentioned above. See details [here](https://github.com/Slicer/Slicer/commit/c88ee87ef2c1864fc5d737ef3654b64c2998dd91). Nightly builds that are downloaded on Thursday or later should work well.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [September 5, 2018, 1:48pm UTC](https://discourse.slicer.org/t/model-maker-does-not-create-model-from-label-map/3977/5 "2018-09-05T13:48:25Z")

</div>

Model Maker now works as expected.

Thanks.

---

<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:** [September 6, 2018, 5:28am UTC](https://discourse.slicer.org/t/model-maker-does-not-create-model-from-label-map/3977/6 "2018-09-06T05:28:29Z")

</div>

By the way, are you still using Model Maker? Maybe you even use the legacy Editor module? I would recommend to switch to Segment editor, which makes Model Maker module irrelevant, since conversion between various representations happens automatically.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [September 6, 2018, 8:23am UTC](https://discourse.slicer.org/t/model-maker-does-not-create-model-from-label-map/3977/7 "2018-09-06T08:23:20Z")

</div>

> [@lassoan](#):
>
> By the way, are you still using Model Maker?

My daily tool in vascular surgery for surgical planning is in fact Volume Rendering. When I need to create an arterial blood flow model from contrast enhanced CT scan, I use Simple Region Growing because I need only one segment and it’s fast.

I have thouroughly explored the new Segmentation Editor and it’s definitely an invaluable tool. Prior painting is rather time consuming however, and this does not suit my workflow.

For instance, with just one fiducial point in the aorta of the CT-Cardio sample dataset, Simple Region Growing does a fabulous job to isolate the arterial lumen as a label map.

Of course, this are many other cases where the new Segment Editor is best suited.
