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

#[repr(C)]pub struct TermCriteria {
    pub typ: i32,
    pub max_count: i32,
    pub epsilon: f64,
}

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.

Fields

typ: i32

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

max_count: i32

the maximum number of iterations/elements

epsilon: f64

the desired accuracy

Implementations

impl TermCriteria[src]

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

default constructor

pub fn new(typ: 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 Clone for TermCriteria[src]

impl Copy for TermCriteria[src]

impl Debug for TermCriteria[src]

impl PartialEq<TermCriteria> for TermCriteria[src]

impl StructuralPartialEq for TermCriteria[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.