Patent ID: 7382917

Claim:
A method for texture compressing images having a plurality of color components (R, G, B), including defining color representatives for use in encoding, the method comprising: defining groups of colors for each said color component (R,G,B) for one of said images; selecting, for each said group of colors, a representative median color; computing a length value as a maximum quantization error adapted to be computed when pixel Pij colors are quantized during an encoding step; computing a Euclidean distance Dist ij=√(|R ij −min medianR| 2 +|G ij −min medianG| 2 +|B ij −min medianB| 2 ) where Rij, Gij, Bij represent the color components of the pixel Pij at the position ij of said image and mim medianR, mim medianG and mim medianB represent the corresponding reference colors of the selected group for each color; and encoding each color as a function of said length value and said Euclidean distance.