| Cv2FindChessboardCorners Method (InputArray, Size, OutputArray, ChessboardFlags) |
Finds the positions of internal corners of the chessboard.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static bool FindChessboardCorners(
InputArray image,
Size patternSize,
OutputArray corners,
ChessboardFlags flags = ChessboardFlags.AdaptiveThresh|ChessboardFlags.NormalizeImage
)
Public Shared Function FindChessboardCorners (
image As InputArray,
patternSize As Size,
corners As OutputArray,
Optional flags As ChessboardFlags = ChessboardFlags.AdaptiveThresh Or ChessboardFlags.NormalizeImage
) As Boolean
public:
static bool FindChessboardCorners(
InputArray^ image,
Size patternSize,
OutputArray^ corners,
ChessboardFlags flags = ChessboardFlags::AdaptiveThresh|ChessboardFlags::NormalizeImage
)
static member FindChessboardCorners :
image : InputArray *
patternSize : Size *
corners : OutputArray *
?flags : ChessboardFlags
(* Defaults:
let _flags = defaultArg flags ChessboardFlags.AdaptiveThresh|ChessboardFlags.NormalizeImage
*)
-> bool
Parameters
- image
- Type: OpenCvSharpInputArray
Source chessboard view. It must be an 8-bit grayscale or color image. - patternSize
- Type: OpenCvSharpSize
Number of inner corners per a chessboard row and column
( patternSize = Size(points_per_row,points_per_colum) = Size(columns, rows) ). - corners
- Type: OpenCvSharpOutputArray
Output array of detected corners. - flags (Optional)
- Type: OpenCvSharpChessboardFlags
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