Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

cmvision.cc File Reference

#include "cmvision.h"

Defines

#define CMV_RBITS   6
#define CMV_RADIX   (1 << CMV_RBITS)
#define CMV_RMASK   (CMV_RADIX-1)
#define ZERO(x)   memset(x,0,sizeof(x))
#define CMV_STATE_SCAN   0
#define CMV_STATE_COLORS   1
#define CMV_STATE_THRESH   2
#define CMV_MAX_BUF   256

Functions

int range_sum (int x, int w)
template<class num> num max (num a, num b)
template<class num> num min (num a, num b)
template<class num> int bottom_bit (num n)
template<class num> num top_bit (num n)
template<class num> void set_bits (num *arr, int len, int l, int r, num k)
template<class num> void clear_bits (num *arr, int len, int l, int r, num k)

Variables

int log2modp [37]


Define Documentation

#define CMV_RBITS   6
 

#define CMV_RADIX   (1 << CMV_RBITS)
 

#define CMV_RMASK   (CMV_RADIX-1)
 

#define ZERO  )     memset(x,0,sizeof(x))
 

#define CMV_STATE_SCAN   0
 

#define CMV_STATE_COLORS   1
 

#define CMV_STATE_THRESH   2
 

#define CMV_MAX_BUF   256
 


Function Documentation

int range_sum int  x,
int  w
[inline]
 

template<class num>
num max num  a,
num  b
[inline]
 

template<class num>
num min num  a,
num  b
[inline]
 

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

template<class num>
num top_bit num  n  )  [inline]
 

template<class num>
void set_bits num *  arr,
int  len,
int  l,
int  r,
num  k
 

template<class num>
void clear_bits num *  arr,
int  len,
int  l,
int  r,
num  k
 


Variable Documentation

int 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
}


Generated on Tue May 3 14:15:39 2005 for Player by doxygen 1.3.6