Skip to main content

DenseRgbdOdometryOptions

Struct DenseRgbdOdometryOptions 

Source
pub struct DenseRgbdOdometryOptions {
    pub iterations: Vec<usize>,
    pub min_depth: f64,
    pub max_depth: f64,
    pub max_depth_difference: f64,
    pub depth_weight: f64,
    pub min_correspondences: usize,
    pub min_correspondence_fraction: f64,
    pub epsilon: f64,
    pub max_working_bytes: usize,
}
Expand description

Bounded dense photometric/projective-depth least-squares controls.

Fields§

§iterations: Vec<usize>

Iterations from coarsest to finest; one to six levels, 1..=100 each.

§min_depth: f64

Inclusive minimum valid metric depth.

§max_depth: f64

Inclusive maximum valid metric depth.

§max_depth_difference: f64

Maximum absolute target-depth / warped-source-depth difference, metres.

§depth_weight: f64

Relative squared depth weight; intensity weight is one minus this value.

§min_correspondences: usize

Minimum projective correspondence count at every level and final pose.

§min_correspondence_fraction: f64

Minimum matched fraction of all valid source pixels at the returned pose. Initial/intermediate hypotheses need the minimum count and a solvable normal system; they are not yet accepted motion estimates.

§epsilon: f64

Stop a level when rotation-vector norm plus translation norm is smaller.

§max_working_bytes: usize

Upper bound on logical owned pyramid/reduction buffer payloads.

Implementations§

Source§

impl DenseRgbdOdometryOptions

Source

pub fn required_working_bytes( &self, width: usize, height: usize, ) -> VisionResult<usize>

Preflights dimensions, controls and logical buffers before allocation.

Excludes input views/copies, allocator headers and worker/thread stacks.

Source

pub fn required_working_bytes_with_model( &self, width: usize, height: usize, preprocessing: DenseRgbdPreprocessing, model: DenseRgbdFittingModel, ) -> VisionResult<usize>

Preflights a complete fitting model before allocating any logical buffers. RoundedSobel owns raw levels, floor pyramids and one level’s Sobel gradients.

Source

pub fn required_working_bytes_with_preprocessing( &self, width: usize, height: usize, preprocessing: DenseRgbdPreprocessing, ) -> VisionResult<usize>

Includes both retained raw levels when filtered fitting is selected.

Trait Implementations§

Source§

impl Clone for DenseRgbdOdometryOptions

Source§

fn clone(&self) -> DenseRgbdOdometryOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DenseRgbdOdometryOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DenseRgbdOdometryOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for DenseRgbdOdometryOptions

Source§

fn eq(&self, other: &DenseRgbdOdometryOptions) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DenseRgbdOdometryOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.