How to change color based on color tables

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
new

How to change color based on color tables

Post by new »

Hello,

I have a image. The color over sea is bad. I try to replace it.

The colors over sea are something like (20,78,150), (31,94,160). I try to replace them with (15,31,176).

Can anyone tell me the best way to do this?

Thank you very much,

Zitian
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to change color based on color tables

Post by anthony »

The BEST way. mask out everything that is sea. color adjust to get the colors right than re-add them back into the original image.

Using a color replacement will either replace only one color, or replace a range of colors with a flat color. not good.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply