CvInvokeHoughLinesP Method (IInputArray, Double, Double, Int32, Double, Double) |
http://www.emgu.com
Finds line segments in a binary image using the probabilistic Hough transform.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic static LineSegment2D[] HoughLinesP(
IInputArray image,
double rho,
double theta,
int threshold,
double minLineLength = 0,
double maxGap = 0
)
Public Shared Function HoughLinesP (
image As IInputArray,
rho As Double,
theta As Double,
threshold As Integer,
Optional minLineLength As Double = 0,
Optional maxGap As Double = 0
) As LineSegment2D()
public:
static array<LineSegment2D>^ HoughLinesP(
IInputArray^ image,
double rho,
double theta,
int threshold,
double minLineLength = 0,
double maxGap = 0
)
static member HoughLinesP :
image : IInputArray *
rho : float *
theta : float *
threshold : int *
?minLineLength : float *
?maxGap : float
(* Defaults:
let _minLineLength = defaultArg minLineLength 0
let _maxGap = defaultArg maxGap 0
*)
-> LineSegment2D[]
Parameters
- image
- Type: Emgu.CVIInputArray
8-bit, single-channel binary source image. The image may be modified by the function. - rho
- Type: SystemDouble
Distance resolution of the accumulator in pixels - theta
- Type: SystemDouble
Angle resolution of the accumulator in radians - threshold
- Type: SystemInt32
Accumulator threshold parameter. Only those lines are returned that get enough votes - minLineLength (Optional)
- Type: SystemDouble
Minimum line length. Line segments shorter than that are rejected. - maxGap (Optional)
- Type: SystemDouble
Maximum allowed gap between points on the same line to link them.
Return Value
Type:
LineSegment2DThe found line segments
See Also