I'm new to OpenCv, and trying to perform interpolation operation just like interp1 in Matlab would do. Given x,y,xi, find yi accordinly,like this interp1 example (http://www.thphys.nuim.ie/CompPhysics/matlab/help/techdoc/ref/interp1.html#:~:text=Go%20to%20function%3A&text=yi%20%3D%20interp1(x%2CY%2Cxi)%20returns%20vector,the%20data%20Y%20is%20given.).
I came aross and found this void cv::cuda::remap() function in OpenCV, which was documented for bilinear interpolation by
DST[x,y] = SRC[xmap[x,y],ymap[x,y]]
After went through the Opencv examples (https://docs.opencv.org/3.4/d1/da0/tutorial_remap.html), I'm still not clear how to implement the interp1 opeartion exactly. More specifically, I'm not sure how to match the x,y,xi of interp1 into xMap and yMap of remap(). Can anyone gives me some insights on using Remap() for 1d interpolation? Thanks.