MeshLib Documentation
Loading...
Searching...
No Matches
Volume (Voxel) Segmentation

This chapter represents documentation about Volume (Voxel) Segmentation. More...

Classes

struct  MR::VolumeSegmentationParameters
 Parameters for volume segmentation. More...
 
class  MR::VolumeSegmenter
 Class for voxels segmentation. More...
 

Functions

MRVOXELS_API Expected< MR::MeshMR::meshFromVoxelsMask (const VdbVolume &volume, const VoxelBitSet &mask)
 Creates mesh from voxels mask.
 
MRVOXELS_API Expected< MR::MeshMR::segmentVolume (const VdbVolume &volume, const std::vector< std::pair< Vector3f, Vector3f > > &pairs, const VolumeSegmentationParameters &params=VolumeSegmentationParameters())
 Simple segment volume.
 

Detailed Description

This chapter represents documentation about Volume (Voxel) Segmentation.

Function Documentation

◆ meshFromVoxelsMask()

MRVOXELS_API Expected< MR::Mesh > MR::meshFromVoxelsMask ( const VdbVolume & volume,
const VoxelBitSet & mask )

Creates mesh from voxels mask.

Parameters
maskin space of whole volume density inside mask is expected to be higher then outside

◆ segmentVolume()

MRVOXELS_API Expected< MR::Mesh > MR::segmentVolume ( const VdbVolume & volume,
const std::vector< std::pair< Vector3f, Vector3f > > & pairs,
const VolumeSegmentationParameters & params = VolumeSegmentationParameters() )

Simple segment volume.

  1. Build paths between points pairs
  2. Mark paths as inside part seeds
  3. Mark volume part edges as outside part seeds
  4. Return mesh from segmented inside part