Code from the article Depth estimation from stereo image pairs.
depth-from-stereo.m is a Matlab script to estimate depth from stereo image pairs, using block-matching.
rotating-sphere is a script to create a stereo image pair of points scattered on a sphere, rotating. You can cross your eyes to see the 3D image.