Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms


Xpounded AnaStereo

Image Scripting: Anaglyph Production Comparisons



This code is copyright Robert Spoons 2006
Want to use it - great, give credit.
Want to expand upon it - great, give credit.
Want to talk about it - great, give credit.
Not really asking for much- great, give credit.
Thanks.
Using nothing but script to manipulate images...

This script shows 8 ways to create an anaglyph from a stero picture.


With small modification the script can combine 2 seperate image views in place of a stereo image.

USE:


You use the script by dragging and dropping a 24-bit bmp file onto it.
First the script will examine its own parent folder looking for a subfolder with the same name as the dropped file. If it can not find such a folder, it will create one.
Second, the script will do a simple analysis on the dropped image file and report its size, width, and height.
Third, the script will start manipulating the data contained in the dropped image.
It will create 8 new images from the dropped image. Each an anaglyph
At all 8 production steps the script will save the anaglyph image in the folder named after the originating image.

    Types of Analyps Produced:
  • Least Squares Approximation
  • True
  • Gray
  • Color
  • Half Color
  • Optimized
  • PhotoShop
  • Direct Red-Cyan

Matrix data for Least Squares Approximation is from the PDF file: Computing Anaglyphs using Least Squares Approximation in CIE Color Space

Matrix data for True, Grey, Color, Half Color, and Optimized is from the web site: 3dtv Anaglyph Comparison Methods

PhotoShop is the method of creating a Red filtered image of the left image and a Cyan filtered image of the right, and then combining them into an anaglyph. (A red filtered image is the same as the cyan channel of the image, and a cyan filtered image is the same as the red channel).

Direct Red-Cyan is reading the Blue and Green byte data directly from the left view at a pixel oridnal, reading the Red byte data from the right view at the same pixel ordinal, and creating a new color from that triplet to be placed at the same pixel ordinal in a new image - the anaglyph.



Requirements: Windows 98+, WSH 5.6+ (VBS), Stereograph Image File in 24-bit BMP format.

Tested on XP Home edition SP2, IE6 installed. (Not tested with IE7 installed)

Additional Requirements: Red-Blue Glasses to view Anaglyphs.


Save this file to your system as AnaStereoCompare.vbs

  Select All

No HTML to View

- Copyright 2006 Xpounded -
All JS code developed by Xpounded is developed in RHSCoder.
All VBS code developed by Xpounded is developed in VBS QuickDev IDE, or RHSCoder.
Privacy Statement