|
STIRA
0.1
|
child class for bilinear interpolation Source: http://en.wikipedia.org/wiki/Bilinear_interpolation More...
#include <BilinearInterpolator.h>
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... | |
child class for bilinear interpolation Source: http://en.wikipedia.org/wiki/Bilinear_interpolation
|
virtual |
Bilinear interpolation.
| pGrid | grid in which to interpolate |
| x | x coordinate of point to be interpolated |
| y | y coordinate of point to be interpolated |
Implements stira::imagetools::Interpolator.
References stira::imagedata::ArrayGrid< T >::GetValue().
Referenced by stira::contrastenhance::AdaptiveHistogramEqualizer::Run().
|
static |
Bilinear interpolation.
x1 x x2 +-----—+---------—+---------------------—+--—> | | | | | | | (x1,y1) (x1,y1) y1 +– I11 +---------—+---------------------—+ I21 | | | | | | | | y +— +---------—+---------------------—+
| (x,y) | ||
|---|---|---|
y2 +— I12 +---------—+---------------------—+ I22 | (x1,y2) (x2,y2) | V
| x1 | x coordinate of top left corner (minimum x coordinate) |
| x2 | x coordinate of bottom right corner (maximum x coordinate) |
| y1 | y coordinate of top left corner (minimum y coordinate) |
| y2 | y 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) |
| x | x coordinate of point to be interpolated |
| y | y coordinate of point to be interpolated |
1.8.11