General C++ and system helper functions


Detailed Description

Classes and functions for writing better code.


Classes

class  CVD::RingBuffer< T >
 Implements a ringbuffer based on std::vector. More...
class  CVD::cvd_timer
 Provides the time elapsed in seconds. More...

Functions

template<class T>
CVD::abs (T t)
unsigned char CVD::abs (unsigned char b)
unsigned short CVD::abs (unsigned short u)
unsigned int CVD::abs (unsigned int u)
unsigned long CVD::abs (unsigned long u)

Variables

cvd_timer CVD::timer


Function Documentation

template<class T>
T CVD::abs ( t  )  [inline]

Local templated version of abs.

Returns the absolute value of a variable.

Parameters:
t The input parameter

Definition at line 30 of file abs.h.

Referenced by CVD::Harris::ShiTomasiScore::Compute(), and CVD::drawLine().

unsigned char CVD::abs ( unsigned char  b  )  [inline]

Fast instantiation for unsigned datatype which avoids a comparison.

Parameters:
b The input parameter

Definition at line 34 of file abs.h.

unsigned short CVD::abs ( unsigned short  u  )  [inline]

Fast instantiation for unsigned datatype which avoids a comparison.

Parameters:
u The input parameter

Definition at line 38 of file abs.h.

unsigned int CVD::abs ( unsigned int  u  )  [inline]

Fast instantiation for unsigned datatype which avoids a comparison.

Parameters:
u The input parameter

Definition at line 42 of file abs.h.

unsigned long CVD::abs ( unsigned long  u  )  [inline]

Fast instantiation for unsigned datatype which avoids a comparison.

Parameters:
u The input parameter

Definition at line 46 of file abs.h.

Referenced by CVD::Harris::ShiTomasiScore::Compute().


Variable Documentation

cvd_timer CVD::timer

A instance of a cvd_timer for general use.

Referenced by CVD::V4L1Buffer< T >::get_frame().


Generated on Wed Feb 18 10:23:03 2009 for CVD by  doxygen 1.5.3