26 #ifndef __TERRALIB_RASTER_INTERNAL_INTERPOLATOR_H
27 #define __TERRALIB_RASTER_INTERNAL_INTERPOLATOR_H
84 inline void getValue(
const double& c,
const double& r, std::complex<double>& v,
const std::size_t& b)
86 assert(b < m_raster->getNumberOfBands());
87 (this->*(m_function))(c, r, v, b);
97 void getValues(
const double& c,
const double& r, std::vector<std::complex<double> >& values);
109 void nearestNeighborGetValue(
const double& c,
const double& r, std::complex<double>& v,
const std::size_t& b);
119 void bilinearGetValue(
const double& c,
const double& r, std::complex<double>& v,
const std::size_t& b);
129 void bicubicGetValue(
const double& c,
const double& r, std::complex<double>& v,
const std::size_t& b);
139 typedef void (
Interpolator::*InterpolationFunction)(
const double& c,
const double& r, std::complex<double>& v,
const std::size_t& b);
165 double m_bilDistances[4];
166 double m_bilWeights[4];
176 double m_bicBbufferReal[4][4];
177 double m_bicBbufferImag[4][4];
181 double m_bicHWeights[4];
182 double m_bicVWeights[4];
187 double m_bicRowsValuesReal[4];
188 double m_bicRowsValuesImag[4];
196 #endif // __TERRALIB_RASTER_INTERNAL_INTERPOLATOR_H
double m_bilRowMin
Minimum row for bilinear interpolation.
double m_bilRowDifMin
Minimum difference between rows (min/max).
double m_bilRowDifMax
Maximum difference between rows (min/max).
double m_bilRowMax
Maximum row for bilinear interpolation.
void getValue(const double &c, const double &r, std::complex< double > &v, const std::size_t &b)
Get the interpolated value at specific band.
It interpolates one pixel based on a selected algorithm. Methods currently available are Nearest Neig...
int m_method
The interpolation method.
Method
Allowed interpolation methods.
double m_bilColMin
Minimum column for bilinear interpolation.
#define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
double m_bilLastRow
Last row available for bilinear interpolation.
double m_bilColDifMin
Minimum difference between columns (min/max).
double m_bilColMax
Maximum column for bilinear interpolation.
double m_bicColBound
Last column available for bicubic interpolation.
double m_bilLastCol
Last column available for bilinear interpolation.
std::vector< std::complex< double > > m_bilValues
Bilinear values;.
InterpolationFunction m_function
The current interpolation function pointer.
double m_nnLastRow
Last row available for nearest Neighbor interpolation.
An abstract class for raster data strucutures.
double m_nnLastCol
Last column available for nearest Neighbor interpolation.
std::vector< double > m_noDataValues
Raster no-data values (for each band);.
double m_bicRowBound
Last row available for bicubic interpolation.
double m_bilColDifMax
Maximum difference between columns (min/max).
Raster const * m_raster
My input raster.
An abstract class for raster data strucutures.