| 43 | |
| 44 | template<typename Ty, typename Tp> |
| 45 | __device__ Ty bilinearInterpFunc(Ty val[2][2], Tp xratio, Tp yratio) { |
| 46 | Ty res[2]; |
| 47 | res[0] = linearInterpFunc(val[0], xratio); |
| 48 | res[1] = linearInterpFunc(val[1], xratio); |
| 49 | return linearInterpFunc(res, yratio); |
| 50 | } |
| 51 | |
| 52 | template<typename Ty, typename Tp> |
| 53 | __device__ inline static Ty cubicInterpFunc(Ty val[4], Tp xratio, bool spline) { |
no test coverage detected