[−][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)
Methods
impl GridBoard
[src]
pub fn as_raw_GridBoard(&self) -> *mut c_void
[src]
pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self
[src]
impl GridBoard
[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<()>
Draw a GridBoard
Parameters
- outSize: size of the output image in pixels.
- img: output image with the board. The size of this image will be outSize and the board will be on the center, keeping the board proportions.
- marginSize: minimum margins (in pixels) of the board in the output image
- borderBits: width of the marker borders.
This function return the image of the GridBoard, ready to be printed.
C++ default parameters
- margin_size: 0
- border_bits: 1
pub fn create(
markers_x: i32,
markers_y: i32,
marker_length: f32,
marker_separation: f32,
dictionary: &PtrOfDictionary,
first_marker: i32
) -> Result<PtrOfGridBoard>
[src]
markers_x: i32,
markers_y: i32,
marker_length: f32,
marker_separation: f32,
dictionary: &PtrOfDictionary,
first_marker: i32
) -> Result<PtrOfGridBoard>
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
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]
Trait Implementations
impl BoardTrait for GridBoard
[src]
fn as_raw_Board(&self) -> *mut c_void
[src]
impl Send for GridBoard
[src]
impl Drop for GridBoard
[src]
Auto Trait Implementations
impl !Sync for GridBoard
impl Unpin for GridBoard
impl UnwindSafe for GridBoard
impl RefUnwindSafe for GridBoard
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,