FilterGoodMatches

Filter the descriptor matches and return only good ones.

Syntax

Definition:

HRESULT FilterGoodMatches(
    HRESULT          hrPrev,
    ITcVnContainer*  ipMatches,
    ITcVnContainer*& ipGoodMatches,
    float            fMaxDist,
    float            fMaxKnnRatio
)

Parameters

Name

Type

Description

hrPrev

HRESULT

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

ipMatches

ITcVnContainer*

Container with descriptor matches (ContainerType_Vector_TcVnDMatch or ContainerType_Vector_Vector_TcVnDMatch)

ipGoodMatches

ITcVnContainer*&

Returns a container with good matches (ContainerType_Vector_TcVnDMatch)

fMaxDist

float

Maximum allowed descriptor distance (-1 disables this filter criterion)

fMaxKnnRatio

float

Maximum allowed distance ratio between first and second best match ([0..1], used for knn match results only, -1 disables this filter criterion)

FilterGoodMatches 1: Return value

HRESULT

Required License

TC3 Vision Matching

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4024.54 or later

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

Tc3_Vision