Clahe

Apply Constrast Limited Adaptive Histogram Equalization. This applies local histogram equalization to individual tiles.
Can use available TwinCAT Job Tasks for executing parallel code regions.

Syntax

Definition:

HRESULT Clahe(
    HRESULT      hrPrev,
    ITcVnImage*  ipSrcImage,
    ITcVnImage*& ipDestImage,
    double       fClipLimit = 40,
    ULONG        nTilesX = 8,
    ULONG        nTilesY = 8
)

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

ipDestImage

ITcVnImage*&

 

Returns the resulting image (An appropriate image will be created if required.)

fClipLimit

double

40

Threshold for contrast limit (set to <= 0 to disable clipping)

nTilesX

ULONG

8

Number of tiles in x direction

nTilesY

ULONG

8

Number of tiles in y direction

Clahe 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