STIRA  0.1
Public Member Functions | Static Public Member Functions | List of all members
stira::imagetools::BilinearInterpolator Class Reference

child class for bilinear interpolation Source: http://en.wikipedia.org/wiki/Bilinear_interpolation More...

#include <BilinearInterpolator.h>

Inheritance diagram for stira::imagetools::BilinearInterpolator:
stira::imagetools::Interpolator

Public Member Functions

 BilinearInterpolator ()
 constructor
 
virtual ~BilinearInterpolator ()
 destructor
 
virtual double Run (ArrayGrid< double > *pGrid, double x, double y)
 Bilinear interpolation. More...
 
- Public Member Functions inherited from stira::imagetools::Interpolator
 Interpolator ()
 constructor
 
virtual ~Interpolator ()
 destructor
 

Static Public Member Functions

static double Run (double x1, double x2, double y1, double y2, double I11, double I12, double I21, double I22, double x, double y)
 Bilinear interpolation. More...
 

Detailed Description

child class for bilinear interpolation Source: http://en.wikipedia.org/wiki/Bilinear_interpolation

Member Function Documentation

double stira::imagetools::BilinearInterpolator::Run ( ArrayGrid< double > *  pGrid,
double  x,
double  y 
)
virtual

Bilinear interpolation.

Parameters
pGridgrid in which to interpolate
xx coordinate of point to be interpolated
yy coordinate of point to be interpolated

Implements stira::imagetools::Interpolator.

References stira::imagedata::ArrayGrid< T >::GetValue().

Referenced by stira::contrastenhance::AdaptiveHistogramEqualizer::Run().

double stira::imagetools::BilinearInterpolator::Run ( double  x1,
double  x2,
double  y1,
double  y2,
double  I11,
double  I12,
double  I21,
double  I22,
double  x,
double  y 
)
static

Bilinear interpolation.

x1 x x2 +-----—+---------—+---------------------—+--—> | | | | | | | (x1,y1) (x1,y1) y1 +– I11 +---------—+---------------------—+ I21 | | | | | | | | y +— +---------—+---------------------—+

(x,y)

y2 +— I12 +---------—+---------------------—+ I22 | (x1,y2) (x2,y2) | V

Parameters
x1x coordinate of top left corner (minimum x coordinate)
x2x coordinate of bottom right corner (maximum x coordinate)
y1y coordinate of top left corner (minimum y coordinate)
y2y coordinate of bottom right corner (maximum y coordinate)
I11(intensity) value at point (x1,y1)
I12(intensity) value at point (x1,y2)
I21(intensity) value at point (x2,y1)
I22(intensity) value at point (x2,y2)
xx coordinate of point to be interpolated
yy coordinate of point to be interpolated

The documentation for this class was generated from the following files: