# Simultaneous segmentation of multiple vertebral bodies

**URL:** <https://discourse.slicer.org/t/simultaneous-segmentation-of-multiple-vertebral-bodies/19697>\
**Category:** Support\
**Tags:** spine\
**Created:** [September 16, 2021, 8:49am UTC](https://discourse.slicer.org/t/simultaneous-segmentation-of-multiple-vertebral-bodies/19697 "2021-09-16T08:49:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siegmund\_Lang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/siegmund_lang/32/8753_2.png) [@Siegmund\_Lang](https://discourse.slicer.org/u/Siegmund_Lang)\
**Post date:** [September 16, 2021, 8:49am UTC](https://discourse.slicer.org/t/simultaneous-segmentation-of-multiple-vertebral-bodies/19697/1 "2021-09-16T08:49:24Z")

</div>

Dear Slicer Support Team,

i am looking for a convenient method to simultaneously segment multiple vertebral bodies, similar as seen in this youtube tutorial on serial smooth of the segmentations:

[![](https://img.youtube.com/vi/Wcz44sSCS9Y/maxresdefault.jpg "How to serially smooth segmentations in 3D Slicer") ](https://www.youtube.com/watch?v=Wcz44sSCS9Y)

Is there a tutorial video how to do so? The goal is to get a separate segmentation for each vertebral body.

Thank you very much.  
Siegmund

---

<div class="post-metadata">

**Author:** ![dzenanz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dzenanz/32/1992_2.png) [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Post date:** [September 16, 2021, 1:32pm UTC](https://discourse.slicer.org/t/simultaneous-segmentation-of-multiple-vertebral-bodies/19697/2 "2021-09-16T13:32:08Z")

</div>

Depending on what you consider “convenient”, my PhD project could fit the bill. Here is a [slightly updated version of source code on GitHub](https://github.com/dzenanz/SpineSource), [paper](https://www.cg.informatik.uni-siegen.de/publicationPDFbyID?ID=603) and [project background](https://www.cg.informatik.uni-siegen.de/en/spine-segmentation-and-analysis).

A group from Magdeburg continued research in the same direction, here are some papers:

> **[On computerized methods for spine analysis in MRI: a systematic review - PubMed](https://pubmed.ncbi.nlm.nih.gov/26861655/)**
>
> The diversity of MRI sequences and settings still poses challenges to computerized spine analysis. Further research is necessary to implement methods that are actually applicable in practice, e.g., in clinical routine or for study purposes....

> **[Vertebral body segmentation in wide range clinical routine spine MRI data -...](https://pubmed.ncbi.nlm.nih.gov/29512508/)**
>
> These results illustrate the robustness of our segmentation approach towards the variety of MR image data, which is a pivotal aspect for clinical usefulness and reliable diagnosis.

> **[Combining convolutional neural networks and star convex cuts for fast whole...](https://www.sciencedirect.com/science/article/abs/pii/S0169260718307417)**
>
> Background and Objective: We propose an automatic approach for fast vertebral body segmentation in three-dimensional magnetic resonance images of the …

> **[A CNN-Based Framework for Statistical Assessment of Spinal Shape and...](https://link.springer.com/chapter/10.1007/978-3-030-32251-9_1)**
>
> The extraction of spines from medical records in a fast yet accurate way is a challenging task, especially for large data sets. Addressing this issue, we present a framework based on convolutional neural networks for the reconstruction of the spinal...

Spine segmentation from CT is easier and usually yields better results. References in the above papers are a good starting point.

A good general purpose tool which can be applied to spine segmentation is “grow from seeds” segmentation effect in Slicer’s SegmentEditor. Here is an example of seeds and the result:

 ![GrowCutSeeds](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/c/1c21bd9f058a85bb57739afefad64c924db79fcc.jpeg)  
 ![GrowCutResults](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/d/5d06e6dff927b60b2dc869fa44ff442c8d49ceee.jpeg)

These seeds are placed just to demonstrate the method, I was not attempting to make a good segmentation. But I think this is a viable method, and it has been part of Slicer for a while now.

---

<div class="post-metadata">

**Author:** ![Siegmund\_Lang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/siegmund_lang/32/8753_2.png) [@Siegmund\_Lang](https://discourse.slicer.org/u/Siegmund_Lang)\
**Post date:** [September 17, 2021, 2:54pm UTC](https://discourse.slicer.org/t/simultaneous-segmentation-of-multiple-vertebral-bodies/19697/3 "2021-09-17T14:54:17Z")

</div>

Dear Dženan Zukić,

thank you for the quick and substantiated answer. And congratulations on your most interesting PhD project. I am a trauma surgeon and we are initializing a project, aiming to integrate 3D segmentation in our clinical research. Your advice and the proposed papers help a lot.

I have found a slicer extension for the automatic segmentation of the cervical spine. Would a similar feature be conceivable for the thoraco-lumbar spine?

---

<div class="post-metadata">

**Author:** ![dzenanz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dzenanz/32/1992_2.png) [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Post date:** [September 17, 2021, 3:02pm UTC](https://discourse.slicer.org/t/simultaneous-segmentation-of-multiple-vertebral-bodies/19697/4 "2021-09-17T15:02:20Z")

</div>

I guess asking the author of this extension to add support for thoracic and lumbar spine would make sense. I don’t know whether he still actively works on the project or maintains this extension. You could perhaps ask him directly? His email address could be found in the [git log](https://github.com/MedicalImageAnalysisTutorials/SlicerCervicalSpine/commits/master) of the extension. I don’t know whether he has a forum profile, and if so what is his username.

---

<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 17, 2021, 7:43pm UTC](https://discourse.slicer.org/t/simultaneous-segmentation-of-multiple-vertebral-bodies/19697/5 "2021-09-17T19:43:56Z")

</div>

> [@Siegmund\_Lang](#):
>
> simultaneously segment multiple vertebral bodies, similar as seen in this youtube tutorial

We created that model using “Grow from seeds” effect, similarly to how @dzenanz described above, with two additions for CT:

- On CT images you can see the facet joints as well, and there usually no clear separation between the vertebrae, so it is important to set an “Editable intensity range” (from about 150-250HU to maximum) using Threshold effect, to restrict region growing to bone region. The editable intensity range makes painting the seeds easier (you don’t need to worry about painting into soft tissue) and must be done before starting Grow from seeds.
- Cancellous bone inside vertebrae have the same density as soft tissues, therefore the bones will appear hollow after segmentation. You can fill all internal holes using [this code snippet](https://gist.github.com/lassoan/0f45db8bae792ea19ccad36ceefbf52d) (after clicking “Apply” in Grow from seeds effect).

I captured a screen capture video of how I do this:

[![](https://img.youtube.com/vi/wMMi0QIrCvc/maxresdefault.jpg "Semi-automatic vertebra segmentation on CT") ](https://www.youtube.com/watch?v=wMMi0QIrCvc)

The goal of the video was to keep it short. As always, you can get more accurate segmentation by spending more time with reviewing and correcting automatic segmentation results.
