I have a color table that has custom (255) values for red, green, and blue like this:
Code: Select all
red = [ 0, 2, 3, 5 ...
green = [ 0, 1, 1, 2 ...
blue = [ 50, 50, 50, 70 ...
For example,
Code: Select all
rgb(1,50,100) gets replaced by rgb(2,50,100) because red[1] = "2"
rgb(0, 0, 0) gets replaced by rgb(0, 0, 50) because blue[0] = "50" etc...
Does ImageMagick have an easy way to do this? I can easily change the formatting of my table to allow for the replacement.
Thanks!