[−][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 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
Auto Trait Implementations
impl !Sync for TermCriteria
impl Unpin for TermCriteria
impl UnwindSafe for TermCriteria
impl RefUnwindSafe for TermCriteria
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,