pub trait BoardTraitConst {
    fn as_raw_Board(&self) -> *const c_void;

    fn get_dictionary(&self) -> Result<Dictionary> { ... }
    fn get_obj_points(&self) -> Result<Vector<Vector<Point3f>>> { ... }
    fn get_ids(&self) -> Result<Vector<i32>> { ... }
    fn get_right_bottom_corner(&self) -> Result<Point3f> { ... }
    fn match_image_points(
        &self,
        detected_corners: &dyn ToInputArray,
        detected_ids: &dyn ToInputArray,
        obj_points: &mut dyn ToOutputArray,
        img_points: &mut dyn ToOutputArray
    ) -> Result<()> { ... } fn generate_image(
        &self,
        out_size: Size,
        img: &mut dyn ToOutputArray,
        margin_size: i32,
        border_bits: i32
    ) -> Result<()> { ... } }
Expand description

Constant methods for crate::objdetect::Board

Required Methods§

Provided Methods§

return the Dictionary of markers employed for this board

return array of object points of all the marker corners in the board.

Each marker include its 4 corners in this order:

  • objPoints[i][0] - left-top point of i-th marker
  • objPoints[i][1] - right-top point of i-th marker
  • objPoints[i][2] - right-bottom point of i-th marker
  • objPoints[i][3] - left-bottom point of i-th marker

Markers are placed in a certain order - row by row, left to right in every row. For M markers, the size is Mx4.

vector of the identifiers of the markers in the board (should be the same size as objPoints)

Returns

vector of the identifiers of the markers

get coordinate of the bottom right corner of the board, is set when calling the function create()

Given a board configuration and a set of detected markers, returns the corresponding image points and object points to call solvePnP()

Parameters
  • detectedCorners: List of detected marker corners of the board. For CharucoBoard class you can set list of charuco corners.
  • detectedIds: List of identifiers for each marker or list of charuco identifiers for each corner. For CharucoBoard class you can set list of charuco identifiers for each corner.
  • objPoints: Vector of vectors of board marker points in the board coordinate space.
  • imgPoints: Vector of vectors of the projections of board marker corner points.

Draw a planar 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 board, ready to be printed.

C++ default parameters
  • margin_size: 0
  • border_bits: 1

Implementors§