pub struct RegionGrowingConfig {
pub k_neighbors: usize,
pub smoothness_threshold: f32,
pub curvature_threshold: f32,
pub min_cluster_size: usize,
pub max_cluster_size: usize,
}Expand description
Configuration for normal-based region growing segmentation.
Fields§
§k_neighbors: usizeNumber of nearest neighbors considered per point.
smoothness_threshold: f32Maximum angle (radians) between point normals for them to join a region.
curvature_threshold: f32Maximum curvature for a point to act as a growth seed.
Only applied when the input cloud carries a curvature field; flatter
points (low curvature) are grown first and propagate the region.
min_cluster_size: usizeMinimum number of points required to keep a region.
max_cluster_size: usizeMaximum number of points allowed in a region.
Implementations§
Source§impl RegionGrowingConfig
impl RegionGrowingConfig
Sourcepub const fn with_smoothness(
smoothness_threshold: f32,
k_neighbors: usize,
) -> Self
pub const fn with_smoothness( smoothness_threshold: f32, k_neighbors: usize, ) -> Self
Creates a config with the given smoothness angle (radians) and neighbor count.
Trait Implementations§
Source§impl Clone for RegionGrowingConfig
impl Clone for RegionGrowingConfig
Source§fn clone(&self) -> RegionGrowingConfig
fn clone(&self) -> RegionGrowingConfig
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 RegionGrowingConfig
impl Debug for RegionGrowingConfig
Source§impl Default for RegionGrowingConfig
impl Default for RegionGrowingConfig
Source§impl PartialEq for RegionGrowingConfig
impl PartialEq for RegionGrowingConfig
impl Copy for RegionGrowingConfig
impl StructuralPartialEq for RegionGrowingConfig
Auto Trait Implementations§
impl Freeze for RegionGrowingConfig
impl RefUnwindSafe for RegionGrowingConfig
impl Send for RegionGrowingConfig
impl Sync for RegionGrowingConfig
impl Unpin for RegionGrowingConfig
impl UnsafeUnpin for RegionGrowingConfig
impl UnwindSafe for RegionGrowingConfig
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