Package com.agisoft.metashape
Class PointCloud
java.lang.Object
com.agisoft.metashape.PointCloud
Sparse point cloud.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPointCloud(long cPtr, boolean cMemoryOwn) PointCloud(PointCloud point_cloud) -
Method Summary
Modifier and TypeMethodDescriptionvoidRemove points with insufficient number of projections.voiddelete()protected voidfinalize()int[]getChunk()Chunk container, may be null.static longgetCPtr(PointCloud obj) getMeta()Point cloud meta data.getPath()Path to point cloud file.List of points, may be null.getProjections(int camera) Point projections for the camera, may be null.List of tracks, may be null.Returns ray intersection with the sparse point cloud.renderPreview(long width, long height, Matrix4x4d transform, int point_size, Progress progress) Generate point cloud preview image.voidPoint cloud meta data.voidsetPoints(PointCloud.Points points) List of points, may be null.voidsetProjections(int camera, PointCloud.Projections projections) Point projections for the camera, may be null.voidsetTracks(PointCloud.Tracks tracks) List of tracks, may be null.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
PointCloud
public PointCloud(long cPtr, boolean cMemoryOwn) -
PointCloud
public PointCloud() -
PointCloud
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
getChunk
Chunk container, may be null. -
getPath
Path to point cloud file. -
setMeta
Point cloud meta data. -
getMeta
Point cloud meta data. -
setTracks
List of tracks, may be null. -
getTracks
List of tracks, may be null. -
setPoints
List of points, may be null. -
getPoints
List of points, may be null. -
setProjections
Point projections for the camera, may be null. -
getProjections
Point projections for the camera, may be null. -
getCameraKeys
public int[] getCameraKeys() -
cleanup
Remove points with insufficient number of projections.- Parameters:
progress- Progress callback.
-
pickPoint
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.
-