Méthode | Description | |
---|---|---|
FitPlaneModelNearClick ( Vector3 pointCloud, int pointCount, double timestamp, |
Fits a plane to a point cloud near a user-specified location. This occurs in two passes. First, all points in cloud within maxPixelDistance to uvCoordinates after projection are kept. Then a plane is fit to the subset cloud using RANSAC. After the initial fit all inliers from the original cloud are used to refine the plane model.
|
|
ScreenCooordinateToWorldBilateral ( Vector3 pointCloud, int pointCount, double timestamp, |
Calculates the depth in the color camera space at a user-specified location using bilateral filtering weighted by both spatial distance from the user coordinate and by intensity similarity.
|
|
ScreenCoordinateToWorldNearestNeighbor ( Vector3 pointCloud, int pointCount, double timestamp, |
Calculates the depth in the color camera space at a user-specified location using nearest-neighbor interpolation.
|
|
TangoPoseToWorldTransform ( |
Convert a TangoPoseData into the Unity coordinate system. This only works on TangoPoseData that describes the device with respect to the start of service or area description. The result position and rotation can be used to set Unity's Transform.position and Transform.rotation.
|
|
UpdateCurrentRotationIndex ( ) : void |
Update current rotation index. This function will make a query from native Android and decide what is the current screen orientation.
|
Méthode | Description | |
---|---|---|
GetDepthAtPointNearestNeighbor ( Vector3 pointCloud, int pointCount, double timestamp, |
public static FitPlaneModelNearClick ( Vector3 pointCloud, int pointCount, double timestamp, |
||
pointCloud | Vector3 | /// The point cloud. Cannot be null and must have at least three points. /// |
pointCount | int | /// The number of points to read from the point cloud. /// |
timestamp | double | The timestamp of the point cloud. |
cameraIntrinsics | /// The camera intrinsics for the color camera. Cannot be null. /// | |
matrix | /// Transformation matrix of the color camera with respect to the Unity /// World frame. /// | |
uvCoordinates | Vector2 | /// The UV coordinates for the user selection. This is expected to be /// between (0.0, 0.0) and (1.0, 1.0). /// |
intersectionPoint | Vector3 | /// The output point in depth camera coordinates that the user selected. /// |
plane | The plane fit. | |
Résultat | int |
public static ScreenCooordinateToWorldBilateral ( Vector3 pointCloud, int pointCount, double timestamp, |
||
pointCloud | Vector3 | /// The point cloud. Cannot be null and must have at least one point. /// |
pointCount | int | /// The number of points to read from the point cloud. /// |
timestamp | double | The timestamp of the depth points. |
cameraIntrinsics | /// The camera intrinsics for the color camera. Cannot be null. /// | |
colorImage | /// The color image buffer. Cannot be null. /// | |
matrix | /// Transformation matrix of the color camera with respect to the Unity /// World frame. /// | |
uvCoordinates | Vector2 | /// The UV coordinates for the user selection. This is expected to be /// between (0.0, 0.0) and (1.0, 1.0). /// |
colorCameraPoint | Vector3 | /// The point (x, y, z), where (x, y) is the back-projection of the UV /// coordinates to the color camera space and z is the z coordinate of /// the point in the point cloud nearest to the user selection after /// projection onto the image plane. If there is not a point cloud point /// close to the user selection after projection onto the image plane, /// then the point will be set to (0.0, 0.0, 0.0) and isValidPoint will /// be set to false. /// |
isValidPoint | bool | /// A flag valued true if there is a point cloud point close to the user /// selection after projection onto the image plane and valued false /// otherwise. /// |
Résultat | int |
public static ScreenCoordinateToWorldNearestNeighbor ( Vector3 pointCloud, int pointCount, double timestamp, |
||
pointCloud | Vector3 | /// The point cloud. Cannot be null and must have at least one point. /// |
pointCount | int | /// The number of points to read from the point cloud. /// |
timestamp | double | The timestamp of the depth points. |
cameraIntrinsics | /// The camera intrinsics for the color camera. Cannot be null. /// | |
matrix | /// Transformation matrix of the color camera with respect to the Unity /// World frame. /// | |
uvCoordinates | Vector2 | /// The UV coordinates for the user selection. This is expected to be /// between (0.0, 0.0) and (1.0, 1.0). /// |
colorCameraPoint | Vector3 | /// The point (x, y, z), where (x, y) is the back-projection of the UV /// coordinates to the color camera space and z is the z coordinate of /// the point in the point cloud nearest to the user selection after /// projection onto the image plane. If there is not a point cloud point /// close to the user selection after projection onto the image plane, /// then the point will be set to (0.0, 0.0, 0.0) and isValidPoint will /// be set to false. /// |
isValidPoint | bool | /// A flag valued true if there is a point cloud point close to the user /// selection after projection onto the image plane and valued false /// otherwise. /// |
Résultat | int |
public static TangoPoseToWorldTransform ( |
||
poseData | /// The input pose data that is going to be converted, please note that /// the pose data has to be in the start of service with respect to /// device frame. /// | |
position | Vector3 | The result position data. |
rotation | The result rotation data. | |
Résultat | void |
public static UpdateCurrentRotationIndex ( ) : void | ||
Résultat | void |