1 Open3D学习笔记——读取与显示

数据读取与显示

import open3d as o3d 

def read_pcd(path_file):
    pcd = o3d.io.read_point_cloud(path_file)
    o3d.io.write_point_cloud("filename.pcd",pcd)      
    return pcd

def read_mesh(path_file):
    mesh = o3d.io.read_triangle_mesh(path_file)
    o3d.io.write_triangle_mesh("filename.ply",mesh)
    o3d.visualization.draw_geometries
    return mesh

def read_img(path_file):
    img = o3d.io.read_image(path_file)
    o3d.io.write_image("filename.jpg",img)
    return img

def show_pcd(pcd):
    o3d.visualization.draw_geometries([pcd])

def show_coordinate()
    mesh_frame = o3d.geometry.create_mesh_coordinate_frame(size=1, origin=[0, 0, 0])
    o3d.visualization.draw_geometries([mesh_frame])

 

你可能感兴趣的:(Open3D)