[−][src]Struct opencv::aruco::GridBoard
Planar board with grid arrangement of markers More common type of board. All markers are placed in the same plane in a grid arrangement. The board can be drawn using drawPlanarBoard() function (see also: drawPlanarBoard)
Implementations
impl GridBoard
[src]
pub fn as_raw_GridBoard(&self) -> *const c_void
[src]
pub fn as_raw_mut_GridBoard(&mut self) -> *mut c_void
[src]
impl GridBoard
[src]
pub fn create(
markers_x: i32,
markers_y: i32,
marker_length: f32,
marker_separation: f32,
dictionary: &Ptr<Dictionary>,
first_marker: i32
) -> Result<Ptr<GridBoard>>
[src]
markers_x: i32,
markers_y: i32,
marker_length: f32,
marker_separation: f32,
dictionary: &Ptr<Dictionary>,
first_marker: i32
) -> Result<Ptr<GridBoard>>
Create a GridBoard object
Parameters
- markersX: number of markers in X direction
- markersY: number of markers in Y direction
- markerLength: marker side length (normally in meters)
- markerSeparation: separation between two markers (same unit as markerLength)
- dictionary: dictionary of markers indicating the type of markers
- firstMarker: id of first marker in dictionary to use on board.
Returns
the output GridBoard object
This functions creates a GridBoard object given the number of markers in each direction and the marker size and marker separation.
C++ default parameters
- first_marker: 0
Trait Implementations
impl BoardTrait for GridBoard
[src]
pub fn as_raw_Board(&self) -> *const c_void
[src]
pub fn as_raw_mut_Board(&mut self) -> *mut c_void
[src]
pub fn obj_points(&mut self) -> Vector<Vector<Point3f>>
[src]
pub fn set_obj_points(&mut self, val: Vector<Vector<Point3f>>)
[src]
pub fn dictionary(&mut self) -> Ptr<Dictionary>
[src]
pub fn set_dictionary(&mut self, val: Ptr<Dictionary>)
[src]
pub fn ids(&mut self) -> Vector<i32>
[src]
pub fn set_ids(&mut self, val: Vector<i32>)
[src]
impl Boxed for GridBoard
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for GridBoard
[src]
impl GridBoardTrait for GridBoard
[src]
pub fn as_raw_GridBoard(&self) -> *const c_void
[src]
pub fn as_raw_mut_GridBoard(&mut self) -> *mut c_void
[src]
pub fn draw(
&mut self,
out_size: Size,
img: &mut dyn ToOutputArray,
margin_size: i32,
border_bits: i32
) -> Result<()>
[src]
&mut self,
out_size: Size,
img: &mut dyn ToOutputArray,
margin_size: i32,
border_bits: i32
) -> Result<()>
pub fn get_grid_size(&self) -> Result<Size>
[src]
pub fn get_marker_length(&self) -> Result<f32>
[src]
pub fn get_marker_separation(&self) -> Result<f32>
[src]
impl Send for GridBoard
[src]
Auto Trait Implementations
impl RefUnwindSafe for GridBoard
[src]
impl !Sync for GridBoard
[src]
impl Unpin for GridBoard
[src]
impl UnwindSafe for GridBoard
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,