TrainImageColor

TrainImageColor 1:

Train the color of the provided image.

Syntax

Definition:

METHOD TrainImageColor : HRESULT
VAR_INPUT
    ipSrcImage       : ITcVnImage;
    nDifferentColors : UDINT;
    ipMask           : ITcVnImage;
    nSkipPixels      : UDINT;
END_VAR

TrainImageColor 2: Inputs

Name

Type

Description

ipSrcImage

ITcVnImage

Source image.

nDifferentColors

UDINT

Number of different colors to differentiate.

ipMask

ITcVnImage

Optional image mask.

nSkipPixels

UDINT

Number of pixels to skip between each evaluated color sample (to achieve a better performance). 0 takes every pixel into account and tends to be more accurate.

TrainImageColor 3: Return value

HRESULT