三维识别与位资估计实例及代码实现——基于PPF

编程入门 行业动态 更新时间:2024-10-10 06:20:22

三维识别与位资估计<a href=https://www.elefans.com/category/jswz/34/1771375.html style=实例及代码实现——基于PPF"/>

三维识别与位资估计实例及代码实现——基于PPF


准备一个model:ply格式,带法线;
准备一个scene:ply格式,带法线;

#include "opencv2/surface_matching.hpp"
#include <iostream>
#include "opencv2/surface_matching/ppf_helpers.hpp"
#include "opencv2/core/utility.hpp"using namespace std;
using namespace cv;
using namespace ppf_match_3d;static void help(const string& errorMessage)
{cout << "Program init error : "<< errorMessage << endl;cout << "\nUsage : ppf_matching [input model file] [input scene file]"<< endl;cout << "\nPlease start again with new parameters"<< endl;
}int main(int argc, char** argv)
{// welcome messagecout << "****************************************************" << endl;cout << "* Surface Matching demonstration : demonstrates the use of surface matching"" using point pair features." << endl;cout << "* The sample loads a model and a scene, where the model lies in a different"" pose than the training.\n* It then trains the model and searches for it in the"" input scene. The detected poses are further refined by ICP\n* and printed to the "" standard output." << endl;cout << "****************************************************" << endl;// if (argc < 3)//{//  help("Not enough input arguments");//   exit(1);// }#if (defined __x86_64__ || defined _M_X64)cout << "Running on 64 bits" << endl

更多推荐

三维识别与位资估计实例及代码实现——基于PPF

本文发布于:2024-03-10 00:25:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1726542.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实例   代码   PPF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!