# Segment editor outline color and thickness customization

**URL:** <https://discourse.slicer.org/t/segment-editor-outline-color-and-thickness-customization/11427>\
**Category:** Support\
**Created:** [May 5, 2020, 10:35pm UTC](https://discourse.slicer.org/t/segment-editor-outline-color-and-thickness-customization/11427 "2020-05-05T22:35:44Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [May 5, 2020, 10:35pm UTC](https://discourse.slicer.org/t/segment-editor-outline-color-and-thickness-customization/11427/1 "2020-05-05T22:35:44Z")

</div>

Is there a way to change the default segment outlining color from yellow to something else in the segment editor (and/or edit the line thickness) that we can embed in .slicerrc.py? We are working on images that has a very light background, and yellow outline doesn’t stand out much…

---

<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:** [May 5, 2020, 10:59pm UTC](https://discourse.slicer.org/t/segment-editor-outline-color-and-thickness-customization/11427/2 "2020-05-05T22:59:21Z")

</div>

If by “outlining color” you mean preview color in paint and scissors:

If you work with grayscale images then by slightly adjusting their window/level should make the bright yellow color pop out very nicely.

If you have a fast computer then you can also disable `delayedPaint` property of qSlicerSegmentEditorPaintEffect - then there is no preview but you paint directly with the segment color.

If you want to make the color adjustable then you can send a pull request that adds get/set method for the color in qSlicerSegmentEditorPaintEffect.cxx and qSlicerSegmentEditorScissorsEffect.cxx.

---

<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:** [May 6, 2020, 8:38am UTC](https://discourse.slicer.org/t/segment-editor-outline-color-and-thickness-customization/11427/3 "2020-05-06T08:38:54Z")

</div>

I believe that to achieve what you want, these hardcoded values need to be made a property in the effect:

> <https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorLevelTracingEffect.py#L138>

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [June 2, 2020, 4:48pm UTC](https://discourse.slicer.org/t/segment-editor-outline-color-and-thickness-customization/11427/4 "2020-06-02T16:48:52Z")

</div>

Is there a way to increase the thickness of a segmentation itself (not the effect)?

---

<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:** [June 2, 2020, 5:08pm UTC](https://discourse.slicer.org/t/segment-editor-outline-color-and-thickness-customization/11427/5 "2020-06-02T17:08:56Z")

</div>

You can customize all these in Segmentations module’s display section.

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [June 3, 2020, 3:14pm UTC](https://discourse.slicer.org/t/segment-editor-outline-color-and-thickness-customization/11427/6 "2020-06-03T15:14:32Z")

</div>

Thanks! I missed the hidden “Advanced” options.
