pub struct CellKeypoint {
pub xy: [f32; 2],
pub response: f32,
pub cell_id: u32,
}Expand description
A FAST corner annotated with the cell it was detected in.
Returned by fast_detect_cells_u8. The cell_id is a row-major index
into the grid of cells the image was partitioned into; downstream code can
use it to build occupancy masks, do per-cell top-k selection, etc.
Fields§
§xy: [f32; 2]Position as [col, row] in image pixels.
response: f32FAST response score.
cell_id: u32Row-major cell index the corner falls into.
Trait Implementations§
Source§impl Clone for CellKeypoint
impl Clone for CellKeypoint
Source§fn clone(&self) -> CellKeypoint
fn clone(&self) -> CellKeypoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CellKeypoint
Source§impl Debug for CellKeypoint
impl Debug for CellKeypoint
Source§impl PartialEq for CellKeypoint
impl PartialEq for CellKeypoint
impl StructuralPartialEq for CellKeypoint
Auto Trait Implementations§
impl Freeze for CellKeypoint
impl RefUnwindSafe for CellKeypoint
impl Send for CellKeypoint
impl Sync for CellKeypoint
impl Unpin for CellKeypoint
impl UnsafeUnpin for CellKeypoint
impl UnwindSafe for CellKeypoint
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.