F_VN_FilterGoodMatches
Filter the descriptor matches and return only good ones.
Syntax
Definition:
FUNCTION F_VN_FilterGoodMatches : HRESULT
VAR_INPUT
ipMatches : ITcVnContainer;
ipGoodMatches : Reference To ITcVnContainer;
fMaxDist : REAL;
fMaxKnnRatio : REAL;
hrPrev : HRESULT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
ipMatches |
Container with descriptor matches (ContainerType_Vector_TcVnDMatch or ContainerType_Vector_Vector_TcVnDMatch) | |
ipGoodMatches |
Reference To ITcVnContainer |
Returns a container with good matches (ContainerType_Vector_TcVnDMatch) |
fMaxDist |
REAL |
Maximum allowed descriptor distance (-1 disables this filter criterion) |
fMaxKnnRatio |
REAL |
Maximum allowed distance ratio between first and second best match ([0..1], used for knn match results only, -1 disables this filter criterion) |
hrPrev |
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) |
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 |