| 53 | |
| 54 | template<typename Ty, typename Tp> |
| 55 | Ty bilinearInterpFunc(Ty val[2][2], Tp xratio, Tp yratio) { |
| 56 | Ty res[2]; |
| 57 | res[0] = linearInterpFunc(val[0], xratio); |
| 58 | res[1] = linearInterpFunc(val[1], xratio); |
| 59 | return linearInterpFunc(res, yratio); |
| 60 | } |
| 61 | |
| 62 | template<typename Ty, typename Tp> |
| 63 | inline static Ty cubicInterpFunc(Ty val[4], Tp xratio, bool spline) { |
no test coverage detected