F_VN_DetectPatternPoints
Detects calibration pattern points (circles) within the provided image.
Can use available TwinCAT Job Tasks for executing parallel code regions.
Syntax
Definition:
FUNCTION F_VN_DetectPatternPoints : HRESULT
VAR_INPUT
ipSrcImage : ITcVnImage;
ipPatternPoints : Reference To ITcVnContainer;
END_VAR
VAR_IN_OUT
stBlobDetectionParams : TcVnParamsBlobDetection;
END_VAR
VAR_INPUT
nNumberOfPoints : UDINT;
hrPrev : HRESULT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
ipSrcImage |
Source image (USINT, 1 channel) | |
ipPatternPoints |
Reference To ITcVnContainer |
Returns the pattern point positions (ContainerType_Vector_TcVnPoint2_REAL; Non-zero interface pointers are reused.) |
nNumberOfPoints |
UDINT |
Expected number of pattern points |
hrPrev |
HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.) |
In/Outputs
Name |
Type |
Description |
---|---|---|
stBlobDetectionParams |
Parameters to detect and filter contours. |
Required License
TC3 Vision Metrology 2D
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 |