I see. That's too bad. It would make sense to have some functionality like that in imagemagick for indexed images. Should be super fast regardless of the size of the image (but I guess that the size of the colormap should matter).
I have a b&w UInt8 image (in.png) and a colormap with 256 ordered colors (colormap.png). I want to recolor the b&w image according to the colormap. I'm very happy with: convert in.png colormap.png -clut out.png but I was wondering if it wouldn't be a lot faster to just switch the internal colormap ...
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 ...
I'm trying to recolor a B&W image using the clut operator, but while: convert in.png cmap.png -fx 'v.p{0,u*v.h}' out.png does the job (slowly), this: convert in.png cmap.png -clut out2.png does not. I really want the result to look like out.png, with `-fx 'v.p{0,u*v.h}'`, and thought the clut would ...