F_VN_DetectPatternPoints

F_VN_DetectPatternPoints 1:

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

F_VN_DetectPatternPoints 2: Inputs

Name

Type

Description

ipSrcImage

ITcVnImage

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

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

F_VN_DetectPatternPoints 3: In/Outputs

Name

Type

Description

stBlobDetectionParams

TcVnParamsBlobDetection

Parameters to detect and filter contours.

F_VN_DetectPatternPoints 4: Return value

HRESULT

Required License

TC3 Vision Metrology 2D

System Requirements