Search found 8 matches

by yakir
2015-08-11T02:58:04-07:00
Forum: Users
Topic: replace the colormap of an indexed image
Replies: 8
Views: 4615

Re: replace the colormap of an indexed image

snibgo understands me... :)
I'd rather steer away from proprietary software like Matlab.
Thanks anyhow!!!
by yakir
2015-08-11T02:04:28-07:00
Forum: Users
Topic: replace the colormap of an indexed image
Replies: 8
Views: 4615

Re: replace the colormap of an indexed image

I tried that and it doesn't result in the same thing as:

Code: Select all

convert in.png colormap.png -clut out.png
nor is it faster.
Not sure if I'm doing it right:

Code: Select all

convert in.png -dither None -remap colormap.png out.png
by yakir
2015-08-10T22:30:08-07:00
Forum: Users
Topic: replace the colormap of an indexed image
Replies: 8
Views: 4615

Re: replace the colormap of an indexed image

Do you know of anything that would do that (in linux) by any chance?
by yakir
2015-08-10T21:41:33-07:00
Forum: Users
Topic: replace the colormap of an indexed image
Replies: 8
Views: 4615

Re: replace the colormap of an indexed image

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).
by yakir
2015-08-10T21:20:07-07:00
Forum: Users
Topic: replace the colormap of an indexed image
Replies: 8
Views: 4615

replace the colormap of an indexed image

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 ...
by yakir
2015-08-06T03:25:16-07:00
Forum: Users
Topic: clut question
Replies: 3
Views: 1751

Re: clut question

This worked really well. I checked the remap operator before, but what I needed was the recolor. Thanks a bunch!!!
by yakir
2015-08-05T21:31:50-07:00
Forum: Users
Topic: clut question
Replies: 3
Views: 1751

clut question

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 ...
by yakir
2015-08-05T18:43:26-07:00
Forum: Users
Topic: clut fx 'v.p{0,u*v.h}'
Replies: 4
Views: 2580

clut fx 'v.p{0,u*v.h}'

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 ...