open3d.io

open3d.io
open3d.io.read_feature(filename)

Function to read registration.Feature from file

Parameters:filename (str) – Path to file.
Returns:open3d.registration.Feature
open3d.io.read_image(filename)

Function to read Image from file

Parameters:filename (str) – Path to file.
Returns:open3d.geometry.Image
open3d.io.read_line_set(filename, format='auto')

Function to read LineSet from file

Parameters:
  • filename (str) – Path to file.
  • format (str, optional) – The format of the input file. When not specified or set as auto, the format is inferred from file extension name.
Returns:

open3d.geometry.LineSet

open3d.io.read_pinhole_camera_intrinsic(filename)

Function to read PinholeCameraIntrinsic from file

Parameters:filename (str) – Path to file.
Returns:open3d.camera.PinholeCameraIntrinsic
open3d.io.read_pinhole_camera_parameters(filename)

Function to read PinholeCameraParameters from file

Parameters:filename (str) – Path to file.
Returns:open3d.camera.PinholeCameraParameters
open3d.io.read_pinhole_camera_trajectory(filename)

Function to read PinholeCameraTrajectory from file

Parameters:filename (str) – Path to file.
Returns:open3d.camera.PinholeCameraTrajectory
open3d.io.read_point_cloud(filename, format='auto')

Function to read PointCloud from file

Parameters:
  • filename (str) – Path to file.
  • format (str, optional) – The format of the input file. When not specified or set as auto, the format is inferred from file extension name.
Returns:

open3d.geometry.PointCloud

open3d.io.read_pose_graph(filename)

Function to read PoseGraph from file

Parameters:filename (str) – Path to file.
Returns:open3d.registration.PoseGraph
open3d.io.read_triangle_mesh(filename)

Function to read TriangleMesh from file

Parameters:filename (str) – Path to file.
Returns:open3d.geometry.TriangleMesh
open3d.io.read_voxel_grid(filename, format='auto')

Function to read VoxelGrid from file

Parameters:
  • filename (str) – Path to file.
  • format (str, optional) – The format of the input file. When not specified or set as auto, the format is inferred from file extension name.
Returns:

open3d.geometry.VoxelGrid

open3d.io.write_feature(filename, feature)

Function to write Feature to file

Parameters:
Returns:

bool

open3d.io.write_image(filename, image, quality=90)

Function to write Image to file

Parameters:
  • filename (str) – Path to file.
  • image (open3d.geometry.Image) – The Image object for I/O
  • quality (int, optional) – Quality of the output file.
Returns:

bool

open3d.io.write_line_set(filename, line_set, write_ascii=False, compressed=False)

Function to write LineSet to file

Parameters:
  • filename (str) – Path to file.
  • line_set (open3d.geometry.LineSet) – The LineSet object for I/O
  • write_ascii (bool, optional) – Set to True to output in ascii format, otherwise binary format will be used.
  • compressed (bool, optional) – Set to True to write in compressed format.
Returns:

bool

open3d.io.write_pinhole_camera_intrinsic(filename, intrinsic)

Function to write PinholeCameraIntrinsic to file

Parameters:
Returns:

bool

open3d.io.write_pinhole_camera_parameters(filename, parameters)

Function to write PinholeCameraParameters to file

Parameters:
Returns:

bool

open3d.io.write_pinhole_camera_trajectory(filename, trajectory)

Function to write PinholeCameraTrajectory to file

Parameters:
Returns:

bool

open3d.io.write_point_cloud(filename, pointcloud, write_ascii=False, compressed=False)

Function to write PointCloud to file

Parameters:
  • filename (str) – Path to file.
  • pointcloud (open3d.geometry.PointCloud) – The PointCloud object for I/O
  • write_ascii (bool, optional) – Set to True to output in ascii format, otherwise binary format will be used.
  • compressed (bool, optional) – Set to True to write in compressed format.
Returns:

bool

open3d.io.write_pose_graph(filename, pose_graph)

Function to write PoseGraph to file

Parameters:
Returns:

None

open3d.io.write_triangle_mesh(filename, mesh, write_ascii=False, compressed=False)

Function to write TriangleMesh to file

Parameters:
  • filename (str) – Path to file.
  • mesh (open3d.geometry.TriangleMesh) – The TriangleMesh object for I/O
  • write_ascii (bool, optional) – Set to True to output in ascii format, otherwise binary format will be used.
  • compressed (bool, optional) – Set to True to write in compressed format.
Returns:

bool

open3d.io.write_voxel_grid(filename, voxel_grid, write_ascii=False, compressed=False)

Function to write VoxelGrid to file

Parameters:
  • filename (str) – Path to file.
  • voxel_grid (open3d.geometry.VoxelGrid) – The VoxelGrid object for I/O
  • write_ascii (bool, optional) – Set to True to output in ascii format, otherwise binary format will be used.
  • compressed (bool, optional) – Set to True to write in compressed format.
Returns:

bool