http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Attempts to determine whether the input image is a view of the chessboard pattern and locate internal chessboard corners
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static int cvFindChessboardCorners( IntPtr image, Size patternSize, IntPtr corners, ref int cornerCount, CALIB_CB_TYPE flags ) |
Visual Basic |
---|
Public Shared Function cvFindChessboardCorners ( _ image As IntPtr, _ patternSize As Size, _ corners As IntPtr, _ ByRef cornerCount As Integer, _ flags As CALIB_CB_TYPE _ ) As Integer |
Visual C++ |
---|
public: static int cvFindChessboardCorners( IntPtr image, Size patternSize, IntPtr corners, int% cornerCount, CALIB_CB_TYPE flags ) |
Parameters
- image
- Type: System..::..IntPtr
Source chessboard view; it must be 8-bit grayscale or color image
- patternSize
- Type: System.Drawing..::..Size
The number of inner corners per chessboard row and column
- corners
- Type: System..::..IntPtr
Pointer to the output array of corners(PointF) detected
- cornerCount
- Type: System..::..Int32%
The output corner counter. If it is not IntPtr.Zero, the function stores there the number of corners found
- flags
- Type: Emgu.CV.CvEnum..::..CALIB_CB_TYPE
Various operation flags
Return Value
Non-zero value 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
Remarks
The coordinates detected are approximate, and to determine their position more accurately, the user may use the function cvFindCornerSubPix