ApplyColorMap

Apply a color map to a gray-level image.

Syntax

Definition:

HRESULT ApplyColorMap(
    HRESULT         hrPrev,
    ITcVnImage*     ipSrcImage,
    ITcVnImage*&    ipDestImage,
    ITcVnContainer* ipColorMap
)

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 (TCVN_ET_USINT or TCVN_ET_UINT, 1 channel)

ipDestImage

ITcVnImage*&

Returns the colored image (TCVN_ET_USINT, 3 channel. An appropriate image will be created if required.)

ipColorMap

ITcVnContainer*

Color map to be applied to ipSrcImage (ContainerType_Vector_TcVnVector3_REAL with 256 or 65536 elements, dependent on ipSrcImage type). Can be either custom or created with F_VN_GenerateColorMap.

ApplyColorMap 1: Return value

HRESULT

Required License

TC3 Vision Base

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