OpenCvSharp.NativeMethods.imgproc_LineSegmentDetector_drawSegments C# (CSharp) Method

imgproc_LineSegmentDetector_drawSegments() private method

private imgproc_LineSegmentDetector_drawSegments ( IntPtr obj, IntPtr image, IntPtr lines ) : void
obj IntPtr
image IntPtr
lines IntPtr
return void
        public static extern void imgproc_LineSegmentDetector_drawSegments(IntPtr obj, IntPtr image, IntPtr lines);

Usage Example

コード例 #1
0
        /// <summary>
        /// Draws the line segments on a given image.
        /// </summary>
        /// <param name="image">The image, where the liens will be drawn. 
        /// Should be bigger or equal to the image, where the lines were found.</param>
        /// <param name="lines">A vector of the lines that needed to be drawn.</param>
        public virtual void DrawSegments(InputOutputArray image, InputArray lines)
        {
            if (image == null)
                throw new ArgumentNullException("image");
            if (lines == null)
                throw new ArgumentNullException("lines");
            image.ThrowIfNotReady();
            lines.ThrowIfDisposed();

            NativeMethods.imgproc_LineSegmentDetector_drawSegments(ptr, image.CvPtr, lines.CvPtr);

            image.Fix();
            GC.KeepAlive(lines);
        }
NativeMethods