FindRois

Extracts rectangular regions of interest (ROIs) from an image by partitioning it into tiles using the selected method and parameters.

Syntax

Definition:

HRESULT FindRois(
    HRESULT             hrPrev,
    ITcVnImage*         ipSrcImage,
    ITcVnContainer*&    ipRois,
    ETcVnFindRoisMethod eFindRoisMethod,
    TcVnParamsFindRois& stParams
)

Parameters

Name

Type

Description

hrPrev

HRESULT

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

ipSrcImage

ITcVnImage*

Source image (1 channel, non-negative values).

ipRois

ITcVnContainer*&

Returns the ROIs (ContainerType_Vector_TcVnRectangle_DINT; Non-zero interface pointers are reused.)

eFindRoisMethod

ETcVnFindRoisMethod

Method to create ROIs

stParams

TcVnParamsFindRois&

Parameters for extracting ROIs

 Return value

HRESULT

Required License

TC3 Vision Base

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4026 or later

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

Tc3_Vision