TrainImageColor
Train the color of the provided image.
Syntax
Definition:
METHOD TrainImageColor : HRESULT
VAR_INPUT
ipSrcImage : ITcVnImage;
nDifferentColors : UDINT;
ipMask : ITcVnImage;
nSkipPixels : UDINT;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
ipSrcImage |
Source image. | |
nDifferentColors |
UDINT |
Number of different colors to differentiate. |
ipMask |
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. |