Yay, it worked! Thanks!
After reading some more, I realized that I might want to do something slightly different (let me know if I should post a new question). I want the following to happen:
Each pixel in the out.png image looks up what RGB value it needs to have by using the corresponding pixel in the in.png image as an index in a look-up-table (which is the cmap.png). This means that the LUT has exactly 256 unique colors for a UInt8 in.png image. While this may accomplish the (almost) exact same thing as the -clut operator, it seems to me like it would be much much faster. Is there something like that in imagemagick?
clut question
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: clut question
I split your topic into two. Perhaps what you want is -recolor. See http://www.imagemagick.org/Usage/quantize/#remap
EDIT: I meant -remap, not -recolor
EDIT: I meant -remap, not -recolor
Re: clut question
This worked really well. I checked the remap operator before, but what I needed was the recolor. Thanks a bunch!!!
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: clut question
Sorry, I wrote -recolor, but meant (and linked to) -remap. -recolor is quite different and now called -color-matrix. See http://www.imagemagick.org/script/comma ... lor-matrix