http://www.emgu.com
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Implements a particular case of application of line iterators. The function reads all the image points lying on the line between pt1 and pt2, including the ending points, and stores them into the buffer
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.3.0.1416 (2.3.0.1416)
Syntax
C# |
---|
public static int cvSampleLine( IntPtr image, Point pt1, Point pt2, IntPtr buffer, CONNECTIVITY connectivity ) |
Visual Basic |
---|
Public Shared Function cvSampleLine ( _ image As IntPtr, _ pt1 As Point, _ pt2 As Point, _ buffer As IntPtr, _ connectivity As CONNECTIVITY _ ) As Integer |
Visual C++ |
---|
public: static int cvSampleLine( IntPtr image, Point pt1, Point pt2, IntPtr buffer, CONNECTIVITY connectivity ) |
Parameters
- image
- Type: System..::..IntPtr
Image to sample the line from
- pt1
- Type: System.Drawing..::..Point
Starting the line point.
- pt2
- Type: System.Drawing..::..Point
Ending the line point
- buffer
- Type: System..::..IntPtr
Buffer to store the line points; must have enough size to store max( |pt2.x-pt1.x|+1, |pt2.y-pt1.y|+1 ) points in case of 8-connected line and |pt2.x-pt1.x|+|pt2.y-pt1.y|+1 in case of 4-connected line
- connectivity
- Type: Emgu.CV.CvEnum..::..CONNECTIVITY
The line connectivity, 4 or 8
Return Value
[Missing <returns> documentation for "M:Emgu.CV.CvInvoke.cvSampleLine(System.IntPtr,System.Drawing.Point,System.Drawing.Point,System.IntPtr,Emgu.CV.CvEnum.CONNECTIVITY)"]