F_VN_DrawMatches
Draws the keypoints and matches for visualization purpose.
Can use available TwinCAT Job Tasks for executing parallel code regions.
Syntax
Definition:
FUNCTION F_VN_DrawMatches : HRESULT
VAR_INPUT
ipSrcImage1 : ITcVnImage;
ipKeyPoints1 : ITcVnContainer;
ipSrcImage2 : ITcVnImage;
ipKeyPoints2 : ITcVnContainer;
ipMatches1To2 : ITcVnContainer;
ipDestImage : Reference To ITcVnImage;
hrPrev : HRESULT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
ipSrcImage1 |
Source image 1 (elements of type USINT) | |
ipKeyPoints1 |
Container with the keypoints 1 (ContainerType_Vector_TcVnKeyPoint) | |
ipSrcImage2 |
Source image 2 (elements of type USINT, must have the same number of channels as ipSrcImage1) | |
ipKeyPoints2 |
Container with the keypoints 2 (ContainerType_Vector_TcVnKeyPoint) | |
ipMatches1To2 |
Container with the descriptor matches (ContainerType_Vector_TcVnDMatch) | |
ipDestImage |
Reference To ITcVnImage |
Destination image (An appropriate color image will be created if required.) |
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 |