pub struct Keypoint {
pub x: f32,
pub y: f32,
pub a11: f32,
pub a12: f32,
pub a21: f32,
pub a22: f32,
}Expand description
Keypoint: pixel coordinates (x, y) at input image resolution + affine shape A = [[a11, a12], [a21, a22]] (f32).
The pixel origin is the top-left corner; the top-left pixel center = (0.5, 0.5). The columns of A are the keypoint’s local coordinate axes mapped into image coordinates.
Fields§
§x: f32x pixel coordinate.
y: f32y pixel coordinate.
a11: f32The (1,1) element of the affine shape A.
a12: f32The (1,2) element of the affine shape A.
a21: f32The (2,1) element of the affine shape A.
a22: f32The (2,2) element of the affine shape A.
Implementations§
Trait Implementations§
impl Copy for Keypoint
impl StructuralPartialEq for Keypoint
Auto Trait Implementations§
impl Freeze for Keypoint
impl RefUnwindSafe for Keypoint
impl Send for Keypoint
impl Sync for Keypoint
impl Unpin for Keypoint
impl UnsafeUnpin for Keypoint
impl UnwindSafe for Keypoint
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.