GeneralizedHoughBallard

This FB provides the Generalized Hough Ballard functionality. First, set the parameters via the corresponding methods (optional, defaults are used otherwise). Then, set the template (required). Afterwards, the Detect method can be executed.

Syntax

Constructor:

GeneralizedHoughBallard()

GeneralizedHoughBallard 1: Methods

Name

Description

Detect

Detect the template in an image (SetTemplate must have been called before).

SetCannyThreshold

Sets the canny edge detection thresholds.

SetInvAccuRatio

Sets the inverted ratio of the accumulator size in relation to the source image's size (e.g. a value of 2 means that the size is halved in both directions.)

SetLevels

Sets the number of R-table levels.

SetMinDist

Sets the minimum distance between the centers of different objects.

SetTemplate

Sets the template image to search for in the Detect method.

SetVotesThreshold

Sets the accumulator threshold, i.e. the number of votes required to detect a match (too small values lead to false detections).

Required License

TC3 Vision Matching

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1. 4024.44 or later

PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision