Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

CMVision Namespace Reference


Detailed Description

For more information on the CMVision package, visit http://www.cs.cmu.edu/~jbruce/cmvision/.

======================================================================== Copyright (C) 1999-2002 James R. Bruce School of Computer Science, Carnegie Mellon University ------------------------------------------------------------------------ This software is distributed under the GNU General Public License, version 2. If you do not have a copy of this licence, visit www.gnu.org, or write: Free Software Foundation, 59 Temple Place, Suite 330 Boston, MA 02111-1307 USA. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, including MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ========================================================================


Classes

class  DummyT1
class  DummyI3
class  DummyT1I3
class  image
class  image_idx
class  image_yuv
class  run
class  run_mini
struct  region
struct  region_small
struct  region_tiny
struct  color_class_state

Typedefs

typedef unsigned char uchar

Functions

int range_sum (int x, int w)
template<class num>
int bottom_bit (num n)
template<class num>
num top_bit (num n)
template<class rle_t, class tmap_t>
int EncodeRuns (rle_t *rle, tmap_t *map, int width, int height, int max_runs)
template<class rle_t, class tmap_t, class edge_t>
int EncodeRunsUseEdges (rle_t *rle, tmap_t *map, edge_t *edge_map, int width, int height, int max_runs)
template<class rle_t>
bool CheckRuns (rle_t *rle, int num_runs, int width, int height)
template<class rle_t>
void ConnectComponents (rle_t *map, int num)
template<class region_t, class rle_t>
int ExtractRegions (region_t *reg, int max_reg, rle_t *rmap, int num)
template<class color_class_state_t, class region_t>
int SeparateRegions (color_class_state_t *color, int colors, region_t *reg, int num)
template<class region_t>
region_t * SortRegionListByArea (region_t *list, int passes)
template<class color_class_state_t>
void SortRegions (color_class_state_t *color, int colors, int max_area)
template<class region, class rle_t>
void MergeRegions (region *p, region *q, region **q_prev_next, rle_t *runs)
template<class region>
void CalcXYBounds (region *p, double density_thresh, int area, int &xl, int &xh, int &yl, int &yh)
template<class region, class rle_t>
int MergeRegions (region *p, double density_thresh, rle_t *runs)
template<class color_class_state_t, class rle_t>
int MergeRegions (color_class_state_t *color, int colors, rle_t *runs)
template<class region, class rle_t>
bool CheckRegions (region *p, rle_t *runs)
template<class color_class_state_t, class rle_t>
bool CheckRegions (color_class_state_t *color, int colors, rle_t *runs)
template<class region_t, class rle_t>
int FindStart (rle_t *rmap, int left, int right, int x, DummyT1< region_t > dummy=DummyT1< region_t >())
template<class rle_t>
int FindStart (rle_t *rmap, int left, int right, int x, int y)
template<class region_t, class rle_t>
void CreateRunIndex (int *yindex, rle_t *rmap, int num, DummyT1< region_t > dummy=DummyT1< region_t >())
template<class color_class_state_t>
void GetNextRegion (color_class_state_t *color, int colors, int max_area)
template<class color_class_state_t>
void CalcTotalArea (color_class_state_t *color)
template<class color_class_state_t>
void CalcTotalArea (color_class_state_t *color, int colors)
template<class data>
int find (data *arr, int start, int end, data key)
template<class color_class_state_t>
int LoadColorInformation (color_class_state_t *color, int max, const char *filename, __gnu_cxx::hash_map< const char *, unsigned int, __gnu_cxx::hash< const char * >, hashcmp_eqstr > &color_names)
template<class cmap_t, class image, int bits_y, int bits_u, int bits_v>
void ThresholdImage (cmap_t *cmap, image &img, cmap_t *tmap, DummyI3< bits_y, bits_u, bits_v > dummy=DummyI3< bits_y, bits_u, bits_v >())
template<class cmap_t, class image>
void ThresholdImageRGB16 (cmap_t *cmap, image &img, cmap_t *tmap)
template<class cmap_t, class image, class element, int bits_y, int bits_u, int bits_v>
void ThresholdImageYUVPlanar (cmap_t *cmap, image &img, cmap_t *tmap)
template<class rle_t, class color_class_state_t>
void RmapToRgb (rgb *img, rle_t *map, int last_run, int width, int height, color_class_state_t *color, int num)
template<class cmap_t>
void RgbToIndex (cmap_t *map, rgb *img, int width, int height, rgb *colors, int num)
template<class cmap_t, class color_class_state_t>
void IndexToRgb (rgb *img, cmap_t *map, int width, int height, color_class_state_t *color, int num)
template<class cmap_t>
void IndexToRgb (rgb *img, cmap_t *map, int width, int height, rgb *colors, int num)
template<class data>
data Get3D (data *arr, int num_i, int num_j, int num_k, int i, int j, int k)
template<class data>
void Set3D (data *arr, int num_i, int num_j, int num_k, int i, int j, int k, data v)
template<class tmap_t>
int RemapTMapColor (tmap_t *tmap, int num_y, int num_u, int num_v, int src_id, int dest_id)
template<class tmap_t>
int CheckTMapColors (tmap_t *tmap, int num_y, int num_u, int num_v, int colors, int default_id)
template<class tmap_t>
bool LoadThresholdFile (tmap_t *tmap, int num_y, int num_u, int num_v, const char *filename)
template<class tmap_t>
bool SaveThresholdFile (tmap_t *tmap, int num_y, int num_u, int num_v, char *filename)

