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§
- Shape2d
Features - 2D shape features from a binary mask (nonzero = foreground).
- Shape3d
Features - 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.