Hi, I am using the VMTK extension to calculate the cross sectional area of arteries. Is there a function that can calculate the perimeter of the cross sectional area along the centerline?
It is (π x CEDiameter).
Hi! Sorry, I should’ve been more specific. Is there a way to find the perimeter of irregularly shaped cross-sectional areas (along centerline), especially if it is not a circle? Additionally, would there be a way to automate this process to find the perimeter along the centerline of a cross-sectional area, similar to an outputted table? I tired using the markup tool “closed curve” to get as close as I can to the perimeter. But I was wondering if there was a faster/automated way. Thank you!
You can use vtkvmtkPolyDataBoundaryExtractor to create a polydata where point ids are contiguous. The input is a polydata with co-planar points. You can next easily loop through the points of the output to tally up the distance between successive points, the result is the perimeter.
It works with complex input also, like below. The yellow outline is not produced by that class, it’s just a visualisation model from the output.
What clinical inferences can you draw from this quantity?