openalea.phenomenal.segmentation.skeletonize

openalea.phenomenal.segmentation.skeletonize(voxel_grid, graph, subgraph=None, voxels_position_remain=None, mode='plane', plane_width=None, ball_radius=None, neighbor_size=45)[source]

Compute phenomenal skeletonization on the voxel_grid based on the graph.

Parameters:
  • voxel_grid (VoxelGrid) –
  • graph (networkx.Graph) –
  • subgraph (networkx.graph, optional) – If not None, perfom the computation of the shorted paths on the subgraph and remove voxels
  • mode (str, optional) – Mode for intercept point along the paths. Two mode available, “ball” or “plane”. By default “plane” mode.
  • plane_width (int, optional) – Size in mm of the width of the plane. By default or if None is equal to the voxel_size of the voxel_grid
  • ball_radius (int, optional) – Size in mm of the radius of the ball. By default or if None is equal to the voxel_size * 4 of the voxel_grid
Returns:

voxel_skeleton

Return type:

VoxelSkeleton