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 line length of this projection is given by: Now, thus Since "Q" is a point on the line, formula_27, and so, It is possible to produce another expression to find the shortest distance of a point to a line. This derivation also requires that the line is not vertical or horizontal. The point P is given with coordinates (formula_29). The equation of a line is given by formula_30. The equation of the normal of that line which passes through the point P is given formula_31. The point at which these two lines intersect is the closest point on the original line