|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|

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. | |
| void | Rast3d_set_resampling_fun (RASTER3D_Map *map, void(*resampleFun)(RASTER3D_Map *, int, int, int, void *, int)) |
| Sets the resampling function to be used by Rast3d_get_value () (cf.{g3d:G3d.getValue}). This function is defined as follows: | |
| void | Rast3d_get_resampling_fun (RASTER3D_Map *map, void(**resampleFun)(RASTER3D_Map *, int, int, int, void *, int)) |
| Returns in resampleFun a pointer to the resampling function used by map. | |
| void | Rast3d_get_nearest_neighbor_fun_ptr (void(**nnFunPtr)(RASTER3D_Map *, int, int, int, void *, int)) |
| Returns in nnFunPtr a pointer to Rast3d_nearest_neighbor () (cf.{g3d:G3d.nearestNeighbor}). | |
| void Rast3d_get_nearest_neighbor_fun_ptr | ( | void(**)(RASTER3D_Map *, int, int, int, void *, int) | nnFunPtr | ) |
Returns in nnFunPtr a pointer to Rast3d_nearest_neighbor () (cf.{g3d:G3d.nearestNeighbor}).
Definition at line 88 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(**)(RASTER3D_Map *, int, int, int, void *, int) | resampleFun | ||
| ) |
Returns in resampleFun a pointer to the resampling function used by map.
Definition at line 70 of file resample.c.
References RASTER3D_Map::resampleFun.
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.
| map | |
| x | |
| y | |
| z | |
| value | |
| type |
Definition at line 22 of file resample.c.
References Rast3d_coord2location(), Rast3d_get_value_region(), Rast3d_location2coord(), RASTER3D_Map::region, RASTER3D_Map::window, and x.
Referenced by Rast3d_get_nearest_neighbor_fun_ptr().
| void Rast3d_set_resampling_fun | ( | RASTER3D_Map * | map, |
| void(*)(RASTER3D_Map *, int, int, int, void *, int) | resampleFun | ||
| ) |
Sets the resampling function to be used by Rast3d_get_value () (cf.{g3d:G3d.getValue}). This function is defined as follows:
| map | |
| resampleFun |
Definition at line 52 of file resample.c.
References RASTER3D_Map::resampleFun.