TrainImageColor

Train the color of the provided image.

Syntax

Definition:

HRESULT TrainImageColor(
    ITcVnImage* ipSrcImage,
    ULONG       nDifferentColors,
    ITcVnImage* ipMask,
    ULONG       nSkipPixels
)

Parameters

Name

Type

Description

ipSrcImage

ITcVnImage*

Source image.

nDifferentColors

ULONG

Number of different colors to differentiate.

ipMask

ITcVnImage*

Optional image mask.

nSkipPixels

ULONG

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 1: Return value

HRESULT