# How to extract 2D vessels quickly and accurately?

**URL:** <https://discourse.slicer.org/t/how-to-extract-2d-vessels-quickly-and-accurately/40039>\
**Category:** Support\
**Tags:** segmentation, vmtk\
**Created:** [November 5, 2024, 5:40pm UTC](https://discourse.slicer.org/t/how-to-extract-2d-vessels-quickly-and-accurately/40039 "2024-11-05T17:40:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsalas424](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jsalas424](https://discourse.slicer.org/u/jsalas424)\
**Post date:** [November 5, 2024, 5:40pm UTC](https://discourse.slicer.org/t/how-to-extract-2d-vessels-quickly-and-accurately/40039/1 "2024-11-05T17:40:22Z")

</div>

Hello,

I’m trying to segment out the left anterior descending coronary artery from a contrast enhanced XR image. The goal is to calculate the surface area of the vessel, and then compare this longitudinally within patients are multiple timepoints to see any changes in coronary lumen.

This functionality is well documented for 3D scans, but I can’t figure this out in 2D. Similar to the youtube walkthrough, I attempted to use the Segment Editor and Local Thresholding, but the next step is the “Show 3D” and clean up the segmentation there, but that’s not available for 2D slices.

I’ve also tried the VMTK module " Guided Artery Segmentation". I started with adding a curve in markups as so:

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

When I run the segmentation, here’s my result which I don’t know how to use:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/f/4ff724159006e5814ae235e300453c0afef2fa6f.jpeg)

I uploaded the DICOM I’m trying to process here: [https://file.io/6c408TBokUNg](https://file.io/6c408TBokUNg)

Thank you!

[![](https://img.youtube.com/vi/caEuwJ7pCWs/maxresdefault.jpg "Vessel segmentation and centerline extraction using 3D Slicer and VMTK") ](https://www.youtube.com/watch?v=caEuwJ7pCWs)

> [@How to extract 3D vessels segmentation quickly and accurately?](https://discourse.slicer.org/t/how-to-extract-3d-vessels-segmentation-quickly-and-accurately/12571):
>
> Hi,All! I need to extract 3D vessels segmentation from 3d TOF MRA,I want to do that more quickly and accurately .Now I use threshold and islands in segment editor to that and my segmentation as follow.But is there a better way to do?

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [November 5, 2024, 6:50pm UTC](https://discourse.slicer.org/t/how-to-extract-2d-vessels-quickly-and-accurately/40039/2 "2024-11-05T18:50:17Z")

</div>

This is a 2D image from a coronary angiogram. Slicer works with 3D volumes. Consider working with CT coroscans if you want to segment anything in Slicer.

---

<div class="post-metadata">

**Author:** ![jsalas424](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jsalas424](https://discourse.slicer.org/u/jsalas424)\
**Post date:** [November 5, 2024, 6:53pm UTC](https://discourse.slicer.org/t/how-to-extract-2d-vessels-quickly-and-accurately/40039/3 "2024-11-05T18:53:22Z")

</div>

> [@chir.set](#):
>
> CT coroscans

Is this to say that dealing with 2D images is not possible in Slicer?

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [November 5, 2024, 8:16pm UTC](https://discourse.slicer.org/t/how-to-extract-2d-vessels-quickly-and-accurately/40039/4 "2024-11-05T20:16:46Z")

</div>

> [@jsalas424](#):
>
> Is this to say that dealing with 2D images is not possible in Slicer?

Yes, not possible. You would be investing time worthlessly, even if you get to some kind of promising output.

There’s a project called SAM - ‘Segment anything model’, that works on 2D images. You may investigate there.

---

<div class="post-metadata">

**Author:** ![Shimaa\_Hamid](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shimaa_hamid/32/82799_2.png) [@Shimaa\_Hamid](https://discourse.slicer.org/u/Shimaa_Hamid)\
**Post date:** [September 11, 2026, 11:53am UTC](https://discourse.slicer.org/t/how-to-extract-2d-vessels-quickly-and-accurately/40039/5 "2026-09-11T11:53:04Z")

</div>

so mean that it do not work in 3D Slicer ?
