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
Skew lines value of the real number formula_4 determining where the point is on the line, and similarly for arbitrary point on the line through particular point in direction . The cross product of b and d is perpendicular to the lines, as is the unit vector The distance between the lines is then (if |b × d| is zero the lines are parallel and this method cannot be used). Expressing the two lines as vectors: Line 1: formula_7 Line 2: formula_8 The cross product of formula_9 and formula_10 is perpendicular to the lines. formula_11 The plane formed by the translations of