DevceDepth in RGB as capture source


I’ve got a Capture2DComponent set to capture a scene with the DevceDepth in RGB as capture source.

Based on the explanation herre:

I’ve calculated the value of each pixel [0-1].

I Can’t understand how to translate the scalar value from the fraction (between 0 and 1 ) to a real world distance.

I figured that this number will represent the relative distance between near and far clipping, but I can’t get any info regarding the far clipping.

Can anyone help?

Thank you.

Search the code for:


It will give you all clues you need.