pub struct Located {
pub x: i32,
pub y: i32,
pub score: f64,
pub runner_up: f64,
pub ambiguous: bool,
}Expand description
Where a template was found, and how sure the match is.
Fields§
§x: i32Top-left of the best match, in the searched image’s pixels.
y: i32§score: f64Normalized cross-correlation of the best match, -1..=1.
runner_up: f64Best score at a location separated from the match by at least half
the template, or -1 when the image holds no separated location.
ambiguous: boolThe runner-up is itself above SCORE_FLOOR and within
AMBIGUITY_GAP of the best — the match is not trustworthy.
Trait Implementations§
impl Copy for Located
impl StructuralPartialEq for Located
Auto Trait Implementations§
impl Freeze for Located
impl RefUnwindSafe for Located
impl Send for Located
impl Sync for Located
impl Unpin for Located
impl UnsafeUnpin for Located
impl UnwindSafe for Located
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