Click or drag to resize

UnorganizedPointCloudCopyPointsXYZW Method

Point coordinates as 4D (homogeneous coordinates) as a float array of rank 2 with size Size * 4

Namespace:  Zivid.NET
Assembly:  ZividCoreNET (in ZividCoreNET.dll) Version: 2.17.1.0
Syntax
public float[,] CopyPointsXYZW()

Return Value

Type: Single
Rank 2 float array of XYZW point coordinates
Remarks
This method copies the point coordinates (as 4D homogeneous coordinates) from compute device memory to host (CPU) system memory (RAM) and returns them in a float array. Note that W is always set to 1.0. First dimension indexes the points of the point cloud (0 to Size - 1), and second dimension is x/y/z/w (x=0, y=1, z=2, w=3). For example, to get x coordinate of the point at index 50 in the point cloud, use [50, 0].
See Also