libimage  0.25.4
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Grid Class Reference

Reprojection grid management. More...

#include <Grid.h>

Collaboration diagram for Grid:
Collaboration graph

Public Member Functions

 Grid (int width, int height, BoundingBox< double > bbox)
 Create a Grid object, from dimensions to cover.
 ~Grid ()
 Default destructor.
double getDeltaY ()
 Return the deltaY value.
double getRatioX ()
 Return the X wise ratio.
double getRatioY ()
 Return the Y wise ratio.
bool reproject (std::string from_srs, std::string to_srs)
 Reproject grid's points.
void affine_transform (double Ax, double Bx, double Ay, double By)
 Apply an affine transformation.
int getline (int line, float *X, float *Y)
 Return a grid's line, completed by linear interpolation.
void print ()
 Resampled image description output.

Public Attributes

int width
 Width covered by the grid.
int height
 Height covered by the grid.
BoundingBox< double > bbox
 Bounding box covered by the grid.

Private Member Functions

void calculateDeltaY ()
 Update the deltaY value.

Private Attributes

double deltaY
 Maximal gap for Y-coordinates in the first grid's line.
int nbxReg
 Reprojected points number, X wise, respecting the step.
int nbyReg
 Reprojected points number, Y wise, respecting the step.
int nbx
 Reprojected points number, X wise.
int nby
 Reprojected points number, Y wise.
int endX
 Pixel distance between the last regular point and the last point of the grid, X wise.
int endY
 Pixel distance between the last regular point and the last point of the grid, Y wise.
double * gridX
 X coordinates of the grid's points.
double * gridY
 Y coordinates of the grid's points.

Static Private Attributes

static const int stepInt = 16
 Grid's step, in pixel.

Detailed Description

Reprojection grid management.

Author
Institut national de l'information géographique et forestière
grid_general.png

Constructor & Destructor Documentation

Grid::Grid ( int  width,
int  height,
BoundingBox< double >  bbox 
)

Create a Grid object, from dimensions to cover.

Parameters
[in]widthwidth to cover
[in]heightheight to cover
[in]bboxbounding box to cover

Here is the call graph for this function:

Grid::~Grid ( )
inline

Default destructor.

Delete arrays gridX and gridY

Member Function Documentation

double Grid::getDeltaY ( )
inline

Return the deltaY value.

Returns
deltaY

Here is the caller graph for this function:

double Grid::getRatioX ( )

Return the X wise ratio.

Returns
X ratio

Here is the caller graph for this function:

double Grid::getRatioY ( )

Return the Y wise ratio.

Returns
Y ratio

Here is the caller graph for this function:

Member Data Documentation

int Grid::endX
private

Pixel distance between the last regular point and the last point of the grid, X wise.

Can be null

int Grid::endY
private

Pixel distance between the last regular point and the last point of the grid, Y wise.

Can be null


The documentation for this class was generated from the following files: