MatHoughLinesP Method OpenCvSharp Class Library
Finds lines segments in a binary image using probabilistic Hough transform.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public CvLineSegmentPoint[] HoughLinesP(
	double rho,
	double theta,
	int threshold,
	double minLineLength = 0,
	double maxLineGap = 0
)

Parameters

rho
Type: SystemDouble
Distance resolution of the accumulator in pixels
theta
Type: SystemDouble
Angle resolution of the accumulator in radians
threshold
Type: SystemInt32
The accumulator threshold parameter. Only those lines are returned that get enough votes ( > threshold )
minLineLength (Optional)
Type: SystemDouble
The minimum line length. Line segments shorter than that will be rejected. [By default this is 0]
maxLineGap (Optional)
Type: SystemDouble
The maximum allowed gap between points on the same line to link them. [By default this is 0]

Return Value

Type: CvLineSegmentPoint
The output lines. Each line is represented by a 4-element vector (x1, y1, x2, y2)
See Also

Reference