openalea.phenomenal.segmentation.skeleton_phenomenal.segment_reduction#
- openalea.phenomenal.segmentation.skeleton_phenomenal.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 segment is 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 superior to nb_min_pixel.
- Parameters:
voxel_skeleton (VoxelSkeleton)
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