Class PointCloud

java.lang.Object
com.agisoft.metashape.PointCloud

public class PointCloud extends Object
Sparse point cloud.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • PointCloud

      public PointCloud(long cPtr, boolean cMemoryOwn)
    • PointCloud

      public PointCloud()
    • PointCloud

      public PointCloud(PointCloud point_cloud)
  • Method Details

    • getCPtr

      public static long getCPtr(PointCloud obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • getChunk

      public Chunk getChunk()
      Chunk container, may be null.
    • getPath

      public String getPath()
      Path to point cloud file.
    • setMeta

      public void setMeta(MetaData meta)
      Point cloud meta data.
    • getMeta

      public MetaData getMeta()
      Point cloud meta data.
    • setTracks

      public void setTracks(PointCloud.Tracks tracks)
      List of tracks, may be null.
    • getTracks

      public PointCloud.Tracks getTracks()
      List of tracks, may be null.
    • setPoints

      public void setPoints(PointCloud.Points points)
      List of points, may be null.
    • getPoints

      public PointCloud.Points getPoints()
      List of points, may be null.
    • setProjections

      public void setProjections(int camera, PointCloud.Projections projections)
      Point projections for the camera, may be null.
    • getProjections

      public PointCloud.Projections getProjections(int camera)
      Point projections for the camera, may be null.
    • getCameraKeys

      public int[] getCameraKeys()
    • cleanup

      public void cleanup(Progress progress)
      Remove points with insufficient number of projections.
      Parameters:
      progress - Progress callback.
    • pickPoint

      public Vector3d pickPoint(Vector3d origin, Vector3d target)
      Returns ray intersection with the sparse point cloud.
      Parameters:
      origin - Ray origin.
      target - Point on the ray.
      Returns:
      Coordinates of the intersection point, may be null.
    • renderPreview

      public Image renderPreview(long width, long height, Matrix4x4d transform, int point_size, Progress progress)
      Generate point cloud preview image.
      Parameters:
      width - Preview image width.
      height - Preview image height.
      transform - 4x4 viewpoint transformation matrix.
      point_size - Point size.
      Returns:
      Preview image.