Click or drag to resize

LineIteratorSampleLine Method

http://www.emgu.com
Copy the pixel data in the line to a new Mat that is of the same type.

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static Mat SampleLine(
	Mat img,
	Point p1,
	Point p2,
	int connectivity = 8,
	bool leftToRight = false
)

Parameters

img
Type: Emgu.CVMat
The image to sample from
p1
Type: System.DrawingPoint
The first point
p2
Type: System.DrawingPoint
The second point
connectivity (Optional)
Type: SystemInt32
8-connected or 4-connected
leftToRight (Optional)
Type: SystemBoolean
If true, then the iteration is always done from the left-most point to the right most, not to depend on the ordering of pt1 and pt2 parameters

Return Value

Type: Mat
A new single column Mat of the same data type. The number of rows equals to the number of points on the sample line.
See Also