# 3D reconstruction from 2D slices

**URL:** <https://discourse.slicer.org/t/3d-reconstruction-from-2d-slices/9784>\
**Category:** Support\
**Created:** [January 12, 2020, 5:24pm UTC](https://discourse.slicer.org/t/3d-reconstruction-from-2d-slices/9784 "2020-01-12T17:24:16Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Deepa](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/deepa/32/5634_2.png) [@Deepa](https://discourse.slicer.org/u/Deepa)\
**Post date:** [May 15, 2020, 1:47am UTC](https://discourse.slicer.org/t/3d-reconstruction-from-2d-slices/9784/10 "2020-05-15T01:47:47Z")

</div>

@lassoan

> [@lassoan](#):
>
> If the goal is to just extract vessels of a diameter range then it is very easy to do. If you have a segment that only contains vessels then you can use the Margin effect to shrink diameter of all vessels (this will make all vessels that have smaller diameters than the erosion disappear completely) then use the same effect to grow them back to the original diameter. This results in vessel tree that contains vessels that have diameters over the margin size (or twice the margin size - you need to check the details). To remove large-diameter vessels, you first find them using the same method, then use Logical operators effect to remove them from the image.

Could you please explain if it is possible to do the above using VMTK’s/ 3D Slicer’s python interface?

---

_[View the full topic](https://discourse.slicer.org/t/3d-reconstruction-from-2d-slices/9784)._
