How to apply color palette to a grayscale image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
elier_cuba
Posts: 1
Joined: 2013-10-24T11:49:17-07:00
Authentication code: 6789

How to apply color palette to a grayscale image

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to apply color palette to a grayscale image

Post 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
Post Reply