Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Playing with Materials > 2D image manipulation

2D image manipulation

In this recipe, we will show you how to edit an image on the fly. We will create an anaglyph image from a pair of stereo images. Anaglyph images are used to provide a stereoscopic 3D effect, when viewed with red and blue.

Getting ready

To follow along with this recipe, open the solution located in the Recipes/Chapter05 folder in the code bundle available on the Packt website.

Grab a pair of trendy 3D eyeglasses with red and blue plastic lenses.

Getting ready

You will also need two stereo images so take a photo for the left-eye picture, and then slide the camera about 7 to 8 cm to the right, for the right-eye picture.

The following is the image for the left eye:

Getting ready

The next image is for the right eye.

Getting ready

Name the files Left.jpg and Right.jpg, put the pictures in the media/stereo folder, and add the line FileSystem=../../media/stereo to resources.cfg.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint