pub struct NormalEstimator { /* private fields */ }Expand description
Covariance-based normal estimator.
Implementations§
Source§impl NormalEstimator
impl NormalEstimator
Sourcepub const fn new(config: NormalEstimationConfig) -> Self
pub const fn new(config: NormalEstimationConfig) -> Self
Creates a normal estimator from config.
Sourcepub const fn config(&self) -> NormalEstimationConfig
pub const fn config(&self) -> NormalEstimationConfig
Returns the estimator config.
Sourcepub fn estimate_with_diagnostics(
&self,
input: &PointCloud,
) -> SpatialResult<(PointCloud, NormalEstimationResult)>
pub fn estimate_with_diagnostics( &self, input: &PointCloud, ) -> SpatialResult<(PointCloud, NormalEstimationResult)>
Estimates normals and curvature, returning output cloud and diagnostics.
Sourcepub fn estimate_with_policy(
&self,
input: &PointCloud,
policy: ExecutionPolicy,
) -> SpatialResult<PointCloud>
pub fn estimate_with_policy( &self, input: &PointCloud, policy: ExecutionPolicy, ) -> SpatialResult<PointCloud>
Estimates normals using the given execution policy.
With the feature-normal-gpu feature, ExecutionPolicy::Auto
runs covariance analysis on wgpu when the input meets
NormalEstimationConfig::effective_gpu_min_points. An explicit GPU
policy is strict and does not use the threshold; use Auto for fallback.
Sourcepub fn estimate_with_policy_and_receipt(
&self,
input: &PointCloud,
policy: ExecutionPolicy,
) -> SpatialResult<ExecutionOutput<PointCloud>>
pub fn estimate_with_policy_and_receipt( &self, input: &PointCloud, policy: ExecutionPolicy, ) -> SpatialResult<ExecutionOutput<PointCloud>>
Estimates normals and returns execution/transfer accounting.
Sourcepub fn selects_gpu_backend(
&self,
input: &PointCloud,
policy: ExecutionPolicy,
) -> bool
pub fn selects_gpu_backend( &self, input: &PointCloud, policy: ExecutionPolicy, ) -> bool
Returns whether the given policy selects the GPU backend for this input.
Sourcepub fn gpu_grid_fits(&self, input: &PointCloud, radius: f32) -> bool
pub fn gpu_grid_fits(&self, input: &PointCloud, radius: f32) -> bool
Returns whether a GPU uniform-grid normal pass fits the input bounds at radius.
Trait Implementations§
Source§impl Clone for NormalEstimator
impl Clone for NormalEstimator
Source§fn clone(&self) -> NormalEstimator
fn clone(&self) -> NormalEstimator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NormalEstimator
impl Debug for NormalEstimator
Source§impl FeatureEstimator for NormalEstimator
impl FeatureEstimator for NormalEstimator
Source§fn estimate(&self, input: &PointCloud) -> SpatialResult<PointCloud>
fn estimate(&self, input: &PointCloud) -> SpatialResult<PointCloud>
Runs feature estimation and returns an output point cloud.
Source§impl PartialEq for NormalEstimator
impl PartialEq for NormalEstimator
Source§fn eq(&self, other: &NormalEstimator) -> bool
fn eq(&self, other: &NormalEstimator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NormalEstimator
Auto Trait Implementations§
impl Freeze for NormalEstimator
impl RefUnwindSafe for NormalEstimator
impl Send for NormalEstimator
impl Sync for NormalEstimator
impl Unpin for NormalEstimator
impl UnsafeUnpin for NormalEstimator
impl UnwindSafe for NormalEstimator
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