CvInvokecvSampleLine Method |
http://www.emgu.com
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.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static int cvSampleLine(
IntPtr image,
ref Point pt1,
ref Point pt2,
IntPtr buffer,
Connectivity connectivity
)
Public Shared Function cvSampleLine (
image As IntPtr,
ByRef pt1 As Point,
ByRef pt2 As Point,
buffer As IntPtr,
connectivity As Connectivity
) As Integer
public:
static int cvSampleLine(
IntPtr image,
Point% pt1,
Point% pt2,
IntPtr buffer,
Connectivity connectivity
)
static member cvSampleLine :
image : IntPtr *
pt1 : Point byref *
pt2 : Point byref *
buffer : IntPtr *
connectivity : Connectivity -> int
Parameters
- image
- Type: SystemIntPtr
Image to sample the line from - pt1
- Type: System.DrawingPoint
Starting the line point. - pt2
- Type: System.DrawingPoint
Ending the line point - buffer
- Type: SystemIntPtr
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.CvEnumConnectivity
The line connectivity, 4 or 8
Return Value
Type:
Int32[Missing <returns> documentation for "M:Emgu.CV.CvInvoke.cvSampleLine(System.IntPtr,System.Drawing.Point@,System.Drawing.Point@,System.IntPtr,Emgu.CV.CvEnum.Connectivity)"]
See Also