OpenCvSharp.Cv2.DrawChessboardCorners C# (CSharp) Method

DrawChessboardCorners() public static method

Renders the detected chessboard corners.
public static DrawChessboardCorners ( OpenCvSharp.InputOutputArray image, Size patternSize, IEnumerable corners, bool patternWasFound ) : void
image OpenCvSharp.InputOutputArray Destination image. It must be an 8-bit color image.
patternSize Size Number of inner corners per a chessboard row and column (patternSize = cv::Size(points_per_row,points_per_column)).
corners IEnumerable Array of detected corners, the output of findChessboardCorners.
patternWasFound bool Parameter indicating whether the complete board was found or not. The return value of findChessboardCorners() should be passed here.
return void
        public static void DrawChessboardCorners(InputOutputArray image, Size patternSize,
            IEnumerable<Point2f> corners, bool patternWasFound)
        {
            if (image == null)
                throw new ArgumentNullException(nameof(image));
            if (corners == null)
                throw new ArgumentNullException(nameof(corners));
            image.ThrowIfNotReady();

            Point2f[] cornersArray = EnumerableEx.ToArray(corners);
            NativeMethods.calib3d_drawChessboardCorners_array(
                image.CvPtr, patternSize, cornersArray, cornersArray.Length,
                patternWasFound ? 1 : 0);
            image.Fix();
        }
        #endregion

Same methods

Cv2::DrawChessboardCorners ( OpenCvSharp.InputOutputArray image, Size patternSize, InputArray corners, bool patternWasFound ) : void
Cv2