Variables

const int log2modp [37]


Typedef Documentation

typedef unsigned char CMVision::uchar

Definition at line 21 of file colors.h.


Function Documentation

template<class num>
int CMVision::bottom_bit ( num  n  )  [inline]

Definition at line 53 of file cmv_region.h.

template<class color_class_state_t>
void CMVision::CalcTotalArea ( color_class_state_t *  color,
int  colors 
) [inline]

Definition at line 1046 of file cmv_region.h.

template<class color_class_state_t>
void CMVision::CalcTotalArea ( color_class_state_t *  color  )  [inline]

Definition at line 1033 of file cmv_region.h.

Referenced by RegionGenerator::calcImage(), and CalcTotalArea().

template<class region>
void CMVision::CalcXYBounds ( region p,
double  density_thresh,
int  area,
int &  xl,
int &  xh,
int &  yl,
int &  yh 
) [inline]

Definition at line 786 of file cmv_region.h.

Referenced by MergeRegions().

template<class color_class_state_t, class rle_t>
bool CMVision::CheckRegions ( color_class_state_t *  color,
int  colors,
rle_t *  runs 
) [inline]

Definition at line 951 of file cmv_region.h.

template<class region, class rle_t>
bool CMVision::CheckRegions ( region p,
rle_t *  runs 
) [inline]

Definition at line 905 of file cmv_region.h.

Referenced by CheckRegions().

template<class rle_t>
bool CMVision::CheckRuns ( rle_t *  rle,
int  num_runs,
int  width,
int  height 
) [inline]

Definition at line 244 of file cmv_region.h.

template<class tmap_t>
int CMVision::CheckTMapColors ( tmap_t *  tmap,
int  num_y,
int  num_u,
int  num_v,
int  colors,
int  default_id 
) [inline]

template<class rle_t>
void CMVision::ConnectComponents ( rle_t *  map,
int  num 
) [inline]

Definition at line 413 of file cmv_region.h.

Referenced by RegionGenerator::calcImage().

template<class region_t, class rle_t>
void CMVision::CreateRunIndex ( int *  yindex,
rle_t *  rmap,
int  num,
DummyT1< region_t >  dummy = DummyT1<region_t>() 
) [inline]

Definition at line 1010 of file cmv_region.h.

template<class rle_t, class tmap_t>
int CMVision::EncodeRuns ( rle_t *  rle,
tmap_t *  map,
int  width,
int  height,
int  max_runs 
) [inline]

Definition at line 91 of file cmv_region.h.

Referenced by RLEGenerator::calcImage().

template<class rle_t, class tmap_t, class edge_t>
int CMVision::EncodeRunsUseEdges ( rle_t *  rle,
tmap_t *  map,
edge_t *  edge_map,
int  width,
int  height,
int  max_runs 
) [inline]

Definition at line 178 of file cmv_region.h.

template<class region_t, class rle_t>
int CMVision::ExtractRegions ( region_t *  reg,
int  max_reg,
rle_t *  rmap,
int  num 
) [inline]

Definition at line 501 of file cmv_region.h.

Referenced by RegionGenerator::calcImage().

template<class data>
int CMVision::find ( data *  arr,
int  start,
int  end,
data  key 
) [inline]

template<class rle_t>
int CMVision::FindStart ( rle_t *  rmap,
int  left,
int  right,
int  x,
int  y 
) [inline]

Definition at line 987 of file cmv_region.h.

template<class region_t, class rle_t>
int CMVision::FindStart ( rle_t *  rmap,
int  left,
int  right,
int  x,
DummyT1< region_t >  dummy = DummyT1<region_t>() 
) [inline]

Definition at line 966 of file cmv_region.h.

template<class data>
data CMVision::Get3D ( data *  arr,
int  num_i,
int  num_j,
int  num_k,
int  i,
int  j,
int  k 
) [inline]

Definition at line 240 of file cmv_threshold.h.

template<class color_class_state_t>
void CMVision::GetNextRegion ( color_class_state_t *  color,
int  colors,
int  max_area 
) [inline]

Definition at line 1027 of file cmv_region.h.

template<class cmap_t>
void CMVision::IndexToRgb ( rgb img,
cmap_t *  map,
int  width,
int  height,
rgb colors,
int  num 
) [inline]

Definition at line 227 of file cmv_threshold.h.

template<class cmap_t, class color_class_state_t>
void CMVision::IndexToRgb ( rgb img,
cmap_t *  map,
int  width,
int  height,
color_class_state_t *  color,
int  num 
) [inline]

Definition at line 214 of file cmv_threshold.h.

