Subject: | add a method to compose an image from source channels |
perhaps something like:
# output uses im2 channel 0 as channel 0, im1 channel 1 as
# channel 1, im1 channel 2 as channel 2
my $out = Imager->compose_channels(images=>[ $im1, $im2,... ],
sources => [ 1, 0, 0 ],
channels => [ 0, 1, 2 ]);
Would be nice to be able to combine the values too, which would require
a 3d matrix (indexed by output channel, source channel, source image).