[][src]Trait opencv::prelude::CharucoBoardTrait

pub trait CharucoBoardTrait: BoardTrait {
    pub fn as_raw_CharucoBoard(&self) -> *const c_void;
pub fn as_raw_mut_CharucoBoard(&mut self) -> *mut c_void; pub fn chessboard_corners(&mut self) -> Vector<Point3f> { ... }
pub fn set_chessboard_corners(&mut self, val: Vector<Point3f>) { ... }
pub fn nearest_marker_idx(&mut self) -> Vector<Vector<i32>> { ... }
pub fn set_nearest_marker_idx(&mut self, val: Vector<Vector<i32>>) { ... }
pub fn nearest_marker_corners(&mut self) -> Vector<Vector<i32>> { ... }
pub fn set_nearest_marker_corners(&mut self, val: Vector<Vector<i32>>) { ... }
pub fn draw(
        &mut self,
        out_size: Size,
        img: &mut dyn ToOutputArray,
        margin_size: i32,
        border_bits: i32
    ) -> Result<()> { ... }
pub fn get_chessboard_size(&self) -> Result<Size> { ... }
pub fn get_square_length(&self) -> Result<f32> { ... }
pub fn get_marker_length(&self) -> Result<f32> { ... } }

ChArUco board Specific class for ChArUco boards. A ChArUco board is a planar board where the markers are placed inside the white squares of a chessboard. The benefits of ChArUco boards is that they provide both, ArUco markers versatility and chessboard corner precision, which is important for calibration and pose estimation. This class also allows the easy creation and drawing of ChArUco boards.

Required methods

Loading content...

Provided methods

pub fn chessboard_corners(&mut self) -> Vector<Point3f>[src]

pub fn set_chessboard_corners(&mut self, val: Vector<Point3f>)[src]

pub fn nearest_marker_idx(&mut self) -> Vector<Vector<i32>>[src]

pub fn set_nearest_marker_idx(&mut self, val: Vector<Vector<i32>>)[src]

pub fn nearest_marker_corners(&mut self) -> Vector<Vector<i32>>[src]

pub fn set_nearest_marker_corners(&mut self, val: Vector<Vector<i32>>)[src]

pub fn draw(
    &mut self,
    out_size: Size,
    img: &mut dyn ToOutputArray,
    margin_size: i32,
    border_bits: i32
) -> Result<()>
[src]

Draw a ChArUco board

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 ChArUco board, ready to be printed.

C++ default parameters

  • margin_size: 0
  • border_bits: 1

pub fn get_chessboard_size(&self) -> Result<Size>[src]

pub fn get_square_length(&self) -> Result<f32>[src]

pub fn get_marker_length(&self) -> Result<f32>[src]

Loading content...

Implementors

impl CharucoBoardTrait for CharucoBoard[src]

impl CharucoBoardTrait for PtrOfCharucoBoard[src]

Loading content...