# Tooth segmentation

**URL:** <https://discourse.slicer.org/t/tooth-segmentation/10175>\
**Category:** Support\
**Created:** [February 9, 2020, 10:13pm UTC](https://discourse.slicer.org/t/tooth-segmentation/10175 "2020-02-09T22:13:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaviu2](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@flaviu2](https://discourse.slicer.org/u/flaviu2)\
**Post date:** [February 9, 2020, 10:13pm UTC](https://discourse.slicer.org/t/tooth-segmentation/10175/1 "2020-02-09T22:13:36Z")

</div>

I am struggling to find a segmentation solution to isolate from an CBCT a tooth from a teeth. But I didn’t found any example of how to do this using SimpleITK/ITK. Can you point me a starting of how to achieve this task ? Is important to me to solve this. Can you help me ?

---

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [February 9, 2020, 10:53pm UTC](https://discourse.slicer.org/t/tooth-segmentation/10175/2 "2020-02-09T22:53:03Z")

</div>

Hi,

Check this example.

> [@Teeth Segmentation](https://discourse.slicer.org/t/teeth-segmentation/9775/9):
>
> I’ve checked this and found that all teeth can be quite quickly and accurately segmented at once by the following ste

Also you can use split volume effect to separate individual teeth once you segment them out.

---

<div class="post-metadata">

**Author:** ![flaviu2](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@flaviu2](https://discourse.slicer.org/u/flaviu2)\
**Post date:** [February 10, 2020, 8:03am UTC](https://discourse.slicer.org/t/tooth-segmentation/10175/3 "2020-02-10T08:03:39Z")

</div>

Hi Manjula. I appreciated your post. That example reveal how to segment a tooth with 3DSlicer. I saw that you have done that segmentation and you solved your task. For you has been enough doing that in 3DSlicer, but my task is to do that inside my VC++ application … so, is there a way to do that segmentation in my app from 3DSlicer ? The source code is huge, and I don’t think I can find the code that do the proper segmentation … I guess … did you identified the code source that done segmentation ?

---

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [February 10, 2020, 8:10pm UTC](https://discourse.slicer.org/t/tooth-segmentation/10175/4 "2020-02-10T20:10:31Z")

</div>

> [@flaviu2](#):
>
> task is to do that inside my VC++ application

I am sorry i will not be able to help in that part as i have not gone through the c++ code of slicer as i don’t understand it. But others here will help you for sure with that.

---

<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:** [February 11, 2020, 12:41am UTC](https://discourse.slicer.org/t/tooth-segmentation/10175/5 "2020-02-11T00:41:50Z")

</div>

> [@flaviu2](#):
>
> my task is to do that inside my VC++ application

If this is a homework assignment then sure, it is a good idea to create your own application so that you learn how things work. You can study the source code of 3D Slicer and feel free to take whatever you find useful.

If you are developing a research application or product then developing your own application from scratch is huge waste of time that prevents you from focusing on the things that matter. If you want to have a robust and feature rich application then you typically very soon reach the point that all your efforts are spent on maintenance and support.

If you just want to have “something quick and simple” then forget desktop applications. Today people expect that they can do simple things in their web browser and refuse to install a desktop application for that.

> [@flaviu2](#):
>
> The source code is huge

This is a common misconception. Actually, Slicer source code is tiny:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/e/9e5c104e9d265d5aee5baa321cf07a2b0ec523a4.png)

If your application uses Qt, VTK, ITK, DCMTK then your application is already 85% the same as Slicer.

---

<div class="post-metadata">

**Author:** ![flaviu2](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@flaviu2](https://discourse.slicer.org/u/flaviu2)\
**Post date:** [February 13, 2020, 6:17pm UTC](https://discourse.slicer.org/t/tooth-segmentation/10175/6 "2020-02-13T18:17:35Z")

</div>

@lassoan Can you point me the proper filter to do a teeth segmentation ? I ask that because maybe I can find in the slicer source code that filter … in order to read it and understand it and to apply it on myself 🙂
