pub struct RegionGrowingSegmenter { /* private fields */ }Expand description
Normal-based region growing segmenter.
Grows smooth regions by connecting neighboring points whose normals differ by
less than RegionGrowingConfig::smoothness_threshold, seeding growth from
the flattest (lowest-curvature) points first. The input cloud must carry
normals (e.g. from normal estimation).
Implementations§
Source§impl RegionGrowingSegmenter
impl RegionGrowingSegmenter
Sourcepub const fn new(config: RegionGrowingConfig) -> Self
pub const fn new(config: RegionGrowingConfig) -> Self
Creates a segmenter from config.
Sourcepub const fn config(&self) -> RegionGrowingConfig
pub const fn config(&self) -> RegionGrowingConfig
Returns the segmenter config.
Sourcepub fn segment(&self, input: &PointCloud) -> SpatialResult<RegionGrowingResult>
pub fn segment(&self, input: &PointCloud) -> SpatialResult<RegionGrowingResult>
Segments the input cloud into smooth regions, adding a label field.
Trait Implementations§
Source§impl Clone for RegionGrowingSegmenter
impl Clone for RegionGrowingSegmenter
Source§fn clone(&self) -> RegionGrowingSegmenter
fn clone(&self) -> RegionGrowingSegmenter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegionGrowingSegmenter
impl Debug for RegionGrowingSegmenter
Source§impl PartialEq for RegionGrowingSegmenter
impl PartialEq for RegionGrowingSegmenter
impl Copy for RegionGrowingSegmenter
impl StructuralPartialEq for RegionGrowingSegmenter
Auto Trait Implementations§
impl Freeze for RegionGrowingSegmenter
impl RefUnwindSafe for RegionGrowingSegmenter
impl Send for RegionGrowingSegmenter
impl Sync for RegionGrowingSegmenter
impl Unpin for RegionGrowingSegmenter
impl UnsafeUnpin for RegionGrowingSegmenter
impl UnwindSafe for RegionGrowingSegmenter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more