#[repr(C)]pub struct ARMarkerInfo2 {
pub area: i32,
pub pos: [ARdouble; 2],
pub coord_num: i32,
pub x_coord: Vec<i32>,
pub y_coord: Vec<i32>,
pub vertex: [i32; 5],
}Expand description
Captures detail of a trapezoidal region which is a candidate for marker detection.
This structure holds the raw 2D pixel-space information for a candidate region found by connected-component labeling and contour extraction before it is fully identified as a specific marker.
Fields§
§area: i32Area in pixels of the largest connected region
pos: [ARdouble; 2]Center of the marker candidate (2D coordinate)
coord_num: i32Number of coordinates corresponding to the candidate’s contour
x_coord: Vec<i32>X coordinates of the contour’s perimeter pixels.
y_coord: Vec<i32>Y coordinates of the contour’s perimeter pixels.
vertex: [i32; 5]Indices into x_coord and y_coord arrays pointing to the four corners of the candidate.
The fifth element wraps around to the first corner (vertex[4] == vertex[0]).
Trait Implementations§
Source§impl Clone for ARMarkerInfo2
impl Clone for ARMarkerInfo2
Source§fn clone(&self) -> ARMarkerInfo2
fn clone(&self) -> ARMarkerInfo2
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ARMarkerInfo2
impl Debug for ARMarkerInfo2
Auto Trait Implementations§
impl Freeze for ARMarkerInfo2
impl RefUnwindSafe for ARMarkerInfo2
impl Send for ARMarkerInfo2
impl Sync for ARMarkerInfo2
impl Unpin for ARMarkerInfo2
impl UnsafeUnpin for ARMarkerInfo2
impl UnwindSafe for ARMarkerInfo2
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