[−][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.
Methods
impl TermCriteria
[src]
pub fn default() -> Result<TermCriteria>
[src]
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 Drop for TermCriteria
[src]
Auto Trait Implementations
impl !Send for TermCriteria
impl !Sync for TermCriteria
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,