Public
Authored by Alexander von Bernuth 😄

Where Matlab lacks units

Disparity to Depth Calculation

The Cityscapes dataset contains disparity maps that have to be converted to depth manually. The README says:

precomputed disparity depth maps. To obtain the disparity values, compute for each pixel p with p > 0: d = ( float(p) - 1. ) / 256., while a value p = 0 is an invalid measurement

With the right formula this may be converted to depth in meter. Units would help making this calculation correctly. I suffixed the variables with the units and checked each calculation manually.

cityscapes.m 180 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment