Click or drag to resize

PointCloudCopyColorsBGRA Method

Point colors (BGRA) as a byte array of rank 3 with size height * width * 4

Namespace:  Zivid.NET
Assembly:  ZividCoreNET (in ZividCoreNET.dll) Version: 2.14.0.0
Syntax
public byte[,,] CopyColorsBGRA()

Return Value

Type: Byte
Rank 3 byte array of BGRA color values
Remarks
This method copies the colors from compute device memory to host (CPU) system memory (RAM) and returns them as a byte array. The format of the image will be four channels (B,G,R,A), with 8 bits per channel. The returned byte array holds the same pixel data as the ImageBGRA returned by CopyImageBGRA. However, the ImageBGRA provides additional functionality such as saving the image to a file. This format holds linear color values, which are suitable as input to computer vision algorithms. For showing colors on a display for viewing, consider using the ColorSRGB format.
See Also