GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71933
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
resample.c File Reference
#include <stdio.h>
#include <grass/gis.h>
#include "raster3d_intern.h"
Include dependency graph for resample.c:

Go to the source code of this file.

Functions

void Rast3d_nearest_neighbor (RASTER3D_Map *map, int x, int y, int z, void *value, int type)
 The default resampling function which uses nearest neighbor resampling. This method converts the window coordinates x, y, and z into region coordinates and returned the nearest neighbor. More...
 
void Rast3d_set_resampling_fun (RASTER3D_Map *map, void(*resampleFun)())
 Sets the resampling function to be used by Rast3d_get_value () (cf.{g3d:G3d.getValue}). This function is defined as follows: More...
 
void Rast3d_get_resampling_fun (RASTER3D_Map *map, void(**resampleFun)())
 Returns in resampleFun a pointer to the resampling function used by map. More...
 
void Rast3d_get_nearest_neighbor_fun_ptr (void(**nnFunPtr)())
 Returns in nnFunPtr a pointer to Rast3d_nearest_neighbor () (cf.{g3d:G3d.nearestNeighbor}). More...
 

Function Documentation

void Rast3d_get_nearest_neighbor_fun_ptr ( void(**)()  nnFunPtr)

Returns in nnFunPtr a pointer to Rast3d_nearest_neighbor () (cf.{g3d:G3d.nearestNeighbor}).

Returns
void

Definition at line 90 of file resample.c.

References Rast3d_nearest_neighbor().

Referenced by Rast3d_open_cell_new(), and Rast3d_open_cell_old().

void Rast3d_get_resampling_fun ( RASTER3D_Map map,
void(**)()  resampleFun 
)

Returns in resampleFun a pointer to the resampling function used by map.

Returns
void

Definition at line 73 of file resample.c.

References RASTER3D_Map::resampleFun.

void Rast3d_nearest_neighbor ( RASTER3D_Map map,
int  x,
int  y,
int  z,
void *  value,
int  type 
)

The default resampling function which uses nearest neighbor resampling. This method converts the window coordinates x, y, and z into region coordinates and returned the nearest neighbor.

Parameters
map
col
row
depth
value
type
Returns
void

Definition at line 25 of file resample.c.

References Rast3d_coord2location(), Rast3d_get_value_region(), Rast3d_location2coord(), RASTER3D_Map::region, and RASTER3D_Map::window.

Referenced by Rast3d_get_nearest_neighbor_fun_ptr().

void Rast3d_set_resampling_fun ( RASTER3D_Map map,
void(*)()  resampleFun 
)

Sets the resampling function to be used by Rast3d_get_value () (cf.{g3d:G3d.getValue}). This function is defined as follows:

Returns
void

Definition at line 55 of file resample.c.

References RASTER3D_Map::resampleFun.