KeyPointsSB

Detects keypoints using a Simple Blob method - several iterations apply different thresholds to source image - connected components (blobs) are detected - the center and radius of the blobs are returned as keypoints
Can use available TwinCAT Job Tasks for executing parallel code regions.

Syntax

Definition:

HRESULT KeyPointsSB(
    HRESULT          hrPrev,
    ITcVnImage*      ipSrcImage,
    ITcVnContainer*& ipKeyPoints,
    ITcVnImage*      ipMask = nullptr,
    TcVnParamsSB&    stParams = {true, false, false, false, false, 25, 15000, 0, 1, 255, 0, 1, 0, 1, 5, 2, 30, 225, 10}
)

Parameters

Name

Type

Default

Description

hrPrev

HRESULT

 

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

ipSrcImage

ITcVnImage*

 

Source image

ipKeyPoints

ITcVnContainer*&

 

Returns a container which is filled with the keypoints (ContainerType_Vector_TcVnKeyPoint; Non-zero interface pointers are reused.)

ipMask

ITcVnImage*

nullptr

Mask to specify, where to look for keypoints (optional, set to 0 if not required)

stParams

TcVnParamsSB&

{true, false, false, false, false, 25, 15000, 0, 1, 255, 0, 1, 0, 1, 5, 2, 30, 225, 10}

Several parameters to filter the detected blobs

KeyPointsSB 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