|
CMVision Class Reference#include <cmvision.h>
List of all members.
|
Public Member Functions |
| CMVision () |
| ~CMVision () |
bool | initialize (int nwidth, int nheight) |
bool | loadOptions (char *filename) |
bool | saveOptions (char *filename) |
bool | enable (unsigned opt) |
bool | disable (unsigned opt) |
void | close () |
bool | testClassify (rgb *restrict out, image_pixel *restrict image) |
bool | getThreshold (int color, int &y_low, int &y_high, int &u_low, int &u_high, int &v_low, int &v_high) |
bool | setThreshold (int color, int y_low, int y_high, int u_low, int u_high, int v_low, int v_high) |
unsigned * | getMap () |
char * | getColorName (int color) |
rgb | getColorVisual (int color) |
color_info * | getColorInfo (int color) |
void | getColorInfo (int color, color_info &info) |
void | setColorInfo (int color, color_info &info) |
bool | processFrame (image_pixel *image) |
bool | processFrame (unsigned *map) |
int | numRegions (int color_id) |
region * | getRegions (int color_id) |
Protected Member Functions |
void | classifyFrame (image_pixel *restrict img, unsigned *restrict map) |
int | encodeRuns (rle *restrict out, unsigned *restrict map) |
void | connectComponents (rle *restrict map, int num) |
int | extractRegions (region *restrict reg, rle *restrict rmap, int num) |
void | calcAverageColors (region *restrict reg, int num_reg, image_pixel *restrict img, rle *restrict rmap, int num_runs) |
int | separateRegions (region *restrict reg, int num) |
region * | sortRegionListByArea (region *restrict list, int passes) |
void | sortRegions (int max_area) |
int | mergeRegions (region *p, int num, double density_thresh) |
int | mergeRegions () |
void | clear () |
Protected Attributes |
unsigned | y_class [CMV_COLOR_LEVELS] |
unsigned | u_class [CMV_COLOR_LEVELS] |
unsigned | v_class [CMV_COLOR_LEVELS] |
region | region_table [CMV_MAX_REGIONS] |
region * | region_list [CMV_MAX_COLORS] |
int | region_count [CMV_MAX_COLORS] |
rle | rmap [CMV_MAX_RUNS] |
color_info | colors [CMV_MAX_COLORS] |
int | width |
int | height |
unsigned * | map |
unsigned | options |
Constructor & Destructor Documentation
CMVision::CMVision |
( |
|
) |
[inline] |
|
Member Function Documentation
void CMVision::classifyFrame |
( |
image_pixel *restrict |
img, |
|
|
unsigned *restrict |
map |
|
) |
[protected] |
|
int CMVision::encodeRuns |
( |
rle *restrict |
out, |
|
|
unsigned *restrict |
map |
|
) |
[protected] |
|
void CMVision::connectComponents |
( |
rle *restrict |
map, |
|
|
int |
num |
|
) |
[protected] |
|
int CMVision::extractRegions |
( |
region *restrict |
reg, |
|
|
rle *restrict |
rmap, |
|
|
int |
num |
|
) |
[protected] |
|
void CMVision::calcAverageColors |
( |
region *restrict |
reg, |
|
|
int |
num_reg, |
|
|
image_pixel *restrict |
img, |
|
|
rle *restrict |
rmap, |
|
|
int |
num_runs |
|
) |
[protected] |
|
int CMVision::separateRegions |
( |
region *restrict |
reg, |
|
|
int |
num |
|
) |
[protected] |
|
void CMVision::sortRegions |
( |
int |
max_area |
) |
[protected] |
|
int CMVision::mergeRegions |
( |
region * |
p, |
|
|
int |
num, |
|
|
double |
density_thresh |
|
) |
[protected] |
|
int CMVision::mergeRegions |
( |
|
) |
[protected] |
|
void CMVision::clear |
( |
|
) |
[protected] |
|
bool CMVision::initialize |
( |
int |
nwidth, |
|
|
int |
nheight |
|
) |
|
|
bool CMVision::loadOptions |
( |
char * |
filename |
) |
|
|
bool CMVision::saveOptions |
( |
char * |
filename |
) |
|
|
bool CMVision::enable |
( |
unsigned |
opt |
) |
|
|
bool CMVision::disable |
( |
unsigned |
opt |
) |
|
|
bool CMVision::testClassify |
( |
rgb *restrict |
out, |
|
|
image_pixel *restrict |
image |
|
) |
|
|
bool CMVision::getThreshold |
( |
int |
color, |
|
|
int & |
y_low, |
|
|
int & |
y_high, |
|
|
int & |
u_low, |
|
|
int & |
u_high, |
|
|
int & |
v_low, |
|
|
int & |
v_high |
|
) |
|
|
bool CMVision::setThreshold |
( |
int |
color, |
|
|
int |
y_low, |
|
|
int |
y_high, |
|
|
int |
u_low, |
|
|
int |
u_high, |
|
|
int |
v_low, |
|
|
int |
v_high |
|
) |
|
|
unsigned* CMVision::getMap |
( |
|
) |
[inline] |
|
char* CMVision::getColorName |
( |
int |
color |
) |
[inline] |
|
rgb CMVision::getColorVisual |
( |
int |
color |
) |
[inline] |
|
color_info* CMVision::getColorInfo |
( |
int |
color |
) |
[inline] |
|
void CMVision::getColorInfo |
( |
int |
color, |
|
|
color_info & |
info |
|
) |
[inline] |
|
void CMVision::setColorInfo |
( |
int |
color, |
|
|
color_info & |
info |
|
) |
[inline] |
|
bool CMVision::processFrame |
( |
unsigned * |
map |
) |
|
|
int CMVision::numRegions |
( |
int |
color_id |
) |
|
|
Member Data Documentation
The documentation for this class was generated from the following files:
Generated on Tue May 3 14:15:48 2005 for Player by 1.3.6
|