CharucoBoardTraitConst

Trait CharucoBoardTraitConst 

Source
pub trait CharucoBoardTraitConst: BoardTraitConst {
    // Required method
    fn as_raw_CharucoBoard(&self) -> *const c_void;

    // Provided methods
    fn get_legacy_pattern(&self) -> Result<bool> { ... }
    fn get_chessboard_size(&self) -> Result<Size> { ... }
    fn get_square_length(&self) -> Result<f32> { ... }
    fn get_marker_length(&self) -> Result<f32> { ... }
    fn get_chessboard_corners(&self) -> Result<Vector<Point3f>> { ... }
    fn get_nearest_marker_idx(&self) -> Result<Vector<Vector<i32>>> { ... }
    fn get_nearest_marker_corners(&self) -> Result<Vector<Vector<i32>>> { ... }
    fn check_charuco_corners_collinear(
        &self,
        charuco_ids: &impl ToInputArray,
    ) -> Result<bool> { ... }
}
Expand description

Constant methods for crate::objdetect::CharucoBoard

Required Methods§

Provided Methods§

Source

fn get_legacy_pattern(&self) -> Result<bool>

Source

fn get_chessboard_size(&self) -> Result<Size>

Source

fn get_square_length(&self) -> Result<f32>

Source

fn get_marker_length(&self) -> Result<f32>

Source

fn get_chessboard_corners(&self) -> Result<Vector<Point3f>>

get CharucoBoard::chessboardCorners

Source

fn get_nearest_marker_idx(&self) -> Result<Vector<Vector<i32>>>

get CharucoBoard::nearestMarkerIdx, for each charuco corner, nearest marker index in ids array

Source

fn get_nearest_marker_corners(&self) -> Result<Vector<Vector<i32>>>

get CharucoBoard::nearestMarkerCorners, for each charuco corner, nearest marker corner id of each marker

Source

fn check_charuco_corners_collinear( &self, charuco_ids: &impl ToInputArray, ) -> Result<bool>

check whether the ChArUco markers are collinear

§Parameters
  • charucoIds: list of identifiers for each corner in charucoCorners per frame.
§Returns

bool value, 1 (true) if detected corners form a line, 0 (false) if they do not. solvePnP, calibration functions will fail if the corners are collinear (true).

The number of ids in charucoIDs should be <= the number of chessboard corners in the board. This functions checks whether the charuco corners are on a straight line (returns true, if so), or not (false). Axis parallel, as well as diagonal and other straight lines detected. Degenerate cases: for number of charucoIDs <= 2,the function returns true.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§