Plascolin - Create Anaglyph Red-Blue Pictures with Linux

Home

The Genesis Toolkit

Stereo 3D
 Plascolin
 Jac
 Stereo Povray
 3D Digital Photo
 1954th Stereo Photo
 Slidebar 3D Photo

Linux

Projects

Gallery

Download

Links

Imprint

Email:
Latest update
March 14 2010 13:18:50
countercountercountercountercountercounter

Plascolin

Plascolin is a Linux X11 tool to create and to view anaglyph stereo images or to display the left and right image on separate output devices (e.g. projectors).
There are lot of applications like this for M$-Win, but i have not seen one for Linux. So i decided to write my own linux stereo application.


Features:
  • Fullscreen view mode
  • Easy load of next/previous image pairs
  • Zoomable display
  • JPEG support
  • Additional separate display windows for the adjusted left and right images
  • Vertical mirror function for left & right display windows
  •        Planned Features:
  • Copy EXIF-Data from one source to resulting anaglyph image
  • Export of the adjusted right or left image
  • Export of the adjusted image pair as cross view stereo image pair
  • Export of the adjusted image pair as parallel view stereo image pair
  • ...


  • Feature requests and/or bug reports are always welcome.




    Download:      plascolin-0.01.01.tar.gz      Mar,12 2006:





    File Handling
    The open-button opens a file selection dialog. Select and load the left image of an image pair (supported file format is JPEG). The right image is supposed to be the next one in the alphabetical sorted list of files in the same directory.

    04110001-l.jpg
    04110001-r.jpg
    04120001-l.jpg
    04120001-r.jpg
       :   :
       :   :
    04140023-l.jpg
    04140023-r.jpg
    
    If the names of your image pairs are prepared like this example you can use the easy load of image pairs feature.
    That means, choosing
    04110001-l.jpg   as left file, the application assumes
    04110001-r.jpg   to be the matching right one because it is the next one in the alphabetical sorted list. Both are opened as a pair.
    I use to convert the image file names with a shell script. (See below 'Renaming the files')

    There are buttons to load the next or previous image pair (you can also use the page-up page-down keys)


    Stereo Pair Adjustment
    Once both images where loaded you can shift the left and right images using the arrow keys to adjust the stereo window. The offset will be stored (even on program exit or restart).
    Since my images are all from the same stereo camera with a fixed stereo base, the offset for both images of a pair is always the same. You can view all images in the directory without re-adjusting them.



    Viewing
    Pressing the f key switches to full screen viewing mode.
    Use esc to switch back to normal window mode.

    The anaglyph display shows the resulting red-cyan anaglyph .
    A zooming function is available by buttons or keys:
    + zoom in   
    - zoom out   
    z zoom to fit

    The resulting anaglyph can be saved using the save-button or by key s.
    A subfolder 'stereos' will be created in the folder where the image pairs are.
    The resulting anaglyph will be written to that subfolder 'stereos'. The filename is the same as the name of the left file.





    Stereo Polarized Projection with two projectors
    Since version 0.01.01 you can open separate display windows for the adjusted left and right images.

    Each window can be switched into fullscreen view by button f (and back to normal window view by esc).

    This feature was intended for a dualhead display setup. Putting each window on a separate display and activating the fullscreen mode you can use it together with two projectors to project them to a screen.

    I'm very interrested in reports of using this method. If you have some information or experiences please let me know.



    Dual Monitor Viewing
    For each of the windows there is a mirror function to flip the image horizontaly. This enables another simple stereo display variant described by Prof. John Hart on his website: DUAL MONITOR VIEWING OF DIGITAL STEREO PAIRS







    Renaming the files:
    My images are mainly originated from two digital cameras.
    The right and the left camera are configured to write exactly the same file names for the images belonging to one stereo pair.
    To view them easily with Plascolin I rename the files to the right scheme.


    Step 1: Copy the images from the each camera to separate directories:
    At this stage all images of a stereo-pair have the same name, but in different directories.
    Left camera images residing
    in the left directory:
    Right camera images residing
    in the right directory:
    04110001.jpg
    04120001.jpg
    : :
    04110001.jpg
    04120001.jpg
    : :


    Step 2: Rename the files:
    I run a shell script in each directory to rename the files:
    Script to rename the left images: suffix-l.sh Script to rename the right images: suffix-r.sh
    for i in *.jpg      
    do
     mv $i $(basename $i .jpg)-l.jpg
    done
    for i in *.jpg
    do
     mv $i $(basename $i .jpg)-r.jpg
    done

    Now the filenames have changed:
    04110001-l.jpg
    04120001-l.jpg
    : :
    04110001-r.jpg
    04120001-r.jpg
    : :


    Step 3: Move the files:
    Now move all images into a final destination directory and you're ready to view them with Plascolin.
    That works very fast even for hundreds of image pairs.
    04110001-l.jpg
    04110001-r.jpg
    04120001-l.jpg
    04120001-r.jpg
       :   :
       :   :
    04140023-l.jpg
    04140023-r.jpg
    


    Joerg Schrammel - - Duisburg Germany