58 double NearestNeighbor(
const double isamp,
const double iline,
62 double BiLinear(
const double isamp,
const double iline,
66 double CubicConvolution(
const double isamp,
const double iline,
78 double Interpolate(
const double isamp,
const double iline,
Pixel interpolator.
Definition: Interpolator.h:34
Interpolator()
Constructs an empty Interpolator object.
Definition: Interpolator.cpp:17
int Samples()
Returns the number of samples needed by the interpolator.
Definition: Interpolator.cpp:208
~Interpolator()
Destroys the Interpolator object.
Definition: Interpolator.cpp:34
int Lines()
Returns the number of lines needed by the interpolator.
Definition: Interpolator.cpp:236
double HotSample()
Returns the sample coordinate of the center pixel in the buffer for the interpolator.
Definition: Interpolator.cpp:265
double HotLine()
Returns the line coordinate of the center pixel in the buffer for the interpolator.
Definition: Interpolator.cpp:297
interpType
The interpolator type, including: None, Nearest Neighbor, BiLinear or Cubic Convultion.
Definition: Interpolator.h:40
@ BiLinearType
Definition: Interpolator.h:43
@ CubicConvolutionType
Definition: Interpolator.h:44
@ None
Definition: Interpolator.h:41
@ NearestNeighborType
Definition: Interpolator.h:42
void SetType(const interpType &type)
Sets the type of interpolation.
Definition: Interpolator.cpp:85
double Interpolate(const double isamp, const double iline, const double buf[])
Performs an interpolation on the data according to the parameters set in the constructor.
Definition: Interpolator.cpp:56
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16