pub struct Keypoint {
pub x: f32,
pub y: f32,
pub a11: f32,
pub a12: f32,
pub a21: f32,
pub a22: f32,
}Expand description
키포인트: 입력 영상 해상도 픽셀 좌표 (x, y) + 아핀 형상 A = [[a11, a12], [a21, a22]] (f32).
픽셀 원점은 좌상단 모서리, 좌상단 화소 중심 = (0.5, 0.5). A 의 열은 키포인트 국소 좌표축을 영상 좌표로 보낸 벡터.
Fields§
§x: f32x 픽셀 좌표.
y: f32y 픽셀 좌표.
a11: f32아핀 형상 A 의 (1,1) 원소.
a12: f32아핀 형상 A 의 (1,2) 원소.
a21: f32아핀 형상 A 의 (2,1) 원소.
a22: f32아핀 형상 A 의 (2,2) 원소.
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.