Patent ID: 8798361

Claim:
A method of mapping colors of an image, the method comprising the steps of: segmenting an image into a plurality of regions, so that pixels in each of said plurality of regions have a characteristic that meets a predetermined similarity; determining an initial contrast between adjacent regions in said plurality of regions by determining a color of a representative point of each of the adjacent regions as said initial colors Cl and C 2 and calculating a difference between said initial colors Cl and C 2 and an initial color C 3 of a border between the adjacent regions in order to determine said initial contrast, wherein determining the initial contrast between adjacent regions in said plurality of regions further comprises: merging at least one of said initial contrasts for adjacent regions having the same initial color; and removing redundant initial contrasts between each of said plurality of regions and its said adjacent regions that have the same initial color; and transforming an initial colors C 1 , C 2 and C 3 of into a target color C 1 ′, C 2 ′ and C 3 ′, respectively; wherein said target colors are selected such that a target contrast between said adjacent regions in said plurality of regions is equal to or greater than said initial contrast and a difference between said target contrast and corresponding initial contrast is less than a predetermined threshold and such that (C 1 -C 3 )/(C 2 -C 3 ) equals (C 1 ′-C 3 ′)/ C 2 ′-C 3 ′); and wherein at least one of the steps is carried out by a computer device.