HoughCircles

The HoughCircles block detects circles in the specified image.

    HoughCircles

Library

ComputerVision/Images/Detection

Description

Use the HoughCircles block in conjunction with DrawCircles to highlight the detected circles or the Count Objects to count detected circles.

Parameters

HoughCircles_0

NameLabelDescriptionData TypeValid Values

useInput

Use inputs

Use inputs to define threshold values.

Number

0
1

minDist

Min Distance

Specifies the minimum pixel distance between the center of detected circles.

Scalar

upperThreshold

Upper Threshold

Specifies the upper threshold for the Canny Edge detector.

Scalar

centerDetectionTreshold

Center Detection Threshold

Specifies the threshold for the circle centers.

The smaller it is, the more false circles may be detected. Circles, corresponding to the larger accumulator values, will be returned first.

Scalar

minRadius

Min Radius

Specifies the minimum pixel radius for the circles to be detected.

Scalar

maxRadius

Max Radius

Specifies the maximum pixel radius for the circles to be detected.

Scalar

im2AcR

Image to Accumulator Size Ratio

Specifies the inverse ratio of the accumulator resolution to the image resolution.

If the ratio is 1, the accumulator has the same resolution as the input image. If the ratio is 2, the accumulator has half the width and height. The lower the ratio, the more accurate the circle detection is; however, the more accurate the detection, the more likely it is to miss slightly degenerated circles or detect multiple circles instead of single circle with a large edge.

Scalar

1
2
3
4
5
6
7
8
9
10

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(Grayscale)

explicit

input

1

circles

explicit

output

1

Port 3

explicit

input

2*useInput

Port 4

activation

input

externalActivation