[−][src]Struct opencv::aruco::CharucoBoard
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.
Methods
impl CharucoBoard
[src]
pub fn as_raw_CharucoBoard(&self) -> *mut c_void
[src]
pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self
[src]
impl CharucoBoard
[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 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 create(
squares_x: i32,
squares_y: i32,
square_length: f32,
marker_length: f32,
dictionary: &PtrOfDictionary
) -> Result<PtrOfCharucoBoard>
[src]
squares_x: i32,
squares_y: i32,
square_length: f32,
marker_length: f32,
dictionary: &PtrOfDictionary
) -> Result<PtrOfCharucoBoard>
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.
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]
Trait Implementations
impl BoardTrait for CharucoBoard
[src]
fn as_raw_Board(&self) -> *mut c_void
[src]
impl Send for CharucoBoard
[src]
impl Drop for CharucoBoard
[src]
Auto Trait Implementations
impl !Sync for CharucoBoard
impl Unpin for CharucoBoard
impl UnwindSafe for CharucoBoard
impl RefUnwindSafe for CharucoBoard
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,