seung-lab / kimimaro

Skeletonize densely labeled 3D image segmentations with TEASAR. (Medial Axis Transform)
GNU General Public License v3.0
135 stars 23 forks source link

feat: compute cross sectional area for vertices #84

Closed william-silversmith closed 8 months ago

william-silversmith commented 8 months ago

Adds kimimaro.cross_sectional_area which can be used as a post-processing method to compute the cross sectional area for each vertex. The sectioning plane is defined by a normal vector, that vector is the difference between the current and next vertex.

The normals can be smoothed using a windowed averaging function.