Color Replacement... question on -clut
Posted: 2009-01-19T15:43:20-07:00
I have a grayscale image that's for levels of gray (-colors 4)
I want to replace each of those colors with 4 colors from a lookup table -clut
The problem I'm having is the some of the gray colors are close to each other and the output image only ends up with 2 colors... ie. it won't use all 4 colors.
convert input.gif \( clut.gif \) -interpolate Integer -clut output.gif
I've tried normalizing or equalizing. Is there an easy way to replace the 4 colors or balance the image?
I don't want to have to parse the colors of the image then individually replace.
I want to replace each of those colors with 4 colors from a lookup table -clut
The problem I'm having is the some of the gray colors are close to each other and the output image only ends up with 2 colors... ie. it won't use all 4 colors.
convert input.gif \( clut.gif \) -interpolate Integer -clut output.gif
I've tried normalizing or equalizing. Is there an easy way to replace the 4 colors or balance the image?
I don't want to have to parse the colors of the image then individually replace.