Table of Contents

Method FindChessboardCorners

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

FindChessboardCorners(InputArray, Size, OutputArray, ChessboardFlags)

Finds the positions of internal corners of the chessboard.

public static bool FindChessboardCorners(InputArray image, Size patternSize, OutputArray corners, ChessboardFlags flags = ChessboardFlags.AdaptiveThresh | ChessboardFlags.NormalizeImage)

Parameters

image InputArray

Source chessboard view. It must be an 8-bit grayscale or color image.

patternSize Size

Number of inner corners per a chessboard row and column ( patternSize = Size(points_per_row,points_per_colum) = Size(columns, rows) ).

corners OutputArray

Output array of detected corners.

flags ChessboardFlags

Various operation flags that can be zero or a combination of the ChessboardFlag values

Returns

bool

The function returns true if all of the corners are found and they are placed in a certain order (row by row, left to right in every row). Otherwise, if the function fails to find all the corners or reorder them, it returns false.

FindChessboardCorners(InputArray, Size, out Point2f[], ChessboardFlags)

Finds the positions of internal corners of the chessboard.

public static bool FindChessboardCorners(InputArray image, Size patternSize, out Point2f[] corners, ChessboardFlags flags = ChessboardFlags.AdaptiveThresh | ChessboardFlags.NormalizeImage)

Parameters

image InputArray

Source chessboard view. It must be an 8-bit grayscale or color image.

patternSize Size

Number of inner corners per a chessboard row and column ( patternSize = Size(points_per_row,points_per_colum) = Size(columns, rows) ).

corners Point2f[]

Output array of detected corners.

flags ChessboardFlags

Various operation flags that can be zero or a combination of the ChessboardFlag values

Returns

bool

The function returns true if all of the corners are found and they are placed in a certain order (row by row, left to right in every row). Otherwise, if the function fails to find all the corners or reorder them, it returns false.