Package com.agisoft.metashape
Class PointCloud
java.lang.Object
com.agisoft.metashape.PointCloud
public class PointCloud extends Object
Sparse point cloud.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPointCloud.Pointstatic classPointCloud.Pointsstatic classPointCloud.Projectionstatic classPointCloud.Projectionsstatic classPointCloud.Trackstatic classPointCloud.Tracks -
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
Constructors Constructor Description PointCloud()PointCloud(long cPtr, boolean cMemoryOwn)PointCloud(PointCloud point_cloud) -
Method Summary
Modifier and Type Method Description voidcleanup(Progress progress)Remove points with insufficient number of projections.voiddelete()protected voidfinalize()int[]getCameraKeys()ChunkgetChunk()Chunk container.static longgetCPtr(PointCloud obj)MetaDatagetMeta()Point cloud meta data.StringgetPath()Path to point cloud file.PointCloud.PointsgetPoints()List of points.PointCloud.ProjectionsgetProjections(int camera)Point projections for the camera.PointCloud.TracksgetTracks()List of tracks.Vector3dpickPoint(Vector3d origin, Vector3d target)Returns ray intersection with the sparse point cloud.ImagerenderPreview(long width, long height, Matrix4x4d transform, int point_size, Progress progress)Generate point cloud preview image.voidsetMeta(MetaData meta)Point cloud meta data.voidsetPoints(PointCloud.Points points)List of points.voidsetProjections(int camera, PointCloud.Projections projections)Point projections for the camera.voidsetTracks(PointCloud.Tracks tracks)List of tracks.
-
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. -
getPath
Path to point cloud file. -
setMeta
Point cloud meta data. -
getMeta
Point cloud meta data. -
setTracks
List of tracks. -
getTracks
List of tracks. -
setPoints
List of points. -
getPoints
List of points. -
setProjections
Point projections for the camera. -
getProjections
Point projections for the camera. -
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 or 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.
-