QGIS API Documentation  master-28efcda
QgsCubicRasterResampler Class Reference

Cubic Raster Resampler. More...

#include <qgscubicrasterresampler.h>

+ Inheritance diagram for QgsCubicRasterResampler:
+ Collaboration diagram for QgsCubicRasterResampler:

List of all members.

Public Member Functions

 QgsCubicRasterResampler ()
 ~QgsCubicRasterResampler ()
QgsRasterResamplerclone () const
void resample (const QImage &srcImage, QImage &dstImage)
QString type () const

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 double calcBernsteinPoly (int n, int i, double t)
static int faculty (int n)
static int lower (int n, int i)
static double power (double a, int b)
static void xDerivativeMatrix (int nCols, int nRows, double *matrix, const int *colorMatrix)
static void yDerivativeMatrix (int nCols, int nRows, double *matrix, const int *colorMatrix)

Private Attributes

double cAlpha00
double cAlpha01
double cAlpha02
double cAlpha03
double cAlpha10
double cAlpha11
double cAlpha12
double cAlpha13
double cAlpha20
double cAlpha21
double cAlpha22
double cAlpha23
double cAlpha30
double cAlpha31
double cAlpha32
double cAlpha33
double cBlue00
double cBlue01
double cBlue02
double cBlue03
double cBlue10
double cBlue11
double cBlue12
double cBlue13
double cBlue20
double cBlue21
double cBlue22
double cBlue23
double cBlue30
double cBlue31
double cBlue32
double cBlue33
double cGreen00
double cGreen01
double cGreen02
double cGreen03
double cGreen10
double cGreen11
double cGreen12
double cGreen13
double cGreen20
double cGreen21
double cGreen22
double cGreen23
double cGreen30
double cGreen31
double cGreen32
double cGreen33
double cRed00
double cRed01
double cRed02
double cRed03
double cRed10
double cRed11
double cRed12
double cRed13
double cRed20
double cRed21
double cRed22
double cRed23
double cRed30
double cRed31
double cRed32
double cRed33

Detailed Description

Cubic Raster Resampler.

Definition at line 27 of file qgscubicrasterresampler.h.


Constructor & Destructor Documentation


Member Function Documentation

double QgsCubicRasterResampler::calcBernsteinPoly ( int  n,
int  i,
double  t 
) [static, private]

Definition at line 400 of file qgscubicrasterresampler.cpp.

References lower(), and power().

Referenced by curveInterpolation(), and resample().

void QgsCubicRasterResampler::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 
) [private]

Implements QgsRasterResampler.

Definition at line 30 of file qgscubicrasterresampler.cpp.

References QgsCubicRasterResampler().

QRgb QgsCubicRasterResampler::curveInterpolation ( QRgb  pt1,
QRgb  pt2,
double  t,
double  d1red,
double  d1green,
double  d1blue,
double  d1alpha,
double  d2red,
double  d2green,
double  d2blue,
double  d2alpha 
) [private]

Use cubic curve interpoation at the borders of the raster.

Definition at line 377 of file qgscubicrasterresampler.cpp.

References calcBernsteinPoly().

Referenced by resample().

int QgsCubicRasterResampler::faculty ( int  n) [static, private]

Definition at line 444 of file qgscubicrasterresampler.cpp.

Referenced by lower().

int QgsCubicRasterResampler::lower ( int  n,
int  i 
) [static, private]

Definition at line 410 of file qgscubicrasterresampler.cpp.

References faculty().

Referenced by calcBernsteinPoly().

double QgsCubicRasterResampler::power ( double  a,
int  b 
) [static, private]

Definition at line 422 of file qgscubicrasterresampler.cpp.

Referenced by calcBernsteinPoly().

QString QgsCubicRasterResampler::type ( ) const [inline, virtual]

Implements QgsRasterResampler.

Definition at line 34 of file qgscubicrasterresampler.h.

void QgsCubicRasterResampler::xDerivativeMatrix ( int  nCols,
int  nRows,
double *  matrix,
const int *  colorMatrix 
) [static, private]

Definition at line 274 of file qgscubicrasterresampler.cpp.

Referenced by resample().

void QgsCubicRasterResampler::yDerivativeMatrix ( int  nCols,
int  nRows,
double *  matrix,
const int *  colorMatrix 
) [static, private]

Definition at line 301 of file qgscubicrasterresampler.cpp.

Referenced by resample().


Member Data Documentation

Definition at line 66 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 66 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 67 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 67 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 66 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 66 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 67 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 67 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 66 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 66 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 67 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 67 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 66 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 66 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 67 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 67 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 63 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 63 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 64 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 64 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 63 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 63 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 64 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 64 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 63 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 63 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 64 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 64 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 63 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 63 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 64 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 64 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 60 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 60 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 61 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 61 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 60 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 60 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 61 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 61 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 60 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 60 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 61 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 61 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 60 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 60 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 61 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 61 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 57 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 57 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 58 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 58 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 57 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 57 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 58 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 58 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 57 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 57 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 58 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 58 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 57 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 57 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 58 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().

Definition at line 58 of file qgscubicrasterresampler.h.

Referenced by calculateControlPoints(), and resample().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines