Interpolation functions
- group NVCV_CPP_CUDATOOLS_INTERPOLATION
Functions
- template<NVCVInterpolationType I, int Position = 1, typename IndexType = int64_t> inline constexpr IndexType __host__ __device__ GetIndexForInterpolation (float c)
Function to get an integer index from a float coordinate for interpolation purpose.
- Template Parameters
I – Interpolation type, one of NVCVInterpolationType.
Position – Interpolation position, 1 for the first index and 2 for the second index.
IndexType – Type of the returned value
- Parameters
c – [in] Coordinate in floating-point to convert to index in integer.
- Returns
Index in integer suitable for interpolation computation.
- inline void __host__ __device__ GetCubicCoeffs (float delta, float &w0, float &w1, float &w2, float &w3)