Go to the documentation of this file.
26 #ifndef __CMVISION_H__
27 #define __CMVISION_H__
67 #define CMV_COLOR_LEVELS 256
68 #define CMV_MAX_COLORS 32
71 #define CMV_DEFAULT_WIDTH 320
72 #define CMV_DEFAULT_HEIGHT 240
75 #define CMV_MAX_RUNS (CMV_DEFAULT_WIDTH * CMV_DEFAULT_HEIGHT) / 4
76 #define CMV_MAX_REGIONS CMV_MAX_RUNS / 4
77 #define CMV_MIN_AREA 20
79 #define CMV_NONE ((unsigned)(-1))
100 #define CMV_THRESHOLD 0x01
101 #define CMV_COLOR_AVERAGES 0x02
102 #define CMV_DUAL_THRESHOLD 0x04
103 #define CMV_DENSITY_MERGE 0x08
105 #define CMV_VALID_OPTIONS 0x0F
194 bool enable(
unsigned opt);
200 int &a_low,
int &a_high,
201 int &b_low,
int &b_high);
203 int a_low,
int a_high,
204 int b_low,
int b_high);
210 {
return(
colors[color].name);}
212 {
return(
colors[color].color);}
void classifyFrame(image_pixel *restrict img, unsigned *restrict map)
bool saveOptions(char *filename)
void getColorInfo(int color, color_info &info)
bool initialize(int nwidth, int nheight)
bool setThreshold(int color, int a_low, int a_high, int b_low, int b_high)
void connectComponents(rle *restrict map, int num)
unsigned a_class[CMV_COLOR_LEVELS]
bool getThreshold(int color, int &a_low, int &a_high, int &b_low, int &b_high)
bool enable(unsigned opt)
rgb getColorVisual(int color)
region region_table[CMV_MAX_REGIONS]
void calcAverageColors(region *restrict reg, int num_reg, image_pixel *restrict img, rle *restrict rmap, int num_runs)
int region_count[CMV_MAX_COLORS]
char * getColorName(int color)
bool loadOptions(const char *filename)
int separateRegions(region *restrict reg, int num)
region * region_list[CMV_MAX_COLORS]
int encodeRuns(rle *restrict out, unsigned *restrict map)
void setColorInfo(int color, color_info &info)
region * sortRegionListByArea(region *restrict list, int passes)
void sortRegions(int max_area)
int extractRegions(region *restrict reg, rle *restrict rmap, int num)
color_info colors[CMV_MAX_COLORS]
color_info * getColorInfo(int color)
bool processFrame(image_pixel *image)
region * getRegions(int color_id)
bool disable(unsigned opt)
unsigned b_class[CMV_COLOR_LEVELS]
int numRegions(int color_id)
bool testClassify(rgb *restrict out, image_pixel *restrict image)
cmvision
Author(s): Nate Koenig, Nate Koenig
autogenerated on Wed Mar 2 2022 00:03:25