2D to 3D conversion into account that more distant objects, besides being hazy, should be more desaturated and more bluish because of a thick air layer. The idea of the method is based on the fact that parallel lines, such as railroad tracks and roadsides, appear to converge with distance, eventually reaching a vanishing point at the horizon. Finding this vanishing point gives the farthest point of the whole image. The more the lines converge, the farther away they appear to be. So, for depth map, the area between two neighboring vanishing lines can be approximated with a gradient plane. 2D to 3D conversion
Distance from a point to a plane Distance from a point to a plane In Euclidean space, the point on a plane formula_1 that is closest to the origin has the Cartesian coordinates formula_2, where The distance between the origin and point formula_2 is formula_5. If what is desired is the distance from a point not at the origin to the nearest point on a plane, this can be found by a change of variables that moves the origin to coincide with the given point. Suppose we wish to find the nearest point on a plane to the point (formula_6), where the plane is given by formula_7.