Stay organized with collections
Save and categorize content based on your preferences.
public class
PointCloud
Contains a set of observed 3D points and confidence values. This class implements Closeable and usually should be used in a Java try-with-resources or Kotlin use block,
for example:
Frame frame = session.update();
...
// Automatically releases point cloud resources at end of try block.
try (PointCloud pointCloud = frame.acquirePointCloud()) {
// Access point cloud data.
}
Each point has a unique identifier (within a session) that is persistent across frames. That
is, if a point from point cloud 1 has the same id as the point from point cloud 2, then it
represents the same point in space.
Returns a buffer of point coordinates and confidence values.
Each point is represented by four consecutive values in the buffer; first the X, Y, Z
position coordinates, followed by a confidence value. This is the same format as described in
ImageFormat.DEPTH_POINT_CLOUD.
Point locations are in the world coordinate space, consistent with the camera position for
the frame that provided the point cloud.
public
long
getTimestamp
()
getTimestamp
publiclonggetTimestamp()
Returns the timestamp in nanoseconds when this point cloud was observed. This timestamp uses
the same time base as Frame.getTimestamp().
Release PointCloud's resources back to ARCore. If too many point clouds are held, additional
calls to Frame.acquirePointCloud() will fail. Calling this method may invalidate any
buffer previously returned by getPoints() or getIds().
This method will be called automatically by close() if the object is acquired in a
Java try-with-resources initializer or Kotlin use statement.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[],[],null,[]]