pub struct EccMatchParameters {
pub motion_type: MotionType,
pub max_count: Option<i32>,
pub epsilon: Option<f64>,
pub gauss_filt_size: i32,
}Expand description
Structure containing the opencv parameters needed to calculate ecc_match()
Fields§
§motion_type: MotionType§max_count: Option<i32>parameter used as opencv::core::TermCriteria::max_count
epsilon: Option<f64>parameter used as opencv::core::TermCriteria::epsilon
gauss_filt_size: i32parameter used in opencv::video::find_transform_ecc()
Trait Implementations§
Source§impl Clone for EccMatchParameters
impl Clone for EccMatchParameters
Source§fn clone(&self) -> EccMatchParameters
fn clone(&self) -> EccMatchParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EccMatchParameters
impl Debug for EccMatchParameters
Source§impl From<EccMatchParameters> for Result<TermCriteria, StackerError>
impl From<EccMatchParameters> for Result<TermCriteria, StackerError>
Source§fn from(r: EccMatchParameters) -> Result<TermCriteria, StackerError>
fn from(r: EccMatchParameters) -> Result<TermCriteria, StackerError>
Converts from a EccMatchParameters to TermCriteria
let t:Result<opencv::core::TermCriteria, StackerError> = EccMatchParameters{
motion_type: MotionType::Euclidean,
max_count: None,
epsilon: Some(0.1),
gauss_filt_size:3}.into();
let t = t.unwrap();
assert_eq!(t.epsilon, 0.1);
assert_eq!(t.typ, TermCriteria_Type::EPS as i32);impl Copy for EccMatchParameters
Auto Trait Implementations§
impl Freeze for EccMatchParameters
impl RefUnwindSafe for EccMatchParameters
impl Send for EccMatchParameters
impl Sync for EccMatchParameters
impl Unpin for EccMatchParameters
impl UnwindSafe for EccMatchParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more