简体   繁体   English

查找旋转和平移fron decomposeHomographyMat()

[英]Find rotation and translation fron decomposeHomographyMat()

Please what is the best way to have the exact solution of rotation and translation from decomposeHomographyMat()? 请问从decomposeHomographyMat()获得旋转和平移的确切解决方案的最佳方法是什么? this function provide 4 possible solution. 此功能提供4种可能的解决方案。 I am working on an application android in java. 我正在用Java开发应用程序android。

Mat homography=Calib3d.findHomography(ReferencePoints2,ReferencePoints1,0,Calib3d.RANSAC);
    Calib3d.decomposeHomographyMat(Input homography,Input intrinsic,Output rotation,Output translation,Output normal);

I think you are asking how to use but in java instead of C++ or python. 我想您是在问如何使用Java,而不是C ++或python。 If that is the case, you need to modify the second line of your code. 在这种情况下,您需要修改代码的第二行。 Just replace "Input" to "Mat" and replace "output" to "List" 只需将“输入”替换为“垫子”,然后将“输出”替换为“列表”

Calib3d.decomposeHomographyMat(Mat homography,Mat intrinsic,List<Mat> rotation,List<Mat>translation,List<Mat> normal);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM