TigsInputFrame.C File Reference

#include "TIGS/TigsInputFrame.H"
#include "Image/ColorOps.H"
#include "Util/StringConversions.H"
#include "rutz/trace.h"
#include <sstream>
Include dependency graph for TigsInputFrame.C:

Go to the source code of this file.

Defines

#define RGB_BILINEAR_INTERP(EL)

Functions

Image< PixRGB< float > > rescaleAndPromote (const Image< PixRGB< byte > > &src, const int new_w, const int new_h)

Detailed Description

Class that lets us do lazy computation of luminance/rg/by from an input frame

Definition in file TigsInputFrame.C.


Define Documentation

#define RGB_BILINEAR_INTERP ( EL   ) 
Value:
do {                                                          \
    const float                                                 \
      d00( sptr[x0 + wy0].p[EL] ), d10( sptr[x1 + wy0].p[EL] ), \
      d01( sptr[x0 + wy1].p[EL] ), d11( sptr[x1 + wy1].p[EL] ); \
                                                                \
    const float                                                 \
      dx0( d00 + (d10 - d00) * fx ),                            \
      dx1( d01 + (d11 - d01) * fx );                            \
                                                                \
    dptr->p[EL] = float( int( dx0 + (dx1 - dx0) * fy ) );       \
  } while(0)
Generated on Sun May 8 08:42:51 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3