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 |
Source image. | |
|
nDifferentColors |
ULONG |
Number of different colors to differentiate. |
|
ipMask |
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. |
Return value