Tony Cook > Imager-0.97 > anaglyph.pl

Download:
Imager-0.97.tar.gz

Annotate this POD

Website

CPAN RT

New  39
Open  16
View/Report Bugs
Source   Latest Release: Imager-1.000

NAME ^

anaglyph.pl - create a anaglyph from the source images

SYNOPSIS ^

  # color anaglyph
  perl anaglyph.pl left_input right_input output

  # grey anaglyph
  perl anaglyph.pl -g left_input right_input output
  perl anaglyph.pl --grey left_input right_input output
  perl anaglyph.pl --gray left_input right_input output

  # pure anaglyph (blue)
  perl anaglyph.pl -p left_input right_input output
  perl anaglyph.pl --pure left_input right_input output

  # pure anaglyph (green)
  perl anaglyph.pl -p --green left_input right_input output
  perl anaglyph.pl --pure --green left_input right_input output

DESCRIPTION ^

See http://www.3dexpo.com/anaglyph.htm for an example where this might be useful.

Implementation based on the description at http://www.recordedlight.com/stereo/tutorials/ps/anaglyph/pstut04.htm though obviously the interactive component is missing.

CAVEAT ^

Using JPEG as the output format is not recommended.

AUTHOR ^

Tony Cook <tonyc@cpan.org>

Thanks to Dan Oppenheim, who provided the impetus for this sample.

REVISION ^

$Revision$

syntax highlighting: