Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

IMAQ_IGNORE_BLACK_AND_WHITE

$
0
0

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;


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>