harmonize the color palette of several pictures
Posted: 2011-03-22T23:23:28-07:00
i have several pictures with 8 bit color depth, i.e. with a palette of 256 colors, that i would like to merge to a single picture.
as each of the pictures has another color palette, and the final picture does not have to increase the total color depth, i would like to harmonize the color palette of all pictures before merging.
i.e.
1. extract the color palette from all pictures, with a weight that tells me how often a color is used
2. generate a common color palette, more or less covering all relevant colors of all pictures
3. apply this palette to all pictures
is there a way to do this in an automated way using imagemagick?
or is there another way to do this?
thank you very much!
as each of the pictures has another color palette, and the final picture does not have to increase the total color depth, i would like to harmonize the color palette of all pictures before merging.
i.e.
1. extract the color palette from all pictures, with a weight that tells me how often a color is used
2. generate a common color palette, more or less covering all relevant colors of all pictures
3. apply this palette to all pictures
is there a way to do this in an automated way using imagemagick?
or is there another way to do this?
thank you very much!