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.15.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 propertyIsDisposed
Public propertySize
Get the size of the point cloud (total number of points)
Public propertyTransformationMatrix
Return the current transformation matrix of this point cloud
Public propertyWidth
Get the width of the point cloud (number of columns)
Top
Methods
  NameDescription
Public methodClone
Returns a clone of the point cloud. The clone will include a copy of all of the point cloud data on the compute device memory. This means that the returned point cloud will not be affected by subsequent modifications (such as transform or downsample) on the original point cloud.
Public methodCopyColorsBGRA
Point colors (BGRA) as a byte array of rank 3 with size height * width * 4
Public methodCopyColorsBGRA_SRGB
Point colors (BGRA in sRGB color space) 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 methodCopyColorsRGBA_SRGB
Point colors (RGBA in sRGB color space) as a byte array of rank 3 with size height * width * 4
Public methodCopyColorsSRGB
Point colors (RGBA in sRGB color space) as a byte array of rank 3 with size height * width * 4
Public methodCopyImageBGRA
Point colors (BGRA) as a 2D image
Public methodCopyImageBGRA_SRGB
Point colors (BGRA in sRGB color space) as a 2D image
Public methodCopyImageRGBA
Point colors (RGBA) as a 2D image
Public methodCopyImageRGBA_SRGB
Point colors (RGBA in sRGB color space) as a 2D image
Public methodCopyImageSRGB
Point colors (RGBA in sRGB color space) 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 methodCopyPointsXYZColorsBGRA_SRGB
Get PointXYZColorBGRA_SRGB 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 methodCopyPointsXYZColorsRGBA_SRGB
Get PointXYZColorRGBA_SRGB 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 methodShallowCopy
Returns a shallow copy of the point cloud. The copy will share the point cloud data with the original point cloud instance. This means that modifications to the point cloud data in the copy will also affect the original point cloud instance.
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