栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

编译运行Fast

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

编译运行Fast

日期:2021/11/9
论文网址:https://arxiv.org/abs/2004.04322

系统配置

Ubuntu 16.04 (gcc 5.4.0)
使用CMake编译

依赖
  1. OpenMesh
    官网:https://www.graphics.rwth-aachen.de/software/openmesh/
    安装步骤参考:https://github.com/TheWebMonks/meshmonk/blob/master/docs/ubuntu.md中OpenMesh安装部分。
    注意事项:
    (1)OpenMesh的版本对linux的gcc和clang版本有要求,根据系统gcc版本为5.4.0可知,选择OpenMesh7.1最为合适,更高版本的话gcc不满足要求。
    (2)按照官网的步骤执行完cmake …和make之后,编译运行Fast_RNRR时仍然找不到OpenMesh,为解决这个问题,需要执行以下操作:
sudo mv /home/user/Downloads/OpenMesh-6.3/build/Build/lib/* /usr/local/lib/
sudo mv /home/user/Downloads/OpenMesh-6.3/src/OpenMesh/ /usr/local/include/
sudo ldconfig -v
ldconfig -p | grep OpenMesh 

详细描述见网址:https://github.com/TheWebMonks/meshmonk/blob/master/docs/ubuntu.md

  1. Eigen
    官网:http://eigen.tuxfamily.org/index.php?title=Main_Page
    注意事项:
    下载编译之后将其放在usr/local/include处,防止编译项目时系统找不到。
编译

按照readme流程进行:

  1. Make sure Eigen and OpenMesh is installed.
  2. Create a build folder ‘build’ within the root directory of the code
  3. Run cmake to generate the build files inside the build folder, and compile the source code:
    • On linux, run the following commands within the build folder:
    $ cmake -DCMAKE_BUILD_TYPE=Release ..
    $ make
    
  4. Afterwards, there should be an executable Fast_RNRR generated.
    注意事项:
    此处生成的Fast_RNRR的属性为可执行文件。
使用

The program is run with four input parameters:

$ ./Fast_RNRR    

1.: an input file storing the source mesh;

2.: an input file storing the target mesh or point cloud;

3.: an output file storing the path of registered source mesh;

4.: an landmark file (nx2 matrix, first column includes the indexes in source file, second column includes the indexes in target file, each row is a pair correspondences separated by space).

can be ignored, our robust non-rigid registration method without landmarks will be used in this case.
示例:
./Fast_RNRR /home/sun/Fast_RNRR/build/data/test/source.obj /home/sun/Fast_RNRR/build/data/test/target_pc.obj /home/sun/Fast_RNRR/build/result/
注意事项:
(1) 和需要指明所在位置。
(2)是配准结果的.obj文件的存储位置,不需要提前新建.obj文件。
(3)不是必须项,可不写。
(4)Fast_RNRR 前面需要加./,不然提示没有Fast_RNRR这个命令。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/460190.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号