Class DenseCloud

java.lang.Object
com.agisoft.metashape.DenseCloud

public class DenseCloud extends Object
Dense point cloud.
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • DenseCloud

      public DenseCloud(long cPtr, boolean cMemoryOwn)
    • DenseCloud

      public DenseCloud()
    • DenseCloud

      public DenseCloud(DenseCloud dense_cloud)
  • Method Details

    • getCPtr

      public static long getCPtr(DenseCloud obj)
    • finalize

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

      public void delete()
    • cArrayUnwrap

      public static long[] cArrayUnwrap(DenseCloud[] arrayWrapper)
    • cArrayWrap

      public static DenseCloud[] cArrayWrap(long[] cArray, boolean cMemoryOwn)
    • getKey

      public int getKey()
      Dense cloud identifier.
    • getChunk

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

      public void setLabel(String label)
      Dense cloud label.
    • getLabel

      public String getLabel()
      Dense cloud label.
    • getPath

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

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

      public MetaData getMeta()
      Dense cloud meta data.
    • setTransform

      public void setTransform(Matrix4x4d transform)
      4x4 dense cloud transformation matrix.
    • getTransform

      public Matrix4x4d getTransform()
      4x4 dense cloud transformation matrix.
    • setCoordinateSystem

      public void setCoordinateSystem(CoordinateSystem crs)
      Reference coordinate system, may be null.
    • getCoordinateSystem

      public CoordinateSystem getCoordinateSystem()
      Reference coordinate system, may be null.
    • pickPoint

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

      public void compactPoints(Progress progress)
      Permanently removes deleted points from dense cloud.
      Parameters:
      progress - Progress callback.
    • removePoints

      public void removePoints(int[] point_classes, Progress progress)
      Remove points.
      Parameters:
      point_classes - Classes of points to be removed.
      progress - Progress callback.
    • restorePoints

      public void restorePoints(int[] point_classes, Progress progress)
      Restore deleted points.
      Parameters:
      point_classes - Classes of points to be restored.
      progress - Progress callback.
    • assignClass

      public void assignClass(int target, int[] source, Progress progress)
      Assign class to points.
      Parameters:
      target - Target class.
      source - Classes of points to be replaced.
      progress - Progress callback.
    • renderPreview

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