pub struct StereoBmOptions {
pub window_size: usize,
pub min_disparity: i32,
pub num_disparities: i32,
pub uniqueness_ratio: f32,
}Expand description
Block-matching stereo options.
Fields§
§window_size: usizeOdd SAD window size in pixels.
min_disparity: i32Inclusive minimum positive disparity in pixels.
num_disparities: i32Number of disparities searched (must be positive and even-friendly).
uniqueness_ratio: f32Uniqueness ratio in percent; candidates failing it are invalid.
Implementations§
Source§impl StereoBmOptions
impl StereoBmOptions
Sourcepub fn validate(self) -> VisionResult<Self>
pub fn validate(self) -> VisionResult<Self>
Validates window and disparity search settings.
Trait Implementations§
Source§impl Clone for StereoBmOptions
impl Clone for StereoBmOptions
Source§fn clone(&self) -> StereoBmOptions
fn clone(&self) -> StereoBmOptions
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 StereoBmOptions
impl Debug for StereoBmOptions
Source§impl Default for StereoBmOptions
impl Default for StereoBmOptions
Source§impl PartialEq for StereoBmOptions
impl PartialEq for StereoBmOptions
Source§fn eq(&self, other: &StereoBmOptions) -> bool
fn eq(&self, other: &StereoBmOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StereoBmOptions
impl StructuralPartialEq for StereoBmOptions
Auto Trait Implementations§
impl Freeze for StereoBmOptions
impl RefUnwindSafe for StereoBmOptions
impl Send for StereoBmOptions
impl Sync for StereoBmOptions
impl Unpin for StereoBmOptions
impl UnsafeUnpin for StereoBmOptions
impl UnwindSafe for StereoBmOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more