Find an algorithm for creating 3D anaglyphs using a depth map image

3dalgorithms

I'm looking for a generic algorithm to calculate a red/cyan anaglyph starting from the original image and its black/white depth map, as in this example?

That algorithm is used, for example, in Photoshop but I can't find a readable explanation to reproduce it.

Best Answer

This paper might be helpful. It focuses on outdoor/landscapes scenes. The following is an excerpt from the paper's abstract:

This paper presents a new unsupervised technique aimed to generate stereoscopic views estimating depth information from a single input image. Using a single input image, vanishing points/lines are extracted using a few heuristics to generate an approximated depth map. The depth map is then used to generate stereo pairs.

Related Topic