QGIS API Documentation
2.0.1-Dufour
|
Cubic Raster Resampler. More...
#include <qgscubicrasterresampler.h>
Public Member Functions | |
QgsCubicRasterResampler () | |
~QgsCubicRasterResampler () | |
QgsRasterResampler * | clone () const |
void | resample (const QImage &srcImage, QImage &dstImage) |
QString | type () const |
Public Member Functions inherited from QgsRasterResampler | |
virtual | ~QgsRasterResampler () |
Private Member Functions | |
void | calculateControlPoints (int nCols, int nRows, int currentRow, int currentCol, int *redMatrix, int *greenMatrix, int *blueMatrix, int *alphaMatrix, double *xDerivativeMatrixRed, double *xDerivativeMatrixGreen, double *xDerivativeMatrixBlue, double *xDerivativeMatrixAlpha, double *yDerivativeMatrixRed, double *yDerivativeMatrixGreen, double *yDerivativeMatrixBlue, double *yDerivativeMatrixAlpha) |
QRgb | curveInterpolation (QRgb pt1, QRgb pt2, double t, double d1red, double d1green, double d1blue, double d1alpha, double d2red, double d2green, double d2blue, double d2alpha) |
Use cubic curve interpoation at the borders of the raster. |
Static Private Member Functions | |
static void | xDerivativeMatrix (int nCols, int nRows, double *matrix, const int *colorMatrix) |
static void | yDerivativeMatrix (int nCols, int nRows, double *matrix, const int *colorMatrix) |
static double | calcBernsteinPoly (int n, int i, double t) |
static int | lower (int n, int i) |
static double | power (double a, int b) |
static int | faculty (int n) |
Private Attributes | |
double | cRed00 |
double | cRed10 |
double | cRed20 |
double | cRed30 |
double | cRed01 |
double | cRed11 |
double | cRed21 |
double | cRed31 |
double | cRed02 |
double | cRed12 |
double | cRed22 |
double | cRed32 |
double | cRed03 |
double | cRed13 |
double | cRed23 |
double | cRed33 |
double | cGreen00 |
double | cGreen10 |
double | cGreen20 |
double | cGreen30 |
double | cGreen01 |
double | cGreen11 |
double | cGreen21 |
double | cGreen31 |
double | cGreen02 |
double | cGreen12 |
double | cGreen22 |
double | cGreen32 |
double | cGreen03 |
double | cGreen13 |
double | cGreen23 |
double | cGreen33 |
double | cBlue00 |
double | cBlue10 |
double | cBlue20 |
double | cBlue30 |
double | cBlue01 |
double | cBlue11 |
double | cBlue21 |
double | cBlue31 |
double | cBlue02 |
double | cBlue12 |
double | cBlue22 |
double | cBlue32 |
double | cBlue03 |
double | cBlue13 |
double | cBlue23 |
double | cBlue33 |
double | cAlpha00 |
double | cAlpha10 |
double | cAlpha20 |
double | cAlpha30 |
double | cAlpha01 |
double | cAlpha11 |
double | cAlpha21 |
double | cAlpha31 |
double | cAlpha02 |
double | cAlpha12 |
double | cAlpha22 |
double | cAlpha32 |
double | cAlpha03 |
double | cAlpha13 |
double | cAlpha23 |
double | cAlpha33 |
Cubic Raster Resampler.
Definition at line 27 of file qgscubicrasterresampler.h.
QgsCubicRasterResampler::QgsCubicRasterResampler | ( | ) |
Definition at line 22 of file qgscubicrasterresampler.cpp.
Referenced by clone().
QgsCubicRasterResampler::~QgsCubicRasterResampler | ( | ) |
Definition at line 26 of file qgscubicrasterresampler.cpp.
|
staticprivate |
Definition at line 400 of file qgscubicrasterresampler.cpp.
References lower(), and power().
Referenced by curveInterpolation(), and resample().
|
private |
Definition at line 328 of file qgscubicrasterresampler.cpp.
References cAlpha00, cAlpha01, cAlpha02, cAlpha03, cAlpha10, cAlpha11, cAlpha12, cAlpha13, cAlpha20, cAlpha21, cAlpha22, cAlpha23, cAlpha30, cAlpha31, cAlpha32, cAlpha33, cBlue00, cBlue01, cBlue02, cBlue03, cBlue10, cBlue11, cBlue12, cBlue13, cBlue20, cBlue21, cBlue22, cBlue23, cBlue30, cBlue31, cBlue32, cBlue33, cGreen00, cGreen01, cGreen02, cGreen03, cGreen10, cGreen11, cGreen12, cGreen13, cGreen20, cGreen21, cGreen22, cGreen23, cGreen30, cGreen31, cGreen32, cGreen33, cRed00, cRed01, cRed02, cRed03, cRed10, cRed11, cRed12, cRed13, cRed20, cRed21, cRed22, cRed23, cRed30, cRed31, cRed32, and cRed33.
Referenced by resample().
|
virtual |
Implements QgsRasterResampler.
Definition at line 30 of file qgscubicrasterresampler.cpp.
References QgsCubicRasterResampler().
|
private |
Use cubic curve interpoation at the borders of the raster.
Definition at line 377 of file qgscubicrasterresampler.cpp.
References calcBernsteinPoly().
Referenced by resample().
|
staticprivate |
Definition at line 444 of file qgscubicrasterresampler.cpp.
Referenced by lower().
|
staticprivate |
Definition at line 410 of file qgscubicrasterresampler.cpp.
References faculty().
Referenced by calcBernsteinPoly().
|
staticprivate |
Definition at line 422 of file qgscubicrasterresampler.cpp.
Referenced by calcBernsteinPoly().
|
virtual |
Implements QgsRasterResampler.
Definition at line 35 of file qgscubicrasterresampler.cpp.
References calcBernsteinPoly(), calculateControlPoints(), cAlpha00, cAlpha01, cAlpha02, cAlpha03, cAlpha10, cAlpha11, cAlpha12, cAlpha13, cAlpha20, cAlpha21, cAlpha22, cAlpha23, cAlpha30, cAlpha31, cAlpha32, cAlpha33, cBlue00, cBlue01, cBlue02, cBlue03, cBlue10, cBlue11, cBlue12, cBlue13, cBlue20, cBlue21, cBlue22, cBlue23, cBlue30, cBlue31, cBlue32, cBlue33, cGreen00, cGreen01, cGreen02, cGreen03, cGreen10, cGreen11, cGreen12, cGreen13, cGreen20, cGreen21, cGreen22, cGreen23, cGreen30, cGreen31, cGreen32, cGreen33, cRed00, cRed01, cRed02, cRed03, cRed10, cRed11, cRed12, cRed13, cRed20, cRed21, cRed22, cRed23, cRed30, cRed31, cRed32, cRed33, curveInterpolation(), xDerivativeMatrix(), and yDerivativeMatrix().
|
inlinevirtual |
Implements QgsRasterResampler.
Definition at line 34 of file qgscubicrasterresampler.h.
|
staticprivate |
Definition at line 274 of file qgscubicrasterresampler.cpp.
Referenced by resample().
|
staticprivate |
Definition at line 301 of file qgscubicrasterresampler.cpp.
Referenced by resample().
|
private |
Definition at line 66 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 66 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 67 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 67 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 66 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 66 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 67 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 67 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 66 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 66 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 67 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 67 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 66 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 66 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 67 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 67 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 63 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 63 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 64 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 64 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 63 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 63 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 64 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 64 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 63 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 63 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 64 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 64 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 63 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 63 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 64 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 64 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 60 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 60 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 61 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 61 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 60 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 60 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 61 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 61 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 60 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 60 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 61 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 61 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 60 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 60 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 61 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 61 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 57 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 57 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 58 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 58 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 57 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 57 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 58 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 58 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 57 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 57 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 58 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 58 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 57 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 57 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 58 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().
|
private |
Definition at line 58 of file qgscubicrasterresampler.h.
Referenced by calculateControlPoints(), and resample().