Package com.agisoft.metashape
Class DenseCloud
java.lang.Object
com.agisoft.metashape.DenseCloud
Dense point cloud.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDenseCloud(long cPtr, boolean cMemoryOwn) DenseCloud(DenseCloud dense_cloud) -
Method Summary
Modifier and TypeMethodDescriptionvoidassignClass(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()getChunk()Chunk container, may be null.Reference coordinate system, may be null.static longgetCPtr(DenseCloud obj) intgetKey()Dense cloud identifier.getLabel()Dense cloud label.getMeta()Dense cloud meta data.getPath()Path to dense cloud file.4x4 dense cloud transformation matrix.Returns ray intersection with the dense point cloud.voidremovePoints(int[] point_classes, Progress progress) Remove points.renderPreview(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.voidReference coordinate system, may be null.voidDense cloud label.voidDense cloud meta data.voidsetTransform(Matrix4x4d transform) 4x4 dense cloud transformation matrix.
-
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, may be null. -
setLabel
Dense cloud label. -
getLabel
Dense cloud label. -
getPath
Path to dense cloud file. -
setMeta
Dense cloud meta data. -
getMeta
Dense cloud meta data. -
setTransform
4x4 dense cloud transformation matrix. -
getTransform
4x4 dense cloud transformation matrix. -
setCoordinateSystem
Reference coordinate system, may be null. -
getCoordinateSystem
Reference coordinate system, may be null. -
pickPoint
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
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.
-