ANAGLYPH - displays an anaglyph obtained by two stereoscopical images
anaglyph with no arguments, opens a dialog to pick an image which contains
two stereoscopical images in a single image file.
anaglyph('filename') displays an anaglyph of the image "filename"
(with extension), which contains two stereoscopical images in a single
image file (bmp, jpg, or other supported image type).
anaglyph('filename1', 'filename2') displays an anaglyph from the two images
"filename1", "filename2" (with extension) one for the right eye and one for the left one.
anaglyph(A) displays an anaglyph of the image A, in memory, which contains two stereoscopical images in a single image
file (bmp, jpg, or other supported image type).
anaglyph(A,B) displays an anaglyph from the two images A and B, in memory,
(with extension) one for the right eye and one for the left one.
Inputs: one or two names of image files or of matlab variables
the figure handle to the anaglyph
One can swap the two images during the visualization.
Version 2.0 NEWS
- now plots also images in memory
- with no args, opens a dialog to choose image
- zoom function
Other m-files required: none
Subfunctions: plotAnaglyph, swap
MAT-files required: none
See also: stereoview
Author: Iari-Gabriel Marino, Ph.D., nonlinear optics
University of Parma, Dept. of Physics, ITALY
email address: email@example.com
November 2006; Last revision: 6-Nov-2006
The code is very limited in terms of inputs. Has anyone else written a better code?
Your code is nice an succinct; it would benefit from expanded support for inputs...an interface to select images, working with images already in the workspace, etc. Also, please modify the keyword field to include 'stereo.' I'd bet you will see a lot more action on this nice file.
Version 2.0 NEWS
Create scripts with code, output, and formatted text in a single executable document.