mosaic.operations.skeletonize#

skeletonize(geometry, method='core', sigma=1.0, **kwargs)[source]#

Extract structural skeleton from point cloud.

Parameters:
geometryGeometry or GeometryData

Input data.

method{‘outer’, ‘core’, ‘boundary’}, optional

Structural feature to extract: - ‘core’ : Extract medial axis/centerline through the middle of structures - ‘boundary’ : Extract both inner and outer boundaries for hollow structures - ‘outer’ : Extract outer boundary via skeletonization + convex hull - ‘outer_hull’ : Fast convex hull approximation (no skeletonization)

sigmafloat, optional

Gaussian smoothing for Hessian computation.

**kwargs

Additional arguments passed to the chosen method.

Returns:
mosaic.geometry.GeometryData

Skeletonized point cloud.

Raises:
ValueError

If unsupported method is specified.