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.10.1935 (2.4.10.1935)

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
)
F#
member HoughLines : 
        cannyThreshold : float * 
        cannyThresholdLinking : float * 
        rhoResolution : float * 
        thetaResolution : float * 
        threshold : int * 
        minLineWidth : float * 
        gapBetweenLines : float -> LineSegment2D[][] 

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

Type: array<array<LineSegment2D>[]()[][]>[]()[][]
The line segments detected for each of the channels

See Also