官方文档的读取函数

函数参数
open3d.io.read_azure_kinect_mkv_metadata(filename)
open3d.io.read_azure_kinect_sensor_config(filename)
open3d.io.read_feature(filename)
open3d.io.read_file_geometry_type(读取文件的几何类型)( arg0 : str )(return(open3d.cpu.pybind.io.FileGeometry))
open3d.io.read_image(filename)
open3d.io.read_pinhole_camera_intrinsic(filename)
open3d.io.read_line_set(filename, format='auto', print_progress=False)
open3d.io.read_octree(filename, format='auto')
open3d.io.read_pinhole_camera_parameters(filename)
open3d.io.read_pinhole_camera_trajectory(filename)
open3d.io.read_point_cloud(filename, format='auto', remove_nan_points=False, remove_infinite_points=False, print_progress=False)
open3d.io.read_pose_graph(filename)
open3d.io.read_triangle_mesh(filename, enable_post_processing=False, print_progress=False)
open3d.io.read_triangle_model(filename, print_progress=False)
open3d.io.read_voxel_grid(filename, format='auto', print_progress=False)

详细读取操作看上一章。

官方文档的写入函数。

函数参数
open3d.io.write_line_set(filename,line_set,write_ascii = False,compressed = False,print_progress = False)
open3d.io.write_octree(filename, octree)
open3d.io.write_pinhole_camera_intrinsic(filename, intrinsic)
open3d.io.write_pinhole_camera_parameters(filename, parameters)
open3d.io.write_pinhole_camera_trajectory(filename, trajectory)
open3d.io.write_point_cloud(filename, pointcloud, write_ascii=False, compressed=False, print_progress=False)
open3d.io.write_pose_graph(filename, pose_graph)
open3d.io.write_triangle_mesh(filename, mesh, write_ascii=False, compressed=False, write_vertex_normals=True, write_vertex_colors=True, write_triangle_uvs=True, print_progress=False)
open3d.io.write_voxel_grid(filename, voxel_grid, write_ascii=False, compressed=False, print_progress=False)
open3d.io.write_image(filename, image, quality=- 1)
open3d.io.write_feature(filename, feature)
open3d.io.write_azure_kinect_sensor_config(filename, config)
open3d.io.write_azure_kinect_mkv_metadata(filename, config)

其中常用两种。
一种是点云的写入open3d.io.write_point_cloud(),对应读取格式,多用于写入ply和pcd格式文件。
另一种是open3d.io.write_triangle_mesh,同样对应读取格式,写入stl等格式文件。

文章目录