approx2 performs interpolation on data along the first and second dimensions. It has three options for the type of interpolation to perform:
◆ af_approx2()
C Interface for signals interpolation on two dimensional signals.
- Parameters
-
[out] | out | is the array with interpolated values |
[in] | in | is the input array |
[in] | pos0 | array contains the interpolation locations for first dimension |
[in] | pos1 | array contains the interpolation locations for second dimension |
[in] | method | is the interpolation type, it can take one of the values defined by the enum af_interp_type |
[in] | offGrid | is the value that will set in the output array when certain index is out of bounds |
- Returns
- AF_SUCCESS if the interpolation operation is successful, otherwise an appropriate error code is returned.
◆ approx2()
C++ Interface for data interpolation on two dimensional signals.
- Parameters
-
[in] | in | is the input array |
[in] | pos0 | array contains the interpolation locations for first dimension |
[in] | pos1 | array contains the interpolation locations for second dimension |
[in] | method | is the interpolation type, it can take one of the values defined by the enum af_interp_type |
[in] | offGrid | is the value that will set in the output array when certain index is out of bounds |
- Returns
- the array with interpolated values