Method of Obtaining a Depth Map from a Digital Image