Click or drag to resize

Cv2HoughLinesP Method

Finds lines segments in a binary image using probabilistic Hough transform.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static LineSegmentPoint[] HoughLinesP(
	InputArray image,
	double rho,
	double theta,
	int threshold,
	double minLineLength = 0,
	double maxLineGap = 0
)

Parameters

image
Type: OpenCvSharpInputArray

[Missing <param name="image"/> documentation for "M:OpenCvSharp.Cv2.HoughLinesP(OpenCvSharp.InputArray,System.Double,System.Double,System.Int32,System.Double,System.Double)"]

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: LineSegmentPoint
The output lines. Each line is represented by a 4-element vector (x1, y1, x2, y2)
See Also