kornia.geometry.pointcloud

kornia.geometry.pointcloud.save_pointcloud_ply(filename, pointcloud)[source]

Save to disk a pointcloud in PLY format.

Parameters:
  • filename (str) – the path to save the pointcloud.

  • pointcloud (Tensor) – tensor containing the pointcloud to save. The tensor must be in the shape of \((*, 3)\) where the last component is assumed to be a 3d point coordinate \((X, Y, Z)\).

Return type:

None

kornia.geometry.pointcloud.load_pointcloud_ply(filename, header_size=8)[source]

Load from disk a pointcloud in PLY format.

Parameters:
  • filename (str) – the path to the pointcloud.

  • header_size (int, optional) – the number of header lines to skip. Default: 8

Return type:

Tensor

Returns:

tensor containing the loaded points with shape \((*, 3)\) where \(*\) represents the number of points.