CvInvokeFindChessboardCorners Method |
http://www.emgu.com
Attempts to determine whether the input image is a view of the chessboard pattern and locate internal chessboard corners
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static bool FindChessboardCorners(
IInputArray image,
Size patternSize,
IOutputArray corners,
CalibCbType flags = CalibCbType.AdaptiveThresh|CalibCbType.NormalizeImage
)
Public Shared Function FindChessboardCorners (
image As IInputArray,
patternSize As Size,
corners As IOutputArray,
Optional flags As CalibCbType = CalibCbType.AdaptiveThresh Or CalibCbType.NormalizeImage
) As Boolean
public:
static bool FindChessboardCorners(
IInputArray^ image,
Size patternSize,
IOutputArray^ corners,
CalibCbType flags = CalibCbType::AdaptiveThresh|CalibCbType::NormalizeImage
)
static member FindChessboardCorners :
image : IInputArray *
patternSize : Size *
corners : IOutputArray *
?flags : CalibCbType
(* Defaults:
let _flags = defaultArg flags CalibCbType.AdaptiveThresh|CalibCbType.NormalizeImage
*)
-> bool
Parameters
- image
- Type: Emgu.CVIInputArray
Source chessboard view; it must be 8-bit grayscale or color image - patternSize
- Type: System.DrawingSize
The number of inner corners per chessboard row and column - corners
- Type: Emgu.CVIOutputArray
Pointer to the output array of corners(PointF) detected - flags (Optional)
- Type: Emgu.CV.CvEnumCalibCbType
Various operation flags
Return Value
Type:
BooleanTrue if all the corners have been found and they have been 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 0
RemarksThe coordinates detected are approximate, and to determine their position more accurately, the user may use the function cvFindCornerSubPix
See Also