摘要 |
A method for performing color gamut compression. The method comprises the steps of: (a)receiving pixels indexed to colors of a first palette, (b)receiving a threshold value, (c)assigning one of the colors of the first palette to a second palette and mapping the assigned color thereto, (d)calculating a difference between the colors of the first palette and the second palette, (e)when the differences are larger than the threshold value, assigning the color of the first palette to the second palette and mapping the assigned color thereto, otherwise, mapping the color of the first palette to the nearest color of the second palette, (f)repeating the steps (d) and (e) for all the colors of the first palette, and (g)re-indexing the pixels according to the mapping between the first and second palette.
|