Cooperative algorithm for solving random-dot stereograms

Solves random-dot stereograms based on Marr & Poggio (1976) cooperative algorithm
11 Downloads
Updated 18 Apr 2025

View License

This function solves random dot stereograms (based on two pictures, one for each eye) using an implementarion of Marr and Poggio (1976; 10.1126/science.968482) cooperative algorithm. It is chiefly meant to be used as an educational tool for courses on topics related to visual perception.
The function outputs a plot with the amount of disparities relative to the horopter (0 on the Z axes): Positive/negative values indicate surfaces closer/farther away to the observer (resulting, respectively, from crossed or uncrossed binocular disparities). It also saves the state of the disparities for each iteration on a 4D matrix (Image width × Image height × Disparity × Iteration).

Cite As

Nuno De Sá Teixeira (2025). Cooperative algorithm for solving random-dot stereograms (https://se.mathworks.com/matlabcentral/fileexchange/180833-cooperative-algorithm-for-solving-random-dot-stereograms), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2024b
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.2

Range of z-axes were changed to reflect disparities relative to the horopter. Description was extended and citation corrected.

1.0.1

Tags updated and description font altered

1.0.0