【发布时间】:2012-04-25 14:32:58
【问题描述】:
我正在尝试使用来自 opencv for android 的 stereouncalibratedrectify
我没有找到在java中从List转换为Mat的方法,但是在opencv c++中我们可以从vector创建一个Mat
这是我做的步骤:
//find fundamental matrix
//srcmatchkey and dstmatchkey are List<Point> as required in findFundamentalMat function,
they have been calculated using FLANN Matcher
Cali3D.findFundamentalMat(srcMatchKey, dstMatchKey, Calib3d.FM_8POINT);
//this is the strange part
Calib3D.stereoRectifyUncalibrated(Mat points1,Mat,points1,Mat fundamentalMatrix,Mat H1,Mat H2)
据我了解,Mat points1 和 Mat points2 是由 srcMatchKey 和 dstMatchKey 制成的 Mat(或者我错了吗??,如果错了请更正)并且没有 Mat 构造函数接受 List 或类似向量的东西在 c++ 中,而 Mat c++ 有。
所以问题是有没有办法在 android 中从 List 创建 Mat?感谢您的帮助...
【问题讨论】: