Matlab中用于interp2的类似OpenCV Api [英] Similar OpenCV Api for interp2 in Matlab
本文介绍了Matlab中用于interp2的类似OpenCV Api的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何与
interp2(x, y, frame(:,:,z), xd, yd, '*linear', 0)
在OpenCV中?
推荐答案
The function cv::remap()
does almost what you're asking for, see the documentation here.
您需要预先计算文档中名为map1
和map2
的输入数组中点的(x,y)目标坐标(如果打包(x,y)坐标,则仅使用一个,否则两个).
等同于'*linear'
的OpenCV是cv::INTER_BILINEAR
.
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
.
这篇关于Matlab中用于interp2的类似OpenCV Api的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文