# How to Measure the Perimeter of Slices from a Full-Body 3D Model

**URL:** <https://discourse.slicer.org/t/how-to-measure-the-perimeter-of-slices-from-a-full-body-3d-model/43723>\
**Category:** Support\
**Created:** [July 15, 2025, 4:27am UTC](https://discourse.slicer.org/t/how-to-measure-the-perimeter-of-slices-from-a-full-body-3d-model/43723 "2025-07-15T04:27:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoshi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yoshi/32/80628_2.png) [@yoshi](https://discourse.slicer.org/u/yoshi)\
**Post date:** [July 15, 2025, 4:27am UTC](https://discourse.slicer.org/t/how-to-measure-the-perimeter-of-slices-from-a-full-body-3d-model/43723/1 "2025-07-15T04:27:14Z")

</div>

![2025-07-14 195342](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/0/c0b4bae06d61e4cdb90c5c20b21a52c52c378165.jpeg)

Hi everyone,

I’m new to 3D Slicer. I have a full-body 3D STL model and would like to display slice images at arbitrary positions (see attached picture) and obtain both the perimeter and area of each slice.

I’ve found that if I manually draw a closed curve, Slicer will show the perimeter, but is there a way to have Slicer automatically extract the contour and measure the perimeter (and area) for me?

Thanks in advance for any guidance!

---

<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:** [July 15, 2025, 4:32am UTC](https://discourse.slicer.org/t/how-to-measure-the-perimeter-of-slices-from-a-full-body-3d-model/43723/2 "2025-07-15T04:32:16Z")

</div>

@chir.set Can any of your modules in VMTK extension compute perimeter of the cross-section (or could be easily added)?

---

<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:** [July 15, 2025, 7:46am UTC](https://discourse.slicer.org/t/how-to-measure-the-perimeter-of-slices-from-a-full-body-3d-model/43723/3 "2025-07-15T07:46:58Z")

</div>

> [@lassoan](#):
>
> Can any of your modules in VMTK extension compute perimeter of the cross-section (or could be easily added)?

No, the perimeter of a cross-section was not a goal.

However, it should be scriptable fairly easily using [vtkvmtkPolyDataBoundaryExtractor](https://discourse.slicer.org/t/vmtk-cross-sectional-perimeter-calculation/37747/3).

It would mean pulling in the VMTK libraries. StenosisMeasurement2D would be the elect module to add this functionality, as @yoshi can get both the area and the perimeter. But then, how to integrate this calculation in the module, since it does not fit in the `spirit` of the module?

An independent script still using VMTK is also an option.

The last option would be to consider the cell ids: investigate their neighbourhood relationship, so as not to require VMTK. I may start delving into that in the coming days.

What’s your opinion about these options?

---

<div class="post-metadata">

**Author:** ![yoshi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yoshi/32/80628_2.png) [@yoshi](https://discourse.slicer.org/u/yoshi)\
**Post date:** [July 15, 2025, 8:51am UTC](https://discourse.slicer.org/t/how-to-measure-the-perimeter-of-slices-from-a-full-body-3d-model/43723/4 "2025-07-15T08:51:39Z")

</div>

@lassoan  
Thank you for your support.  
@chir.set  
I saw your reply here: [VMTK - cross-sectional perimeter calculation - #4 by chir.set](https://discourse.slicer.org/t/vmtk-cross-sectional-perimeter-calculation/37747/4)  
It seems to describe exactly what I’m looking for.

For example, if I want to get the area and perimeter of the slice shown in the Red window, and the slice intersects both legs, two cross-sections are displayed.  
Even if multiple cross-sections are present, I would like to obtain the area and perimeter for each one as separate closed curves.

I’m not sure what would be the best way to implement this, but if we could select the slice view (e.g., Red, Green, Yellow), run the calculation, and have the area and perimeter results appear in a table, it would be very useful for anatomical measurements.

Thank you again for your support.

---

<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:** [July 28, 2025, 2:03pm UTC](https://discourse.slicer.org/t/how-to-measure-the-perimeter-of-slices-from-a-full-body-3d-model/43723/5 "2025-07-28T14:03:05Z")

</div>

@yoshi

You may consider this [module](https://gitlab.com/chir-set/Tools7/-/tree/master/Perimeters/) that does what you wish.

I considered that it may be useful in clinical practice, for example, to measure/follow

- the abdominal perimeter in bariatric surgery
- the leg perimeter in deep veinous thrombosis
- …

---

<div class="post-metadata">

**Author:** ![yoshi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yoshi/32/80628_2.png) [@yoshi](https://discourse.slicer.org/u/yoshi)\
**Post date:** [July 31, 2025, 10:26am UTC](https://discourse.slicer.org/t/how-to-measure-the-perimeter-of-slices-from-a-full-body-3d-model/43723/6 "2025-07-31T10:26:55Z")

</div>

Sorry for the late reply.  
Thank you very much for creating the module!  
I will try it out right away.  
As you mentioned, I believe it will be useful for analyzing obesity and similar cases.  
Just wanted to express my gratitude first.

---

<div class="post-metadata">

**Author:** ![yoshi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/yoshi/32/80628_2.png) [@yoshi](https://discourse.slicer.org/u/yoshi)\
**Post date:** [August 15, 2025, 5:07am UTC](https://discourse.slicer.org/t/how-to-measure-the-perimeter-of-slices-from-a-full-body-3d-model/43723/7 "2025-08-15T05:07:41Z")

</div>

@chir.set  
I have installed it and tried various things. It was able to measure just as I expected.  
Thank you very much for creating the module.  
@lassoan  
Thank you for your support.
