Struct opencv::aruco::CharucoBoard
source · [−]pub struct CharucoBoard { /* private fields */ }
Expand description
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.
Implementations
sourceimpl CharucoBoard
impl CharucoBoard
sourcepub fn create(
squares_x: i32,
squares_y: i32,
square_length: f32,
marker_length: f32,
dictionary: &Ptr<Dictionary>
) -> Result<Ptr<CharucoBoard>>
pub fn create(
squares_x: i32,
squares_y: i32,
square_length: f32,
marker_length: f32,
dictionary: &Ptr<Dictionary>
) -> Result<Ptr<CharucoBoard>>
Create a CharucoBoard object
Parameters
- squaresX: number of chessboard squares in X direction
- squaresY: number of chessboard squares in Y direction
- squareLength: chessboard square side length (normally in meters)
- markerLength: marker side length (same unit than squareLength)
- dictionary: dictionary of markers indicating the type of markers. The first markers in the dictionary are used to fill the white chessboard squares.
Returns
the output CharucoBoard object
This functions creates a CharucoBoard object given the number of squares in each direction and the size of the markers and chessboard squares.
Trait Implementations
sourceimpl BoardTrait for CharucoBoard
impl BoardTrait for CharucoBoard
fn as_raw_mut_Board(&mut self) -> *mut c_void
sourcefn set_obj_points(&mut self, val: Vector<Vector<Point3f>>)
fn set_obj_points(&mut self, val: Vector<Vector<Point3f>>)
array of object points of all the marker corners in the board
each marker include its 4 corners in this order: Read more
sourcefn dictionary(&mut self) -> Ptr<Dictionary>
fn dictionary(&mut self) -> Ptr<Dictionary>
the dictionary of markers employed for this board
sourcefn set_dictionary(&mut self, val: Ptr<Dictionary>)
fn set_dictionary(&mut self, val: Ptr<Dictionary>)
the dictionary of markers employed for this board
sourcefn set_ids(&mut self, val: Vector<i32>)
fn set_ids(&mut self, val: Vector<i32>)
vector of the identifiers of the markers in the board (same size than objPoints)
The identifiers refers to the board dictionary Read more
sourcefn set_right_bottom_border(&mut self, val: Point3f)
fn set_right_bottom_border(&mut self, val: Point3f)
coordinate of the bottom right corner of the board, is set when calling the function create()
sourceimpl BoardTraitConst for CharucoBoard
impl BoardTraitConst for CharucoBoard
fn as_raw_Board(&self) -> *const c_void
sourcefn obj_points(&self) -> Vector<Vector<Point3f>>
fn obj_points(&self) -> Vector<Vector<Point3f>>
array of object points of all the marker corners in the board
each marker include its 4 corners in this order: Read more
sourcefn ids(&self) -> Vector<i32>
fn ids(&self) -> Vector<i32>
vector of the identifiers of the markers in the board (same size than objPoints)
The identifiers refers to the board dictionary Read more
sourcefn right_bottom_border(&self) -> Point3f
fn right_bottom_border(&self) -> Point3f
coordinate of the bottom right corner of the board, is set when calling the function create()
sourceimpl Boxed for CharucoBoard
impl Boxed for CharucoBoard
sourceimpl CharucoBoardTrait for CharucoBoard
impl CharucoBoardTrait for CharucoBoard
fn as_raw_mut_CharucoBoard(&mut self) -> *mut c_void
fn set_chessboard_corners(&mut self, val: Vector<Point3f>)
fn set_nearest_marker_idx(&mut self, val: Vector<Vector<i32>>)
fn set_nearest_marker_corners(&mut self, val: Vector<Vector<i32>>)
sourceimpl CharucoBoardTraitConst for CharucoBoard
impl CharucoBoardTraitConst for CharucoBoard
fn as_raw_CharucoBoard(&self) -> *const c_void
fn chessboard_corners(&self) -> Vector<Point3f>
fn nearest_marker_idx(&self) -> Vector<Vector<i32>>
fn nearest_marker_corners(&self) -> Vector<Vector<i32>>
fn get_chessboard_size(&self) -> Result<Size>
fn get_square_length(&self) -> Result<f32>
fn get_marker_length(&self) -> Result<f32>
sourceimpl Drop for CharucoBoard
impl Drop for CharucoBoard
sourceimpl From<CharucoBoard> for Board
impl From<CharucoBoard> for Board
sourcefn from(s: CharucoBoard) -> Self
fn from(s: CharucoBoard) -> Self
Converts to this type from the input type.
impl Send for CharucoBoard
Auto Trait Implementations
impl RefUnwindSafe for CharucoBoard
impl !Sync for CharucoBoard
impl Unpin for CharucoBoard
impl UnwindSafe for CharucoBoard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more