Sample the pixel values on the specific line segment

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public TDepth[,] Sample(
	LineSegment2D line,
	CONNECTIVITY type
)
Public Function Sample ( _
	line As LineSegment2D, _
	type As CONNECTIVITY _
) As TDepth(,)
public:
array<TDepth,2>^ Sample(
	LineSegment2D line, 
	CONNECTIVITY type
)

Parameters

line
LineSegment2D
The line to obtain samples
type
CONNECTIVITY
The sampling type

Return Value

The values on the line, the first dimension is the index of the point, the second dimension is the index of color channel

See Also