# Exporting Curvature Data

**URL:** <https://discourse.slicer.org/t/exporting-curvature-data/23181>\
**Category:** Support\
**Tags:** vmtk, centerlines\
**Created:** [April 28, 2022, 4:47pm UTC](https://discourse.slicer.org/t/exporting-curvature-data/23181 "2022-04-28T16:47:17Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![smoudour](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smoudour/32/18451_2.png) [@smoudour](https://discourse.slicer.org/u/smoudour)\
**Post date:** [October 27, 2023, 12:24pm UTC](https://discourse.slicer.org/t/exporting-curvature-data/23181/13 "2023-10-27T12:24:12Z")

</div>

Hi @bserrano  
If you set the number of points per interpolating segment to 1, then you basically get a curvature measurement for n=control points.  
You can set the number of points per interpolating segment to 1 using:  
`curve_node.SetNumberOfPointsPerInterpolatingSegment(1)`

To get number of control points per curve\_node use:  
`curve_node.GetNumberOfControlPoints()`

To get number of curvature points just measure length of curvature array:

```auto
curvature = arrayFromMarkupsCurveData(curve_node, "Curvature", world=True)
len(curvature)

```

I don’t know why you would want to do this though, because to get better curvature measurements you need a small number of control points and a large number of points per interpolating segment, at least that works for my case.  
In general, I found it very useful to visualize the curvature values as mentioned in this post [Separating centerline metrics - #9 by som1197](https://discourse.slicer.org/t/separating-centerline-metrics/19173/9)

---

_[View the full topic](https://discourse.slicer.org/t/exporting-curvature-data/23181)._
