Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 11872
Status: resolved
Priority: 40/
Queue: Imager

People
Owner: Nobody in particular
Requestors: TONYC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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).
It's probably best to just supply the images, for example: my $out = Imager->compose_channels(images=>[ $im2, $im1, $im1 ], channels => [ 0, 1, 2 ]);
Implemented with the combine() method in Imager 0.79.