stereogram

Random Dot Stereogram
2.9K 次下载
更新时间 2007/5/8

查看许可证

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.

引用格式

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

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

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