I also recently made an FTLK based GUI that can show a real time image from 2 cameras and allow a single button click to make a snapshot and 3 buttons for
creating stop motion animation. Probably doesn?t compile easily outside
of my build system and requires my AVI library from
http://www.mikekohn.net/file_formats/libkohn_avi.php and FLTK2. If anyone wants to try and compile it the
source is here:
anaglyph_fltk-2011-01-30.tar.gz
Here are two Playstation 3 cameras I used to make the image and stop
motion video below.
The image before running through the stereogram program.
The image after running through the stereogram program
The way this program works is, for every line of the image it creates
a random pattern of colored dots (with a default length of 30 dots)
and repeats this pattern across the image. Any place that you want
to pop forward, you add an extra dot to the pattern and anywhere you
want to appear further away from the viewer, you remove a dot from the
pattern. Note that the pattern of dots keep the same colors, there's
just one more dot (of a random color) or one less. Sorry for the bad
explanation :(. Anyway, the stereogram program has 2 options:
Note that the input and output files must be BMP's. If you wanted the
pattern of pixels to be 40 instead of 30 and you wanted to remove/add
7 pixels from the image in a depth change, you could type:
Note: The version from February 2005 had a bug where it was
creating the bmp images wrong, especially if the input image wasn't
a multiple of 4. This should be fixed in the November 2, 2005 version.
Btw, I actually did this program in assembly language as a college
assignment when I was in school. We were given a choice what platform
and language we wanted to write it in, so to make the project more
fun I wrote it in assembly for DOS as a TSR (terminate and stay
resident). You can see my old code here if you are interested:
tstereo.asm or a slightly
simpler version that doesn't work as a TSR:
stereo.asm.