Package com.agisoft.metashape
Class DenseCloud
java.lang.Object
com.agisoft.metashape.DenseCloud
public class DenseCloud extends Object
Dense point cloud.
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
Constructors Constructor Description DenseCloud()DenseCloud(long cPtr, boolean cMemoryOwn)DenseCloud(DenseCloud dense_cloud) -
Method Summary
Modifier and Type Method Description voidassignClass(int target, int[] source, Progress progress)Assign class to points.static long[]cArrayUnwrap(DenseCloud[] arrayWrapper)static DenseCloud[]cArrayWrap(long[] cArray, boolean cMemoryOwn)voidcompactPoints(Progress progress)Permanently removes deleted points from dense cloud.voiddelete()protected voidfinalize()ChunkgetChunk()Chunk container.static longgetCPtr(DenseCloud obj)intgetKey()Dense cloud identifier.StringgetLabel()Dense cloud label.MetaDatagetMeta()Dense cloud meta data.StringgetPath()Path to dense cloud file.Vector3dpickPoint(Vector3d origin, Vector3d target)Returns ray intersection with the dense point cloud.voidremovePoints(int[] point_classes, Progress progress)Remove points.ImagerenderPreview(long width, long height, Matrix4x4d transform, int point_size, Progress progress)Generate dense cloud preview image.voidrestorePoints(int[] point_classes, Progress progress)Restore deleted points.voidsetLabel(String label)Dense cloud label.voidsetMeta(MetaData meta)Dense cloud meta data.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
DenseCloud
public DenseCloud(long cPtr, boolean cMemoryOwn) -
DenseCloud
public DenseCloud() -
DenseCloud
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
cArrayUnwrap
-
cArrayWrap
-
getKey
public int getKey()Dense cloud identifier. -
getChunk
Chunk container. -
setLabel
Dense cloud label. -
getLabel
Dense cloud label. -
getPath
Path to dense cloud file. -
setMeta
Dense cloud meta data. -
getMeta
Dense cloud meta data. -
pickPoint
Returns ray intersection with the dense point cloud.- Parameters:
origin- Ray origin.target- Point on the ray.- Returns:
- Coordinates of the intersection point or null.
-
compactPoints
Permanently removes deleted points from dense cloud.- Parameters:
progress- Progress callback.
-
removePoints
Remove points.- Parameters:
point_classes- Classes of points to be removed.progress- Progress callback.
-
restorePoints
Restore deleted points.- Parameters:
point_classes- Classes of points to be restored.progress- Progress callback.
-
assignClass
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.
-