🟧 Hough Line Detection
Function Description
This operator uses the Hough transform algorithm to detect and extract line segments in the input grayscale image.
Input Output
Input |
Image: Input single-channel grayscale image. The clearer the straight edges in the image, the better the detection effect. |
Output |
Detection Results: Output a list of detection instances. |
Parameter Description
Threshold
Parameter Description |
Threshold for accumulator count values, which can be understood as the "minimum number of points needed to form a straight line". Only when the count value of multiple points intersecting at one point exceeds this threshold is a straight line considered to exist in image space. |
Parameter Adjustment |
|
Parameter Range |
[1, 1000], Default value: 500 |
Line Width
Parameter Description |
Set the width of lines representing detected straight lines in output results. |
Parameter Adjustment |
This parameter does not affect the detection process, only used to control line width settings in output results and visualization effects. |
Parameter Range |
[1, 200], Default value: 1 |
Detection Method
Parameter Description |
Select the specific algorithm for Hough line detection:
|
Parameter Adjustment |
Standard Hough Transform
Probabilistic Hough Transform
|
Parameter Range |
Min/Max Angle: [0,360], Default value: 0/180, Unit: ° Minimum Line Length: [0,1000], Default value: 180, Unit: pixels Maximum Line Gap: [0,1000], Default value: 180, Unit: pixels |