[][src]Struct opencv::core::TermCriteria

pub struct TermCriteria { /* fields omitted */ }

The class defining termination criteria for iterative algorithms.

You can initialize it by default constructor and then override any parameters, or the structure may be fully initialized using the advanced variant of the constructor.

Methods

impl TermCriteria[src]

pub fn as_raw_TermCriteria(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

impl TermCriteria[src]

pub fn _type(&self) -> Result<i32>[src]

the type of termination criteria: COUNT, EPS or COUNT + EPS

pub fn max_count(&self) -> Result<i32>[src]

the maximum number of iterations/elements

pub fn epsilon(&self) -> Result<f64>[src]

the desired accuracy

pub fn default() -> Result<TermCriteria>[src]

default constructor

pub fn new(_type: i32, max_count: i32, epsilon: f64) -> Result<TermCriteria>[src]

Parameters

  • type: The type of termination criteria, one of TermCriteria::Type
  • maxCount: The maximum number of iterations or elements to compute.
  • epsilon: The desired accuracy or change in parameters at which the iterative algorithm stops.

pub fn is_valid(&self) -> Result<bool>[src]

Trait Implementations

impl Send for TermCriteria[src]

impl Drop for TermCriteria[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]