pub struct DetectedMarker {
pub id: Option<usize>,
pub confidence: f32,
pub center: [f64; 2],
pub center_mapped: Option<[f64; 2]>,
pub ellipse_outer: Option<Ellipse>,
pub ellipse_inner: Option<Ellipse>,
pub edge_points_outer: Option<Vec<[f64; 2]>>,
pub edge_points_inner: Option<Vec<[f64; 2]>>,
pub fit: FitMetrics,
pub decode: Option<DecodeMetrics>,
}Expand description
A detected marker with its refined center and optional ID.
The center field is always in image-pixel coordinates, regardless of
whether a PixelMapper was used. When a mapper is
active, center_mapped provides the working-frame (undistorted)
coordinates. Ellipses are in the working frame when a mapper is active.
Fields§
§id: Option<usize>Decoded marker ID (codebook index), or None if decoding was rejected.
confidence: f32Combined detection + decode confidence in [0, 1].
center: [f64; 2]Marker center in raw image pixel coordinates.
This field is always image-space, independent of mapper usage.
center_mapped: Option<[f64; 2]>Marker center in mapper working coordinates, when a mapper is active.
ellipse_outer: Option<Ellipse>Outer ellipse parameters.
ellipse_inner: Option<Ellipse>Inner ellipse parameters.
edge_points_outer: Option<Vec<[f64; 2]>>Raw sub-pixel outer edge inlier points used for ellipse fitting.
edge_points_inner: Option<Vec<[f64; 2]>>Raw sub-pixel inner edge inlier points used for ellipse fitting.
fit: FitMetricsFit quality metrics.
decode: Option<DecodeMetrics>Decode metrics (present if decoding was attempted).
Trait Implementations§
Source§impl Clone for DetectedMarker
impl Clone for DetectedMarker
Source§fn clone(&self) -> DetectedMarker
fn clone(&self) -> DetectedMarker
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DetectedMarker
impl Debug for DetectedMarker
Source§impl Default for DetectedMarker
impl Default for DetectedMarker
Source§fn default() -> DetectedMarker
fn default() -> DetectedMarker
Source§impl<'de> Deserialize<'de> for DetectedMarker
impl<'de> Deserialize<'de> for DetectedMarker
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for DetectedMarker
impl RefUnwindSafe for DetectedMarker
impl Send for DetectedMarker
impl Sync for DetectedMarker
impl Unpin for DetectedMarker
impl UnsafeUnpin for DetectedMarker
impl UnwindSafe for DetectedMarker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.