kml_?_interp2d_min_size
Return the minimum number of points required by interpolation object interp or interpolation type T. For example, bicubic interpolation requires at least four points.
Interface Definition
size_t kml_float_interp2d_min_size(const kml_float_interp2d *interp)
size_t kml_float_interp2d_type_min_size(const kml_float_interp2d_type *T)
size_t kml_double_interp2d_min_size(const kml_double_interp2d *interp);
size_t kml_double_interp2d_type_min_size(const kml_double_interp2d_type *T);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
interp |
const kml_float_interp2d* / const kml_double_interp2d* |
Pointer to an interpolation object. |
Input |
Dependencies
#include "kipl.h"
Examples
const size_t xSize = 4;
const size_t ySize = 4;
float xArr[4] = {1,1.33,1.67,2};
float yArr[4] = {1,1.33,1.67,2};
float* zArr = (float*)malloc(xSize * ySize * sizeof(float));
float x = 1;
float y = 1;
float z = 0;
kml_float_interp2d *interp = kml_float_interp2d_alloc(kml_float_interp2d_bicubic, xSize, ySize);
size_t min_size = kml_float_interp2d_min_size(interp);
Parent topic: interp2d