Emgu.CV.CvInvoke.cvDrawChessboardCorners C# (CSharp) Метод

cvDrawChessboardCorners() приватный Метод

private cvDrawChessboardCorners ( IntPtr image, Size patternSize, IntPtr corners, int count, int patternWasFound ) : void
image IntPtr
patternSize Size
corners IntPtr
count int
patternWasFound int
Результат void
        public static extern void cvDrawChessboardCorners(
         IntPtr image,
         Size patternSize,
         IntPtr corners,
         int count,
         int patternWasFound);

Same methods

CvInvoke::cvDrawChessboardCorners ( IntPtr image, Size patternSize, [ corners, int count, int patternWasFound ) : void

Usage Example

Пример #1
0
 /// <summary>
 /// Draws the individual chessboard corners detected (as red circles) in case if the board was not found (patternWasFound== false) or the colored corners connected with lines when the board was found (patternWasFound == true).
 /// </summary>
 /// <param name="image">The destination image</param>
 /// <param name="patternSize">The number of inner corners per chessboard row and column</param>
 /// <param name="corners">The array of corners detected. Can be null if no corners were found</param>
 public static void DrawChessboardCorners(
     Image <Gray, Byte> image,
     Size patternSize,
     PointF[] corners)
 {
     CvInvoke.cvDrawChessboardCorners(
         image.Ptr,
         patternSize,
         corners,
         corners.Length,
         corners != null ? 1 : 0);
 }
CvInvoke