| Cv2FindChessboardCorners Method (InputArray, Size, Point2f, 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,
out Point2f[] corners,
ChessboardFlags flags = ChessboardFlags.AdaptiveThresh|ChessboardFlags.NormalizeImage
)
Public Shared Function FindChessboardCorners (
image As InputArray,
patternSize As Size,
<OutAttribute> ByRef corners As Point2f(),
Optional flags As ChessboardFlags = ChessboardFlags.AdaptiveThresh Or ChessboardFlags.NormalizeImage
) As Boolean
public:
static bool FindChessboardCorners(
InputArray^ image,
Size patternSize,
[OutAttribute] array<Point2f>^% corners,
ChessboardFlags flags = ChessboardFlags::AdaptiveThresh|ChessboardFlags::NormalizeImage
)
static member FindChessboardCorners :
image : InputArray *
patternSize : Size *
corners : Point2f[] byref *
?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: OpenCvSharpPoint2f
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