openalea.phenomenal.segmentation.segment_reduction

openalea.phenomenal.segmentation.segment_reduction(voxel_skeleton, image_projection, required_visible=4, nb_min_pixel=100)[source]

Reduce the number of segments in a VoxelSkeleton object, according to their projection results. Each segments are kept if their projection on the images are not cover by the projection of the other segments in number required_visible. Segments are not cover if their remaining projected pixel are superio to nb_min_pixel.

Parameters:
  • voxel_skeleton (VoxelSkeleton) –
  • image_projection (list of tuple (image, projection)) –
  • required_visible (int, optional) – Number of required not_covered segment to kept it.
  • nb_min_pixel (int, optional) – Number of remaining pixel required to consider segment not covered