6.3 Creating a depth map by means of image conversion into monochrome
In cases, foreground objects are brighter than background ones, the image itself may be used as a depth map.
Create a gray scale copy of the source image (Fig. 6.9), apply a Blur filter to it, correct brightness and contrast. A depth map is gotten as a result (Fig. 6.10)
Figure 6.9. Source image
Figure 6.10. Depth map
There is a colored anaglyph image, gotten from a pair of generated frames on the in figure 6.11. In order to see the 3D effect, use anaglyph glasses .
Figure 6.11. Anaglyph image gotten by means of using the depth map