Table of Contents

Method DrawChessboardCorners

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DrawChessboardCorners(InputOutputArray, Size, InputArray, bool)

Renders the detected chessboard corners.

public static void DrawChessboardCorners(InputOutputArray image, Size patternSize, InputArray corners, bool patternWasFound)

Parameters

image InputOutputArray

Destination image. It must be an 8-bit color image.

patternSize Size

Number of inner corners per a chessboard row and column (patternSize = cv::Size(points_per_row,points_per_column)).

corners InputArray

Array of detected corners, the output of findChessboardCorners.

patternWasFound bool

Parameter indicating whether the complete board was found or not. The return value of findChessboardCorners() should be passed here.

DrawChessboardCorners(InputOutputArray, Size, IEnumerable<Point2f>, bool)

Renders the detected chessboard corners.

[SuppressMessage("Maintainability", "CA1508: Avoid dead conditional code")]
public static void DrawChessboardCorners(InputOutputArray image, Size patternSize, IEnumerable<Point2f> corners, bool patternWasFound)

Parameters

image InputOutputArray

Destination image. It must be an 8-bit color image.

patternSize Size

Number of inner corners per a chessboard row and column (patternSize = cv::Size(points_per_row,points_per_column)).

corners IEnumerable<Point2f>

Array of detected corners, the output of findChessboardCorners.

patternWasFound bool

Parameter indicating whether the complete board was found or not. The return value of findChessboardCorners() should be passed here.