[][src]Function opencv::aruco::test_charuco_corners_collinear

pub fn test_charuco_corners_collinear(
    _board: &Ptr<CharucoBoard>,
    _charuco_ids: &dyn ToInputArray
) -> Result<bool>

test whether the ChArUco markers are collinear

Parameters

  • _board: layout of ChArUco board.
  • _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.