First apply Canny Edge Detector on the current image, then apply Hough transform to find line segments

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

Syntax

C#
public LineSegment2D[][] HoughLines(
	TColor cannyThreshold,
	TColor cannyThresholdLinking,
	double rhoResolution,
	double thetaResolution,
	int threshold,
	double minLineWidth,
	double gapBetweenLines
)
Visual Basic (Declaration)
Public Function HoughLines ( _
	cannyThreshold As TColor, _
	cannyThresholdLinking As TColor, _
	rhoResolution As Double, _
	thetaResolution As Double, _
	threshold As Integer, _
	minLineWidth As Double, _
	gapBetweenLines As Double _
) As LineSegment2D()()
Visual C++
public:
array<array<LineSegment2D>^>^ HoughLines(
	TColor cannyThreshold, 
	TColor cannyThresholdLinking, 
	double rhoResolution, 
	double thetaResolution, 
	int threshold, 
	double minLineWidth, 
	double gapBetweenLines
)

Parameters

cannyThreshold
Type: TColor
The threshhold to find initial segments of strong edges
cannyThresholdLinking
Type: TColor
The threshold used for edge Linking
rhoResolution
Type: System..::.Double
Distance resolution in pixel-related units.
thetaResolution
Type: System..::.Double
Angle resolution measured in radians
threshold
Type: System..::.Int32
A line is returned by the function if the corresponding accumulator value is greater than threshold
minLineWidth
Type: System..::.Double
Minimum width of a line
gapBetweenLines
Type: System..::.Double
Minimum gap between lines

Return Value

The line segments detected for each of the channels

See Also