CvArrSampleLine Method OpenCvSharp Class Library
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:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public int SampleLine(
	CvPoint pt1,
	CvPoint pt2,
	out CvPoint[] buffer,
	int connectivity
)

Parameters

pt1
Type: OpenCvSharpCvPoint
Starting the line point.
pt2
Type: OpenCvSharpCvPoint
Ending the line point.
buffer
Type: OpenCvSharpCvPoint
Buffer to store the line points.
connectivity
Type: SystemInt32
The line connectivity, 4 or 8.

Return Value

Type: Int32

[Missing <returns> documentation for "M:OpenCvSharp.CvArr.SampleLine(OpenCvSharp.CvPoint,OpenCvSharp.CvPoint,OpenCvSharp.CvPoint[]@,System.Int32)"]

See Also

Reference