Trait opencv::prelude::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§
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>
sourcefn get_chessboard_corners(&self) -> Result<Vector<Point3f>>
fn get_chessboard_corners(&self) -> Result<Vector<Point3f>>
get CharucoBoard::chessboardCorners
sourcefn get_nearest_marker_idx(&self) -> Result<Vector<Vector<i32>>>
fn get_nearest_marker_idx(&self) -> Result<Vector<Vector<i32>>>
get CharucoBoard::nearestMarkerIdx
sourcefn get_nearest_marker_corners(&self) -> Result<Vector<Vector<i32>>>
fn get_nearest_marker_corners(&self) -> Result<Vector<Vector<i32>>>
get CharucoBoard::nearestMarkerCorners
sourcefn check_charuco_corners_collinear(
&self,
charuco_ids: &impl ToInputArray
) -> Result<bool>
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.
Object Safety§
This trait is not object safe.