Here is the python code:
dispX = SmoothBivariateSpline(x, y, z, bbox=[0, 2859, 0, 2399],kx=1,ky=1)
result = dispX.ev(mc,yc)
I want to convert the above code to c++.x,y,z are 1D numpy arrays with same size. And in the next line I want to evaluate spline at points mc,yc (also bilinear extrapolation is carried out).
If you guys know anything similar to this function in c++ please do help
Thanks
I tried boost,gsl.. in boost there was no extrapolation, gsl is for structured data I have unstructured data, opencv and ipp didn’t have any function related to spline
I believe there isn't a direct equivalent function in the standard library. However, a library like Eigen can calculate spline interpolation.
You can try it an see if it achieves the same result. this is an example code.
You can find the link to the library here https://eigen.tuxfamily.org/index.php?title=Main_Page