pub struct RansacOptions {
pub max_iterations: usize,
pub inlier_threshold: f64,
pub min_inlier_count: usize,
pub seed: u64,
pub confidence: f64,
}Expand description
Configuration for RANSAC fitting.
Use RansacOptions::default for sensible defaults and override individual
fields as needed.
Fields§
§max_iterations: usizeMaximum number of sampling iterations.
inlier_threshold: f64Maximum distance from the model for a point to be counted as an inlier.
min_inlier_count: usizeMinimum number of inliers required for the result to be considered valid.
seed: u64Seed for the deterministic Knuth MMIX LCG used to draw samples.
confidence: f64Desired probability that at least one outlier-free sample is drawn; used by the adaptive stopping criterion.
Trait Implementations§
Source§impl Clone for RansacOptions
impl Clone for RansacOptions
Source§fn clone(&self) -> RansacOptions
fn clone(&self) -> RansacOptions
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 RansacOptions
impl Debug for RansacOptions
Source§impl Default for RansacOptions
impl Default for RansacOptions
Source§impl PartialEq for RansacOptions
impl PartialEq for RansacOptions
Source§fn eq(&self, other: &RansacOptions) -> bool
fn eq(&self, other: &RansacOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RansacOptions
Auto Trait Implementations§
impl Freeze for RansacOptions
impl RefUnwindSafe for RansacOptions
impl Send for RansacOptions
impl Sync for RansacOptions
impl Unpin for RansacOptions
impl UnsafeUnpin for RansacOptions
impl UnwindSafe for RansacOptions
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