From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
The cloud of points structure consists in two 1D arrays of points and RGB colors. The color array has a length corresponding to the product of the image dimensions you selected. The point arrays has 3X that size (because of the X, Y, Z components for each point). You can reshape the arrays into 2D but you have to take the 3X size into account. Below is an example of how you can do it using the 480x270 resolution:
The result is show below in the RGB image and the corresponding Z-value image.
Notice that the depth sensor has a resolution of 512x424, meaning that using the 1920x1080 image resolution gives a better RGB resolution but position information remains 512x424 (about 10 pixels of the RGB images will have the same X-Y-Z value, in average).