Page 1 of 1

How to apply color palette to a grayscale image

Posted: 2013-10-25T05:02:42-07:00
by elier_cuba
Hi
I am working with satellite images (an 8-bit grayscale TIFF file), and I am trying to apply it a color palette using IM. The problem is that I need to set a color different ranges of values, for example red for value between 35-65 and blue between 70-75.
I would like some help about this.
Thanks

Re: How to apply color palette to a grayscale image

Posted: 2013-10-25T09:38:35-07:00
by fmw42
Create a 1D image for a lookup table of the colors and apply with -clut.

see
http://www.imagemagick.org/Usage/color_mods/#clut

also an older post about a similar case

viewtopic.php?f=1&t=24193&hilit=clut