File Exchange

image thumbnail

anaglyph - ver 2.0

version 1.0.0.0 (2.54 KB) by Iari-Gabriel Marino
anaglyph('filename') displays an anaglyph obtained by two stereoscopical images.

2 Downloads

Updated 06 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

Comments and Ratings (2)

Brett Bathel

The code is very limited in terms of inputs. Has anyone else written a better code?

Brett Shoelson

Hi Iari,
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.

Updates

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

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

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor