stereogram

Random Dot Stereogram
2.9K Downloads
Updated 8 May 2007

View License

stereogram: Random Dot Stereogram

stereogram(A), where A is a monochromatic image, plots the Random Dot Stereogram (RDS) of A. A should be defined as a matrix of doubles, but with integer values. In the stereogram, the regions of A with positive values will seem virtually fly in front of the screen, while those with negative values will seem to be behind the screen. The best maximum range of the values of A is -15,15. The script will NOT autoscale the data, allowing you to set the absolute height of each level with respect to the screen.

stereogram(A,'method') specifies alternate viewing methods.
The default is parallel-eyes method.Available methods are:

'parallel-eyes'
'crossed-eyes'

See http://www.vision3d.com/ to learn viewing stereograms.

The vertical white line in the stereogram helps the visualization. You can remove it to obtain a Single-Image Stereogram.

A Random Dot Stereogram (RDS) is a technique created by Dr. Bela Julesz, described in the book Foundations of Cyclopean Perception. RDS describes a pair of 2D images showing random dots which when viewed with a stereoscope produced a 3D image. When this technique is used to create an Autostereogram (also known as Single-Image Stereogram), a Random-dot autostereogram (SIRDS) is created. (Source: http://en.wikipedia.org/wiki/Random_dot_stereogram)

Please, feel free to contact me and suggest modifications.

Cite As

Iari-Gabriel Marino (2024). stereogram (https://www.mathworks.com/matlabcentral/fileexchange/14859-stereogram), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
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

- Missing function bug fixed
- View method as optional input parameter