Back to Aurora Vision Studio website

You are here: Start » Filter Reference » OpenCV » Feature Detection » cvHoughLinesP

cvHoughLinesP


Module: OpenCV

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

Name Type Range Description
Input value inImage Image UINT8, single-channel input image.
Input value inRho Real 0.1 - Distance resolution of the accumulator in pixels.
Input value inTheta Real 0.1 - Angle resolution of the accumulator in degrees.
Input value inThreshold Integer 1 - Accumulator threshold parameter.
Input value inMinLineLength Real Minimum line length. Line segments shorter than that are rejected.
Input value inMaxLineGap Real Maximum allowed gap between points on the same line to link them.
Output value outLines Segment2DArray Output array of segments.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input image must be UINT8 single-channel in cvHoughLinesP.

Complexity Level

This filter is available on Basic Complexity Level.