Skip to main content

Module shape_3d_lite

Module shape_3d_lite 

Source
Expand description

Lite shape descriptors for binary masks (2D and sparse 3D voxel lists).

2D: area, perimeter (4-connected edge count), circularity proxy, max diameter. 3D: volume (voxel count × spacing), surface proxy, sphericity proxy, max diameter from voxel AABB / pairwise sample.

Structs§

Shape2dFeatures
2D shape features from a binary mask (nonzero = foreground).
Shape3dFeatures
3D shape features from a sparse voxel list.

Functions§

shape_2d_from_mask
Extract 2D shape from a binary mask (nonzero = object).
shape_3d_from_voxels
Extract 3D shape from a sparse list of voxel coordinates.