MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.VolumeSegmenter Class Reference

Classes

class  SeedType
 

Public Member Functions

None __init__ (self, VdbVolume volume)
 
None __init__ (self, VolumeSegmenter arg0)
 
None addPathSeeds (self, VoxelMetricParameters metricParameters, VolumeSegmenter.SeedType seedType, float exponentModifier=-1.0)
 
None addSeeds (self, std_vector_Vector3_int seeds, VolumeSegmenter.SeedType seedType)
 
Mesh createMeshFromSegmentation (self, VoxelBitSet segmentation)
 
Vector3i getMinVoxel (self)
 
std_vector_Vector3_int getSeeds (self, VolumeSegmenter.SeedType seedType)
 
Vector3i getVolumePartDimensions (self)
 
VoxelBitSet segmentVolume (self, float segmentationExponentModifier=3000.0, int voxelsExpansion=25, func_bool_from_float cb='MR::ProgressCallback{}')
 
None setSeeds (self, std_vector_Vector3_int seeds, VolumeSegmenter.SeedType seedType)
 

Detailed Description

Generated from:  MR::VolumeSegmenter


 \\brief Class for voxels segmentation

 <table border=0> <caption id="VolumeSegmenter_examples"></caption>
 <tr> <td> \\image html voxel_segmentation/voxel_segmentation_0_0.png "Before (a)" width = 350cm </td>
      <td> \\image html voxel_segmentation/voxel_segmentation_0_1.png "Before (b)" width = 350cm </td> </tr>
      <td> \\image html voxel_segmentation/voxel_segmentation_0_2.png "After" width = 350cm </td> </tr>
 </table>

Constructor & Destructor Documentation

◆ __init__() [1/2]

None meshlib.mrmeshpy.VolumeSegmenter.__init__ ( self,
VdbVolume volume )

◆ __init__() [2/2]

None meshlib.mrmeshpy.VolumeSegmenter.__init__ ( self,
VolumeSegmenter arg0 )
Implicit copy constructor.

Member Function Documentation

◆ addPathSeeds()

None meshlib.mrmeshpy.VolumeSegmenter.addPathSeeds ( self,
VoxelMetricParameters metricParameters,
VolumeSegmenter.SeedType seedType,
float exponentModifier = -1.0 )
Builds path with given parameters, marks result as seedType seeds

◆ addSeeds()

None meshlib.mrmeshpy.VolumeSegmenter.addSeeds ( self,
std_vector_Vector3_int seeds,
VolumeSegmenter.SeedType seedType )
Adds new seeds to stored

◆ createMeshFromSegmentation()

Mesh meshlib.mrmeshpy.VolumeSegmenter.createMeshFromSegmentation ( self,
VoxelBitSet segmentation )
Returns mesh of given segment

◆ getMinVoxel()

Vector3i meshlib.mrmeshpy.VolumeSegmenter.getMinVoxel ( self)
Min voxel of volume part box in whole volume space, filled after segmentation

◆ getSeeds()

std_vector_Vector3_int meshlib.mrmeshpy.VolumeSegmenter.getSeeds ( self,
VolumeSegmenter.SeedType seedType )
Return currently stored seeds

◆ getVolumePartDimensions()

Vector3i meshlib.mrmeshpy.VolumeSegmenter.getVolumePartDimensions ( self)
Dimensions of volume part, filled after segmentation

◆ segmentVolume()

VoxelBitSet meshlib.mrmeshpy.VolumeSegmenter.segmentVolume ( self,
float segmentationExponentModifier = 3000.0,
int voxelsExpansion = 25,
func_bool_from_float cb = 'MR::ProgressCallback{}' )
Segments volume, return inside part segmentation (VoxelBitSet in space of VolumePart)

◆ setSeeds()

None meshlib.mrmeshpy.VolumeSegmenter.setSeeds ( self,
std_vector_Vector3_int seeds,
VolumeSegmenter.SeedType seedType )
Reset seeds with given ones

The documentation for this class was generated from the following file: