Patent ID: 6912004

Claim:
An image processing method comprising: dividing an image into a matrix of pixels for holding color values; forming a first set of pixels that are positioned adjacent to a selected pixel; calculating a first variation value; forming a second set of pixels that are positioned adjacent to the selected pixel; calculating a second variation value; comparing the first and second variation values and selecting the set of pixels having a lowest variation value; and calculating a first color value of the selected pixel by calculating the first color value from first color values of the selected set of pixels, wherein said calculating a first variation value and said calculating a second variation value respectively comprise calculating a ratio between first color values and second color values of abutting pixels of the respective set of pixels, calculating a mean value of the calculated ratios, and calculating a variation value of the respective set of pixels as a sum of an absolute value of a difference between each of the ratios and the mean value.