#include "TIGS/TigsInputFrame.H"
#include "Image/ColorOps.H"
#include "Util/StringConversions.H"
#include "rutz/trace.h"
#include <sstream>
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) |
Class that lets us do lazy computation of luminance/rg/by from an input frame
Definition in file TigsInputFrame.C.
#define RGB_BILINEAR_INTERP | ( | EL | ) |
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)