Vislab example code

Here are a couple of examples.

Code to read in stereo image pairs (will read in a pair of files specified on the command line or will read in files listed in a list file). Source is viewer.c and you need two headers Tga.h and Texture.h. Compile with gcc viewer.c -lm -lglut. Run with a.out image1 image2 -f -ss.

Here are a couple of sample images left_035.tga` and right_035.tga.

` Code to create a coloured triangle triangle.c. Compile with gcc triangle.c -lm -lglut. Run with a.out -f -ss. Note: to really appreciate depth you probably need to rotate (as well as wearing the 3D glasses). To rotate, hold any mouse key down and move the mouse.