Class PointCloud

java.lang.Object
com.agisoft.metashape.PointCloud
All Implemented Interfaces:
AutoCloseable

public class PointCloud extends Object implements AutoCloseable
Tie point cloud.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • PointCloud

      protected PointCloud(long cPtr, boolean cMemoryOwn)
    • PointCloud

      public PointCloud()
    • PointCloud

      public PointCloud(PointCloud point_cloud)
  • Method Details

    • getCPtr

      protected static long getCPtr(PointCloud obj)
    • finalize

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

      public void delete()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getChunk

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

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

      public void setMeta(Map<String,String> meta)
      Point cloud meta data.
    • getMeta

      public Map<String,String> getMeta()
      Point cloud meta data.
    • setTracks

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

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

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

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

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

      public Optional<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 Optional<Vector> pickPoint(Vector origin, Vector target)
      Returns ray intersection with the tie 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, Matrix 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.