Click or drag to resize

PointCloud Class

Point cloud with x, y, z, RGB color and SNR laid out on a 2D grid
Inheritance Hierarchy
SystemObject
  Zivid.NETPointCloud

Namespace:  Zivid.NET
Assembly:  ZividCoreNET (in ZividCoreNET.dll) Version: 2.14.0.0
Syntax
public class PointCloud : IDisposable

The PointCloud type exposes the following members.

Constructors
  NameDescription
Public methodPointCloud
Initializes a new instance of the PointCloud class
Public methodPointCloud(PointCloud*)
Initializes a new instance of the PointCloud class
Top
Properties
  NameDescription
Public propertyEmpty
Check if the point cloud is empty
Public propertyHeight
Get the height of the point cloud (number of rows)
Public propertySize
Get the size of the point cloud (total number of points)
Public propertyWidth
Get the width of the point cloud (number of columns)
Top
Methods
  NameDescription
Public methodCopyColorsBGRA
Point colors (BGRA) as a byte array of rank 3 with size height * width * 4
Public methodCopyColorsRGBA
Point colors (RGBA) as a byte array of rank 3 with size height * width * 4
Public methodCopyColorsSRGB
Point colors (sRGB) as a byte array of rank 3 with size height * width * 4
Public methodCopyImageBGRA
Point colors (BGRA) as a 2D image
Public methodCopyImageRGBA
Point colors (RGBA) as a 2D image
Public methodCopyImageSRGB
Point colors (sRGB) as a 2D image
Public methodCopyNormalsXYZ
Normal vectors (x, y, and z) as a float array of rank 3 with size height * width * 3
Public methodCopyPointsXYZ
Point coordinates (x, y, and z) as a float array of rank 3 with size height * width * 3
Public methodCopyPointsXYZColorsBGRA
Get PointXYZColorBGRA as an array of rank 2 with size height * width
Public methodCopyPointsXYZColorsRGBA
Get PointXYZColorRGBA as an array of rank 2 with size height * width
Public methodCopyPointsXYZW
Point coordinates as 4D (homogeneous coordinates) as a float array of rank 3 with size height * width * 4
Public methodCopyPointsZ
Point Z values as a 2D float array of size height * width
Public methodCopySNRs
Get signal-to-noise ratio (SNR) values as a 2D float array of size height * width
Public methodDispose
Releases all resources used by the PointCloud
Public methodDownsample
Downsample the point cloud in-place
Public methodDownsampled
Get a downsampled point cloud
Public methodToString
Get string representation of the PointCloud
(Overrides ObjectToString.)
Public methodTransform(Single)
Transform the point cloud in-place by the given 4x4 transformation matrix, represented as a 2D array
Public methodTransform(Matrix4x4)
Transform the point cloud in-place by the given 4x4 transformation matrix
Top
Remarks
An instance of this class is a handle to a point cloud stored on the compute device memory. This class provides several methods to copy point cloud data from the compute device memory to host (CPU) system memory (RAM). If this point cloud is the result of a 2D+3D capture, then the point cloud RGB colors will be set from the captured 2D color image. If different pixel sampling (resolution) settings for 2D and 3D were used, or if the point cloud is upsampled or downsampled, then the RGB colors will be resampled to correspond 1:1 with the 3D point cloud resolution. To get the original resolution 2D color image from the 2D+3D capture, see the `Frame2D` property of the Frame class. If this point cloud is the result of a 3D-only capture, then the RGB colors will be set to a uniform default color.
See Also