RegionsMSER

Detects regions using the MSER method.

Syntax

Definition:

HRESULT RegionsMSER(
    HRESULT          hrPrev,
    ITcVnImage*      ipSrcImage,
    ITcVnContainer*& ipRegions,
    ITcVnContainer*& ipBoundingBoxes,
    TcVnParamsMSER&  stParams = {5, 60, 14400, 0.25, 0.2, 200, 1.01, 0.003, 5}
)

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

ipRegions

ITcVnContainer*&

 

Returns a container which is filled with the region points (ContainerType_Vector_Vector_TcVnPoint2_DINT; Non-zero interface pointers are reused.)

ipBoundingBoxes

ITcVnContainer*&

 

Returns a container which is filled with the region bounding boxes (ContainerType_Vector_TcVnRectangle_DINT; Non-zero interface pointers are reused.)

stParams

TcVnParamsMSER&

{5, 60, 14400, 0.25, 0.2, 200, 1.01, 0.003, 5}

Additional expert parameters

RegionsMSER 1: Return value

HRESULT

Required License

TC3 Vision Matching

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4024.59 or later

PC or CX (x64) with min. PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision