anaglyph.pl - create a anaglyph from the source images
# 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
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.
Tony Cook <tony@imager.perl.org>
Thanks to Dan Oppenheim, who provided the impetus for this sample.
$Revision: 719 $
To install Imager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Imager
CPAN shell
perl -MCPAN -e shell install Imager
For more information on module installation, please visit the detailed CPAN module installation guide.