# Grow from seeds does not work if painting only one segment

**URL:** <https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [October 27, 2023, 2:38pm UTC](https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452 "2023-10-27T14:38:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Investigacion\_y\_des1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/investigacion_y_des1/32/68050_2.png) [@Investigacion\_y\_des1](https://discourse.slicer.org/u/Investigacion_y_des1)\
**Post date:** [October 27, 2023, 2:38pm UTC](https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/1 "2023-10-27T14:38:46Z")

</div>

Hello! Im having trouble with Grow From Seeds. Basically, sometimes it works… sometimes it doesnt. Im about to give up and start working with some other software. Does it happen to any of you, with this option? I will gladly listen to your recomendations, thank you so much,

Mercedes.-

---

<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 28, 2023, 4:09pm UTC](https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/2 "2023-10-28T16:09:35Z")

</div>

It is not an algorithm that sometimes works sometimes doesn’t - it is very predictable, consistently separating regions that have a slight intensity difference between them.

If you can share your scene or a screen capture video then we can give advice about what to do differently. (upload the file somewhere and post the link here)

---

<div class="post-metadata">

**Author:** ![Investigacion\_y\_des1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/investigacion_y_des1/32/68050_2.png) [@Investigacion\_y\_des1](https://discourse.slicer.org/u/Investigacion_y_des1)\
**Post date:** [October 30, 2023, 6:46pm UTC](https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/3 "2023-10-30T18:46:26Z")

</div>

I was able to solve it, thank you for your answer !

---

<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:** [October 30, 2023, 6:48pm UTC](https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/4 "2023-10-30T18:48:28Z")

</div>

That’s great 👍

If you hit an issue that others might learn from it would be great if you could report what that was and how you got past it.

---

<div class="post-metadata">

**Author:** ![Investigacion\_y\_des1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/investigacion_y_des1/32/68050_2.png) [@Investigacion\_y\_des1](https://discourse.slicer.org/u/Investigacion_y_des1)\
**Post date:** [October 31, 2023, 12:27pm UTC](https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/5 "2023-10-31T12:27:34Z")

</div>

Of course, my mistake was that I tried to segment just one segment (many spots on one segment). I realised that in order for this option to work, you have to work on, al least, two segments. Inspite it doesn’t make much sense to me, it works this way. I didn’t have problems since. I´m grateful for the quick answers tough, It really makes me feel less lonely in this learning path 🙂 I’m learning by myself, and many times I don’t understand and get frustrated. 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:** [October 31, 2023, 12:34pm UTC](https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/6 "2023-10-31T12:34:56Z")

</div>

You need to have at least two competing segments because this effect performs competitive region growind: segments are grown until they fill the entire region of interest or reach another segment. If you only have one segment then that will fill the entire region.

---

<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 31, 2023, 3:20pm UTC](https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/7 "2023-10-31T15:20:27Z")

</div>

I’ve submitted a pull request that adds a popup window to remind the user that two input segments are needed. It’ll be in the Slicer Preview Release within a couple of days:

> <https://github.com/Slicer/Slicer/pull/7326>
>
> Grow from seeds effect requires at least 2 visible segments as input if no edita…ble region is specified, and at least 1 visible segment if editable region is specified. When the requirement was not fulfilled then the user did not know what was wrong, because there was no visible notification on the GUI (only in the application log), see for example https://discourse.slicer.org/t/grow-from-seeds-does-not-work-if-painting-only-one-segment/32452/6
> 
> This commit adds display of the error in a popup window if there are not enough input segments. A notification on the status bar is added if segmentation is canceled due to removal of an input segment.
