Hi all,
I'm writing in LabWindows/CVI function for searching color pattern over grabed image. Unfortunately I can't get very good results, because most uninterested part of template for evaluation is black or white. I want to eliminate to score those 2 colors by imaqLearnColorPattern function from NI Vision.
There is variable ColorIgnoreMode ignoreMode; IMAQ_IGNORE_BLACK_AND_WHITE but its a part of LearnColorPatternOptions_struct and there is ColorInformation_struct where I don't understand :
double* info; //An array of color information that represents the color spectrum analysis of a region of an image in a compact form.
What is color spectrum analysis of region in compact form ???
Can somebody help me what I have to pass to info ?
Thank you !!!!
Radovan Demko
structs used:
typedef struct ColorInformation_struct {
int infoCount;
int saturation;
double* info; //An array of color information that represents the color spectrum analysis of a region of an image in a compact form.
} ColorInformation;
typedef struct LearnColorPatternOptions_struct {
LearningMode learnMode;
ImageFeatureMode featureMode;
int threshold;
hue values.
ColorIgnoreMode ignoreMode;
ColorInformation* colorsToIgnore; //An array of ColorInformation structures providing a set of colors to exclude from the color features of the template image.
int numColorsToIgnore;
} LearnColorPatternOptions;