[−][src]Struct opencv::core::TermCriteria
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]
fn clone(&self) -> TermCriteria
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TermCriteria
[src]
impl Debug for TermCriteria
[src]
impl PartialEq<TermCriteria> for TermCriteria
[src]
fn eq(&self, other: &TermCriteria) -> bool
[src]
fn ne(&self, other: &TermCriteria) -> bool
[src]
impl StructuralPartialEq for TermCriteria
[src]
Auto Trait Implementations
impl RefUnwindSafe for TermCriteria
[src]
impl Send for TermCriteria
[src]
impl Sync for TermCriteria
[src]
impl Unpin for TermCriteria
[src]
impl UnwindSafe for TermCriteria
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,