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