Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualization #25

Open
Vaishali-Nimilan opened this issue Mar 17, 2022 · 2 comments
Open

Visualization #25

Vaishali-Nimilan opened this issue Mar 17, 2022 · 2 comments

Comments

@Vaishali-Nimilan
Copy link

Hey,

Thanks for the code. I am trying to visualize the results after testing. Can you please say how to visualize the results of the registration after I have the trained model? Thanks in advance.

@mkt1412
Copy link

mkt1412 commented Nov 2, 2022

This block of code should help. The inputs are two point cloud arrays with [N, 3] shape.

def vis_pc_pair(points_a, points_b=None):
    pcd_vector_a = o3d.geometry.PointCloud()
    pcd_vector_a.points = o3d.utility.Vector3dVector(points_a)
    pcd_vector_a.paint_uniform_color([1, 0.706, 0])

    if points_b is not None:
        pcd_vector_b = o3d.geometry.PointCloud()
        pcd_vector_b.points = o3d.utility.Vector3dVector(points_b)
        pcd_vector_b.paint_uniform_color([0, 0.706, 1])

    o3d.visualization.draw_geometries([pcd_vector_a, pcd_vector_b])

@jishuo1
Copy link

jishuo1 commented Mar 19, 2024

@Vaishali-Nimilan Hello whether you have solved the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants