# Spline Curvature Measurements

**URL:** <https://discourse.slicer.org/t/spline-curvature-measurements/35505>\
**Category:** Support\
**Created:** [April 15, 2024, 7:41pm UTC](https://discourse.slicer.org/t/spline-curvature-measurements/35505 "2024-04-15T19:41:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chub](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chub/32/70059_2.png) [@chub](https://discourse.slicer.org/u/chub)\
**Post date:** [April 15, 2024, 7:41pm UTC](https://discourse.slicer.org/t/spline-curvature-measurements/35505/1 "2024-04-15T19:41:07Z")

</div>

Hello!

I am attempting to characterize curvature of lung anatomy. I am creating splines down the center of bronchi by placing ~5 equidistant control points (~70mm total length). When looking at the curvature mean and curvature max outputs, I am getting a curvature mean of 0.071 mm-1 and a curvature max of 0.419mm-1. This curvature max measurement does not seem to be matching the curvature of my spline as least from a visual comparison standpoint. Was wondering how the software calculates the curvature max measurement based on the spline. Additionally, if there are any other recommended methods to characterize the “smallest” radius of curvature along the length of a spline, it would be much appreciated.

Thanks,  
Brandon

---

<div class="post-metadata">

**Author:** ![bw3232](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bw3232](https://discourse.slicer.org/u/bw3232)\
**Post date:** [April 17, 2024, 5:00pm UTC](https://discourse.slicer.org/t/spline-curvature-measurements/35505/2 "2024-04-17T17:00:30Z")

</div>

This would be really helpful for me as well! The measurements seem severe for curve max on many of my splines.

---

<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:** [April 17, 2024, 5:32pm UTC](https://discourse.slicer.org/t/spline-curvature-measurements/35505/3 "2024-04-17T17:32:20Z")

</div>

> [@chub](#):
>
> This curvature max measurement does not seem to be matching the curvature of my spline as least from a visual comparison standpoint.

Can you show a screenshot?

You can color the curve by curvature in Markups module → Display → Scalars → visibility: enable, active scalar: curvature (and you may wan to set Scalar range mode to Manual and adjust the sliders manually). That may help explaining the numbers.

You may want to resample the curve (Markups module → Resample) to ensure that the curve is smooth and control points are uniformly spaced.

---

<div class="post-metadata">

**Author:** ![chub](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chub/32/70059_2.png) [@chub](https://discourse.slicer.org/u/chub)\
**Post date:** [April 17, 2024, 10:32pm UTC](https://discourse.slicer.org/t/spline-curvature-measurements/35505/4 "2024-04-17T22:32:14Z")

</div>

Hi Andras,

Thanks for the reply! Tried out what you suggested and it looks like it improved the measurements. Curvature max went from 0.419mm-1 to 0.109mm-1.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/c/1c6e6cf1d9208b2d3ab79ed1153b152b6215068f.png)

---

<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:** [April 17, 2024, 11:58pm UTC](https://discourse.slicer.org/t/spline-curvature-measurements/35505/5 "2024-04-17T23:58:26Z")

</div>

Thanks for the update. This suggests that you got the high curvature value because there was some local noise on the curve points.
