RasterHigh
Syntax | |||||||
void *RasterHigh(int wdt,int hgt,int sparse,int type,void *zero,int poly,double *pnt,int *vertex,void *value); | |||||||
Header | |||||||
general/raster.h | |||||||
Library | |||||||
raster | |||||||
Description | |||||||
The The function returns a two-dimensional array, whose extents are equal to the arguments wdt and hgt. The array is in row major form. The remaining arguments describe the grid of input data. If the argument sparse has a non-zero value then the input grid is sparsely populated and not all cells have an assigned value. In this case a slower algorithm must be used to interpolate the data. The argument type determines the type of input data, possible values are:
The data type of the returned array matches that of the input grid. The argument zero is a pointer to the value to use for points in the array that have no interpolated value. The pointer should be to the same data type as the input grid. The x and y co-ordinates of each grid point are described by pairs of elements from the array pnt. The range of the x and y coordinates should be between zero and wdt. The associated data value for each grid point is defined by the elements of the array value. The arrangement of the grid is described in terms of four sided polygons formed by linking grid points together. The argument poly defines the number of polygons in the grid and a complete polygon is described by a group of four elements from the array vertex. The elements of the array define the grid points at the four vertices of a polygon. | |||||||
Returns | |||||||
Returns a pointer to an array containing the interpolated data. If an error occurs a
NULL pointer is returned. | |||||||
Errors | |||||||
If an error occurs a NULL pointer is returned. | |||||||
Example | |||||||
|