[][src]Function opencv::calib3d::draw_chessboard_corners

pub fn draw_chessboard_corners(
    image: &mut dyn ToInputOutputArray,
    pattern_size: Size,
    corners: &dyn ToInputArray,
    pattern_was_found: bool
) -> Result<()>

Renders the detected chessboard corners.

Parameters

  • image: Destination image. It must be an 8-bit color image.
  • patternSize: Number of inner corners per a chessboard row and column (patternSize = cv::Size(points_per_row,points_per_column)).
  • corners: Array of detected corners, the output of findChessboardCorners.
  • patternWasFound: Parameter indicating whether the complete board was found or not. The return value of findChessboardCorners should be passed here.

The function draws individual chessboard corners detected either as red circles if the board was not found, or as colored corners connected with lines if the board was found.