【问题标题】:Generate one point cloud from one mesh from one specific viewpoint从一个特定视点从一个网格生成一个点云
【发布时间】:2019-02-21 09:37:12
【问题描述】:

从一个特定的角度来看,我希望从一个网格中获得对应的点云。 pcl_mesh2pcdpcl_mesh_sampling 只将一个网格转换为一个点云,不考虑视点问题。从一个特定的角度来看,网格的某些端口将是不可见的。
也许 pcl 库中的某些函数会执行这样的工作。但是我对 PCL 中的每个模型都不是很熟悉,并且花了很多时间来实现这样的功能。可惜没找到。
我也在网上搜索。任何帮助表示赞赏。

【问题讨论】:

    标签: 3d mesh point-cloud-library point-clouds


    【解决方案1】:

    查看 PCL 的 simulation 模块。

    引用README_about_tools:

    Test and Example Programs for pcl_simulation
    mfallon and hordurj march 2012
    
    1. sim_viewer.cpp
    purpose: simulate in viewer which is almost the same as pcl_viewer
    status : use the mouse to drive around, and 'v' to capture a cloud. reads vtk and obj. 
             visualizes vtk and makes pcd of obj. conflict between RL and VTK means doesn't visualize/simulate properly
    was    : range_pcd_viewer.cpp
    
    2. sim_terminal_demo.cpp
    purpose: simple app to demo speed and api to pcl_simulation
    status : reads obj, make a series of 640x480 simulated point clouds and exits
    depndcy: OpenCV for writing png images
    
    3. sim_test_performance.cpp
    purpose: GLUT/GLEW viewer used by Hordur to test GLSL optimizations. Creates two different viewing planes
    status : reads obj, creates window, use keyboard to drive around environment
    was    : range_performance_test.cpp
    
    4. sim_test_simple
    purpose: similar code to #3 but has a 2x2 grid each containing 640x480 windows, but operates as #1. press 'v' to capture a cloud to file (only works properly if 2x2 canged to 1x1)
    status : reads obj, creates window, use keyboard to drive around environment
    was    : range_test_v2.cpp
    

    sim_viewer 可能是您想尝试的工具。

    【讨论】:

    • 谢谢。我发现 virtaul_scanner 更合适。 PCL 可视化模块中的 renderView 也可以做到这一点。
    猜你喜欢
    • 2018-01-29
    • 2015-05-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-09
    • 2010-12-23
    • 2015-06-25
    • 1970-01-01
    相关资源
    最近更新 更多