Struct opencv::objdetect::RefineParameters

source ·
#[repr(C)]
pub struct RefineParameters { pub min_rep_distance: f32, pub error_correction_rate: f32, pub check_all_orders: bool, }
Expand description

struct RefineParameters is used by ArucoDetector

Fields§

§min_rep_distance: f32

minRepDistance minimum distance between the corners of the rejected candidate and the reprojected marker in order to consider it as a correspondence.

§error_correction_rate: f32

minRepDistance rate of allowed erroneous bits respect to the error correction capability of the used dictionary.

-1 ignores the error correction step.

§check_all_orders: bool

checkAllOrders consider the four posible corner orders in the rejectedCorners array.

If it set to false, only the provided corner order is considered (default true).

Implementations§

source§

impl RefineParameters

source

pub fn new( min_rep_distance: f32, error_correction_rate: f32, check_all_orders: bool ) -> Result<RefineParameters>

§C++ default parameters
  • min_rep_distance: 10.f
  • error_correction_rate: 3.f
  • check_all_orders: true
source

pub fn new_def() -> Result<RefineParameters>

§Note

This alternative version of [new] function uses the following default values for its arguments:

  • min_rep_distance: 10.f
  • error_correction_rate: 3.f
  • check_all_orders: true
source

pub fn read_refine_parameters( self, fn_: &impl FileNodeTraitConst ) -> Result<bool>

Read a new set of RefineParameters from FileNode (use FileStorage.root()).

source

pub fn write_refine_parameters( self, fs: &mut impl FileStorageTrait, name: &str ) -> Result<bool>

Write a set of RefineParameters to FileStorage

§C++ default parameters
  • name: String()
source

pub fn write_refine_parameters_def( self, fs: &mut impl FileStorageTrait ) -> Result<bool>

Write a set of RefineParameters to FileStorage

§Note

This alternative version of RefineParameters::write_refine_parameters function uses the following default values for its arguments:

  • name: String()

Trait Implementations§

source§

impl Clone for RefineParameters

source§

fn clone(&self) -> RefineParameters

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for RefineParameters

source§

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

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

impl PartialEq for RefineParameters

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for RefineParameters

source§

impl StructuralPartialEq for RefineParameters

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> 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> ToOwned for T
where T: Clone,

§

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>,

§

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>,

§

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.