level-colors to convert grayscale to 'false color' image?

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
greensencha

level-colors to convert grayscale to 'false color' image?

Post by greensencha »

Hello,

I have a set of gray scale images produced on a piece of lab equipment which has its own built-in image viewer that provides the following 'False Color' image displays: Blue-Green, Green-Blue, Blue-Red, Red-Blue, Red-Green, Green-Red

I believe to duplicate this effect, the function I want to apply is 'level-colors': http://www.imagemagick.org/Usage/color/#level-colors

From what I see, this 'level-colors' option doesn't appear to be available within PerlMagick (only 'level' appears under http://www.imagemagick.org/script/perl- ... manipulate )

Can anyone point me in the right direction:
- Does 'level-colors' exist within PerlMagick under another name?
- Can I simulate 'level-colors' within PerlMagick using other commands?
- I have tried the Fx operator, but I don't believe I'm using it correctly (it's not producing a colorized effect) or that it would provide the same effect as 'level-colors', e.g.

my $image = Image::Magick-new;
$image->Read("grascale.tiff");
$image->ReadImage('xc:green');
$image->[1]->Set(size=>'1x1');
$image->[0]->Fx(expression=>'u*v.p{0,0}');

- As a last resort, should I try to Recolor using Lookup tables? http://www.imagemagick.org/Usage/color/#color_lut
- Other options?

Thank you.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: level-colors to convert grayscale to 'false color' image?

Post by magick »

We'll add LevelColors() to PerlMagick to the ImageMagick 6.5.6-2 Beta release by sometime tomorrow.
Post Reply