HoughLines

The HoughLines block detects straight lines.

    HoughLines

Library

ComputerVision/Images/Detection

Description

The HoughLines block works in conjunction with the CannysEdge block to detect straight lines in the specified image based on minimum line intersections, minimum line lengths, and maximum line gaps.

To display the detected lines, wire the Hough Lines block to a Draw Lines block. Similarly, to count detected lines, wire the HoughLines block to a CountObjects block.

Parameters

HoughLines_0

NameLabelDescriptionData TypeValid Values

useInput

Use inputs

Use inputs to define threshold values.

Number

0
1

distResolution

Threshold

Specifies the minimum line intersections to be detected.

Scalar

angleResolution

Min Line Length

Specifies the minimum line length to be detected.

Scalar

voteThreshold

Min Line Gap

Specifies the maximum line gap to be detected.

Scalar

externalActivation

External activation

This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

src(Binary)

explicit

input

1

lines

explicit

output

1

Port 3

explicit

input

useInput

Port 4

activation

input

externalActivation