# Brain Artery Segmentation - The Small Arterteries are cut off/incomplete

**URL:** <https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [August 10, 2023, 10:12pm UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093 "2023-08-10T22:12:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vineet\_Saravanan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vineet_saravanan/32/67136_2.png) [@Vineet\_Saravanan](https://discourse.slicer.org/u/Vineet_Saravanan)\
**Post date:** [August 10, 2023, 10:12pm UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093/1 "2023-08-10T22:12:07Z")

</div>

Hello, so I am trying to segment CTA scans and get just the arteries. Right now I follow the steps in this post: [Extracting STL from DICOM images to generate Brain Arteries geometry - #6 by tsinesh](https://discourse.slicer.org/t/extracting-stl-from-dicom-images-to-generate-brain-arteries-geometry/25215/6)  
(Import, N4ITK MRI Bias correction, LaplacianSharpeningImageFilter, vesselness filter, Local threshold and then view 3d)  
It seems to work well for the larger arteries and those seem to be complete, but the smaller ones are incomplete like the image below:

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

Is there a better way to go about this or another plugin that I could use to get more fine grained detail? Right now I have tried lowering the threshold but this just leads to other matter being added to the 3d model. I also tried a minimum diameter of .1 instead of .5 and that didn’t seem to work either. (But it seems like both are just one pixel anyways)  
Here are the pictures of the 3D and red:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/e/bec83becb499864ca2052b2a1b97f63d65a71152.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/b/7b39acf5c7a456a4c73b1e76657b1dcb835c8ae0.jpeg)

---

<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:** [August 10, 2023, 10:16pm UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093/2 "2023-08-10T22:16:58Z")

</div>

To represent smaller vessels, you may need to reduce the voxel size and make sure the voxels are isotropic. In general, the voxel size (=image spacing) must be at least 3-5x smaller than the diameter of the smallest vessel that you want to extract. Probably the easiest is to use Crop volume module to crop and resample the input volume before segmentation.

---

<div class="post-metadata">

**Author:** ![tsinesh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tsinesh/32/16670_2.png) [@tsinesh](https://discourse.slicer.org/u/tsinesh)\
**Post date:** [August 11, 2023, 5:50am UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093/3 "2023-08-11T05:50:52Z")

</div>

Dear Vineet Saravanan,

your first image seems to show a very smoothed cerebral arteries. Could it be, that under “Show 3d” (small arrow) in Segment editor the smoothing factor is activated?

May I ask what the goal of your project is?

tamu

---

<div class="post-metadata">

**Author:** ![Vineet\_Saravanan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vineet_saravanan/32/67136_2.png) [@Vineet\_Saravanan](https://discourse.slicer.org/u/Vineet_Saravanan)\
**Post date:** [August 11, 2023, 4:13pm UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093/4 "2023-08-11T16:13:14Z")

</div>

Should I do this after I use the Vesselness filter?

---

<div class="post-metadata">

**Author:** ![Vineet\_Saravanan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vineet_saravanan/32/67136_2.png) [@Vineet\_Saravanan](https://discourse.slicer.org/u/Vineet_Saravanan)\
**Post date:** [August 11, 2023, 4:24pm UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093/5 "2023-08-11T16:24:10Z")

</div>

I tried this and I believe it made the smaller arteries appear. I am trying to extract the arteries to look for brain aneurysms so the arteries have to very exact. Is there any way to remove the extra material from these arteries. Bellow are the 3d models of a smoothing factor of 0 and then of .20

0:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/b/9b7b3789b3480e7b8ab3a461dcbdce19fc68ff0d.jpeg)

.2:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/a/ead8d7d7407a2d37f7da208d1387fb09d263ec26.jpeg)

---

<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:** [August 11, 2023, 8:57pm UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093/6 "2023-08-11T20:57:51Z")

</div>

You can use Smoothing effect to reduce the noise.

However, the segmentation looks quite good as is. “Extract Centerline” module in VMTK would probably work well on it and it seems that even a 5mm aneurysm should be discernible.

If the goal is to detect aneurysms then I would recommend to try to do it without segmentation, just based on the images, using deep learning.

---

<div class="post-metadata">

**Author:** ![tsinesh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tsinesh/32/16670_2.png) [@tsinesh](https://discourse.slicer.org/u/tsinesh)\
**Post date:** [August 11, 2023, 8:57pm UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093/7 "2023-08-11T20:57:55Z")

</div>

It look much better. You can try in the Segment Editor the Island tool to remove some not connected, small part. You can clean it manually with the Scissor tool or play with the Smoothing tool.

---

<div class="post-metadata">

**Author:** ![Vineet\_Saravanan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vineet_saravanan/32/67136_2.png) [@Vineet\_Saravanan](https://discourse.slicer.org/u/Vineet_Saravanan)\
**Post date:** [August 14, 2023, 3:47pm UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093/8 "2023-08-14T15:47:22Z")

</div>

Is it possible to do this task with the NvidiaAIAssistedAnnotation plugin?

---

<div class="post-metadata">

**Author:** ![Reasat\_E\_Noor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/reasat_e_noor/32/17774_2.png) [@Reasat\_E\_Noor](https://discourse.slicer.org/u/Reasat_E_Noor)\
**Post date:** [April 3, 2024, 12:35pm UTC](https://discourse.slicer.org/t/brain-artery-segmentation-the-small-arterteries-are-cut-off-incomplete/31093/9 "2024-04-03T12:35:07Z")

</div>

I segmented blood vessel from MRI brain image and created an stl model of a bifurcated artery. I uploaded the 3d stl model in Ansys fluent for analysing the blood flow but while meshing the program shows error. How to solve the issue?
