pub struct TrackParams {
pub window_size: usize,
pub max_iterations: usize,
pub min_eigen_threshold: f32,
}Expand description
Lucas-Kanade parameters of a tracking call.
The fields are named so that they cannot be swapped unnoticed. For 8-bit images, for example:
use optical_flow_lk::{DEFAULT_MIN_EIGEN_THRESHOLD, TrackParams};
let params = TrackParams {
window_size: 21,
max_iterations: 30,
min_eigen_threshold: DEFAULT_MIN_EIGEN_THRESHOLD,
};Fields§
§window_size: usizeSide of the square search window in pixels; must be odd.
max_iterations: usizeMost iterations per pyramid level, see CONVERGENCE_EPSILON.
min_eigen_threshold: f32Windows whose minimum gradient eigenvalue, normalized by the window
area, is below this value are reported as TrackStatus::LowTexture.
In (grey levels / pixel)^2 for 8-bit images, see
DEFAULT_MIN_EIGEN_THRESHOLD; in (input unit / pixel)^2 for the f32
tracker, which has no default.
Trait Implementations§
Source§impl Clone for TrackParams
impl Clone for TrackParams
impl Copy for TrackParams
Source§impl Debug for TrackParams
impl Debug for TrackParams
Source§impl PartialEq for TrackParams
impl PartialEq for TrackParams
impl StructuralPartialEq for TrackParams
Auto Trait Implementations§
impl Freeze for TrackParams
impl RefUnwindSafe for TrackParams
impl Send for TrackParams
impl Sync for TrackParams
impl Unpin for TrackParams
impl UnsafeUnpin for TrackParams
impl UnwindSafe for TrackParams
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