Patent ID: 8385642

Claim:
A method for removing color fringe in a digital image, comprising: obtaining a digital image, wherein the digital image is formed of a plurality of pixels; analyzing a separated luminance and chrominance signal of each pixel through specific color detection, luminance detection, and gradient color detection, so as to determine whether color fringe occurs to each pixel in the digital image, and setting the pixel determined to have no color fringe according to results of the specific color detection, the luminance detection, and the gradient color detection as a normal pixel; and setting the pixel determined to have color fringe according to all the results of the specific color detection, the luminance detection, and the gradient color detection as a color fringe pixel; and correcting the color fringe pixel; wherein the specific color detection comprises: analyzing a chrominance value of the separated luminance and chrominance signal of each pixel that is not set according to chrominance ranges of multiple colors; determining that color fringe occurs to the pixel having the chrominance value falling in the chrominance ranges of the multiple colors; and determining that color fringe does not occur to the pixel having the chrominance value falling out of the chrominance ranges of the multiple colors; wherein the luminance detection comprises: analyzing a luminance value of the separated luminance and chrominance signal of each pixel that is not set by using a K×K mask, so as to find a pixel located in a high contrast area and a high luminance area among the pixels that are not set, wherein K is 2x+1, x is a positive integer greater than 1, and the pixel being detected that is not set is located at a center of the K×K mask; and determining that color fringe occurs to the pixel located in the high contrast area and the high luminance area; and wherein the gradient color detection comprises: analyzing the luminance value and the chrominance value of the separated luminance and chrominance signal of each pixel that is not set by using an M×M mask, so as to find a pixel located in a non-smooth area, a gradational color area, an area appearing gradational variation from bright to dark, and an adjacent area appearing bright neutral color among the pixels determined to have no color fringe, wherein M is 2y+1, y is a positive integer greater than 1, and the pixel being detected determined to have no color fringe is located at a center of the M×M mask; and determining that color fringe occurs to the pixel located in the non-smooth area, the gradational color area, the area appearing gradational variation from bright to dark, and the adjacent area appearing bright neutral color.