# Skin marker segmentation

**URL:** <https://discourse.slicer.org/t/skin-marker-segmentation/25601>\
**Category:** Development\
**Created:** [October 8, 2022, 7:41am UTC](https://discourse.slicer.org/t/skin-marker-segmentation/25601 "2022-10-08T07:41:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joanne40226](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/joanne40226/32/14681_2.png) [@joanne40226](https://discourse.slicer.org/u/joanne40226)\
**Post date:** [October 8, 2022, 7:41am UTC](https://discourse.slicer.org/t/skin-marker-segmentation/25601/1 "2022-10-08T07:41:32Z")

</div>

Hi community,  
I want to segment a skin marker from the user. So that the user can click on a point and simply get the skin marker segmented.  
However, for the segment editor module i dont think i can achieve my goal.  
I thought about do it programmically however not much pop up for now.

I hope after clicking the point M1, the whole skin marker can be segmented.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/0/2018993662cb0302eed9cc83b05fb34ebdc1c0e4.jpeg)

Thank you for your time!

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [October 8, 2022, 9:34am UTC](https://discourse.slicer.org/t/skin-marker-segmentation/25601/2 "2022-10-08T09:34:38Z")

</div>

if the skin maker is not too much,you can use [paint],[draw] tool to segment them manully,it’s simple to execute

---

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [October 8, 2022, 9:37am UTC](https://discourse.slicer.org/t/skin-marker-segmentation/25601/3 "2022-10-08T09:37:30Z")

</div>

If it is a task to be performed frequently,the method i mentioned above is not suitable ,maybe you can consider other solutions like deep learning task.

---

<div class="post-metadata">

**Author:** ![joanne40226](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/joanne40226/32/14681_2.png) [@joanne40226](https://discourse.slicer.org/u/joanne40226)\
**Post date:** [October 8, 2022, 10:10am UTC](https://discourse.slicer.org/t/skin-marker-segmentation/25601/4 "2022-10-08T10:10:05Z")

</div>

Thank you for your reply!  
I do not think paint , draw will solve this case since I want it to be fast.  
However I think about doing it by image processing without deep learning  
Do you have any idea? Thank you!

---

<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:** [November 24, 2022, 3:01am UTC](https://discourse.slicer.org/t/skin-marker-segmentation/25601/5 "2022-11-24T03:01:09Z")

</div>

You can segment these markers fully automatically by using simple thresholding. Then, use Islands effect to put each marker in a separate segment. Finally, use Segment Statistics module to compute shape information (so that you can discard all pieces that are too small, too large, or not the right shape), and then use the computed position and orientation.
