/// <summary>
/// Draws the individual chessboard corners detected (as red circles) in case if the board was not found (patternWasFound== false) or the colored corners connected with lines when the board was found (patternWasFound == true).
/// </summary>
/// <param name="image">The destination image</param>
/// <param name="patternSize">The number of inner corners per chessboard row and column</param>
/// <param name="corners">The array of corners detected. Can be null if no corners were found</param>
public static void DrawChessboardCorners(
Image <Gray, Byte> image,
Size patternSize,
PointF[] corners)
{
CvInvoke.cvDrawChessboardCorners(
image.Ptr,
patternSize,
corners,
corners.Length,
corners != null ? 1 : 0);
}