anaglyph - ver 2.0

anaglyph('filename') displays an anaglyph obtained by two stereoscopical images.
3.7K Downloads
Updated 6 Nov 2006

View License

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

Outputs (optional):
the figure handle to the anaglyph

Notes:
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

Example:
anaglyph('foto3d.bmp')

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: iarigabriel.marino@fis.unipr.it
Website: http://www.fis.unipr.it/raman/index2.htm
Personal: http://www.fis.unipr.it/home/marino/
November 2006; Last revision: 6-Nov-2006

Cite As

Iari-Gabriel Marino (2024). anaglyph - ver 2.0 (https://www.mathworks.com/matlabcentral/fileexchange/4977-anaglyph-ver-2-0), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

Version 2.0 NEWS
- now plots also images in memory
- with no args, opens a dialog to choose the image
- zoom function