Interpolation functions
- group NVCV_CPP_CUDATOOLS_INTERPOLATION
Functions
- template<NVCVInterpolationType I, int Position = 1> inline constexpr int __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.
- Parameters:
c – [in] Coordinate in floating-point to convert to index in integer.
- Returns:
Index in integer suitable for interpolation computation.
- inline float __host__ __device__ GetCubicCoeff (float c)