template<class color_class_state_t>
int CMVision::LoadColorInformation ( color_class_state_t *  color,
int  max,
const char *  filename,
__gnu_cxx::hash_map< const char *, unsigned int, __gnu_cxx::hash< const char * >, hashcmp_eqstr > &  color_names 
) [inline]

Definition at line 1065 of file cmv_region.h.

Referenced by SegmentedColorGenerator::loadColorInfo().

template<class tmap_t>
bool CMVision::LoadThresholdFile ( tmap_t *  tmap,
int  num_y,
int  num_u,
int  num_v,
const char *  filename 
) [inline]

Definition at line 292 of file cmv_threshold.h.

Referenced by SegmentedColorGenerator::loadThresholdMap().

template<class color_class_state_t, class rle_t>
int CMVision::MergeRegions ( color_class_state_t *  color,
int  colors,
rle_t *  runs 
) [inline]

Definition at line 885 of file cmv_region.h.

template<class region, class rle_t>
int CMVision::MergeRegions ( region p,
double  density_thresh,
rle_t *  runs 
) [inline]

Definition at line 816 of file cmv_region.h.

template<class region, class rle_t>
void CMVision::MergeRegions ( region p,
region q,
region **  q_prev_next,
rle_t *  runs 
) [inline]

Definition at line 682 of file cmv_region.h.

Referenced by RegionGenerator::calcImage(), and MergeRegions().

int CMVision::range_sum ( int  x,
int  w 
) [inline]

Definition at line 40 of file cmv_region.h.

Referenced by ExtractRegions().

template<class tmap_t>
int CMVision::RemapTMapColor ( tmap_t *  tmap,
int  num_y,
int  num_u,
int  num_v,
int  src_id,
int  dest_id 
) [inline]

Definition at line 256 of file cmv_threshold.h.

template<class cmap_t>
void CMVision::RgbToIndex ( cmap_t *  map,
rgb img,
int  width,
int  height,
rgb colors,
int  num 
) [inline]

Definition at line 194 of file cmv_threshold.h.

template<class rle_t, class color_class_state_t>
void CMVision::RmapToRgb ( rgb img,
rle_t *  map,
int  last_run,
int  width,
int  height,
color_class_state_t *  color,
int  num 
) [inline]

Definition at line 149 of file cmv_threshold.h.

template<class tmap_t>
bool CMVision::SaveThresholdFile ( tmap_t *  tmap,
int  num_y,
int  num_u,
int  num_v,
char *  filename 
) [inline]

Definition at line 358 of file cmv_threshold.h.

template<class color_class_state_t, class region_t>
int CMVision::SeparateRegions ( color_class_state_t *  color,
int  colors,
region_t *  reg,
int  num 
) [inline]

Definition at line 571 of file cmv_region.h.

Referenced by RegionGenerator::calcImage().

template<class data>
void CMVision::Set3D ( data *  arr,
int  num_i,
int  num_j,
int  num_k,
int  i,
int  j,
int  k,
data  v 
) [inline]

Definition at line 248 of file cmv_threshold.h.

template<class region_t>
region_t* CMVision::SortRegionListByArea ( region_t *  list,
int  passes 
) [inline]

Definition at line 618 of file cmv_region.h.

Referenced by SortRegions().

template<class color_class_state_t>
void CMVision::SortRegions ( color_class_state_t *  color,
int  colors,
int  max_area 
) [inline]

Definition at line 662 of file cmv_region.h.

Referenced by RegionGenerator::calcImage().

template<class cmap_t, class image, int bits_y, int bits_u, int bits_v>
void CMVision::ThresholdImage ( cmap_t *  cmap,
image &  img,
cmap_t *  tmap,
DummyI3< bits_y, bits_u, bits_v >  dummy = DummyI3<bits_y,bits_u,bits_v>() 
) [inline]

Definition at line 31 of file cmv_threshold.h.

template<class cmap_t, class image>
void CMVision::ThresholdImageRGB16 ( cmap_t *  cmap,
image &  img,
cmap_t *  tmap 
) [inline]

Definition at line 61 of file cmv_threshold.h.

template<class cmap_t, class image, class element, int bits_y, int bits_u, int bits_v>
void CMVision::ThresholdImageYUVPlanar ( cmap_t *  cmap,
image &  img,
cmap_t *  tmap 
) [inline]

Definition at line 76 of file cmv_threshold.h.

template<class num>
num CMVision::top_bit ( num  n  )  [inline]

Definition at line 60 of file cmv_region.h.

Referenced by SortRegions().


Variable Documentation

const int CMVision::log2modp[37]

Initial value:

 {
  0, 1, 2,27, 3,24,28, 0, 4,17,25,31,29,12, 0,14, 5, 8,18,
  0,26,23,32,16,30,11,13, 7, 0,22,15,10, 6,21, 9,20,19
}

Definition at line 46 of file cmv_region.h.

Referenced by bottom_bit(), and top_bit().


Tekkotsu v4.0
Generated Thu Nov 22 00:58:50 2007 by Doxygen 1.5.4