http://www.emgu.com
Apply Canny Edge Detector follows by Probabilistic Hough transform to find line segments in the image

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

Syntax

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

Parameters

cannyThreshold
Type: System..::..Double
The threshhold to find initial segments of strong edges
cannyThresholdLinking
Type: System..::..Double
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