Depth Map

Dhaval_nandu2010's Avatar, Join Date: Sep 2010
Newbie Member
Can anybody help me to get an algorithm for generating depth map from an image...... Please
xpi0t0s's Avatar, Join Date: Aug 2004
One way is to assign specific colours (or greyscale values) to specific depths. For example red=1, orange=2, yellow=3, green=4, blue=5. It's a bit trickier if a looping sequence means a continued slope, e.g. if ROYGBROYGB means a slope from 1 to 10, but you'll know if that's the case from the nature of the project.