Finds the positions of internal corners of the chessboard.
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool FindChessboardCorners( InputArray image, Size patternSize, out Point2f[] corners, ChessboardFlag flags = ChessboardFlag.Zero|ChessboardFlag.AdaptiveThresh|ChessboardFlag.NormalizeImage )
Parameters
- image
- Type: OpenCvSharp.CPlusPlusInputArray
Source chessboard view. It must be an 8-bit grayscale or color image. - patternSize
- Type: OpenCvSharp.CPlusPlusSize
Number of inner corners per a chessboard row and column ( patternSize = Size(points_per_row,points_per_colum) = Size(columns, rows) ). - corners
- Type: OpenCvSharp.CPlusPlusPoint2f
Output array of detected corners. - flags (Optional)
- Type: OpenCvSharpChessboardFlag
Various operation flags that can be zero or a combination of the ChessboardFlag values
Return Value
Type: BooleanThe 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.
See Also