This function interprets imageData as a height-map and converts it to a random dot stereogram. A random dot stereogram is an image that can be perceived as 3-dimensional by viewing it in the proper way. For more information on random dot sterograms, see http://en.wikipedia.org/wiki/Autostereogram
The algorithm used is abSIRD, published in 2004 by Lewey Geselowitz. It is a fast, in-place algorithm that is exquisitely simple to implement. For more information, see http://www.leweyg.com/download/SIRD/index.html
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.