Skip to main content Link Search Menu Expand Document (external link)

depthtocolor method

:electric_plug: dp.kinect2
:information_source: signature
depthtocolor DEPTH_U DEPTH_V DEPTH_Z [DEPTH_U DEPTH_V DEPTH_Z...]
:house: values
depthtocolor COLOR_U COLOR_V
:bulb: examples
depthtocolor 850 105

Transform depth pixel UVZ to color UV coordinates where U is column, V is row, and Z is depth. The result is affected by the values of: @distmeter, @flipx, and @align.

Examples

# single depth coordinate
depthtocolor 110 85 2.4    <- one UVZ depth coordinate sent to inlet
depthtocolor 850 105       <- one UV color coordinate received from outlet

# multiple depth coordinates
depthtocolor 110 85 2.4 380 250 1.5   <- multiple UVZ depth coordinates sent to inlet
depthtocolor 850 105 1450 650         <- multiple UV color coordinates received from outlet