interleave.pl - given two identically sized images create an image twice the height with interleaved rows from the source images.
perl interleave.pl even_input odd_input output
This sample produces an output image with interleaved rows from the two input images.
Multiple implementations are included, including two that revealed bugs or limitations in Imager, to demonstrate some different approaches.
See http://www.3dexpo.com/interleaved.htm for an example where this might be useful.
Tony Cook <tony@imager.perl.org>
Thanks to Dan Oppenheim, who provided the impetus for this sample.
$Revision: 718 $
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.