3

是否有任何类似的功能与

interp2(x, y, frame(:,:,z), xd, yd, '*linear', 0)

在 OpenCV 中?

4

1 回答 1

1

The function cv::remap() does almost what you're asking for, see the documentation here.

You need to precompute the (x,y) target coordinates of the points in the input array(s) called map1 and map2 in the doc (use only one if you pack (x,y) coordinate, two otherwise). The OpenCV equivalent to '*linear' is cv::INTER_BILINEAR.

于 2013-10-21T11:16:13.250 回答