Page 1 of 1

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

Posted: 2009-09-18T10:38:59-07:00
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.

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

Posted: 2009-09-18T13:03:00-07:00
by magick
We'll add LevelColors() to PerlMagick to the ImageMagick 6.5.6-2 Beta release by sometime tomorrow.