Patent ID: 8218867

Claim:
A compensation method for removing an image noise, for compensating for noises generated by Bayer pattern color interpolation, the compensation method comprising: selecting a partial region in a Bayer pattern to set a selection region; selecting a plurality of color units from the selection region one by one, wherein each of the color units at least comprises a green pixel, a red pixel, and a blue pixel; performing a first color weight adjustment on the green pixel, so as to generate a recovered green filter parameter by a computer processor, wherein the first color weight adjustment is performed on the green pixel (G) according to a following equation, so as to generate the recovered green filter parameter: G recovery =Filter g ( G ); performing a second color weight adjustment on the red pixel by using the recovered green filter parameter, so as to generate a recovered red filter parameter by the computer processor, wherein the second color weight adjustment is performed on the red pixel (R) according to a following equation and the recovered green filter parameter, so as to generate the recovered red filter parameter: R recovery =Filter r ( R,G recovery ); performing a third color weight adjustment on the blue pixel by using the recovered green filter parameter and the recovered red filter parameter, so as to generate a recovered blue filter parameter by the computer processor, wherein the third color weight adjustment is performed on the blue pixel (B) according to a following equation, the recovered green filter parameter, and the recovered red filter parameter, so as to generate the recovered blue filter parameter: B recovery =Filter b ( B,R recovery ,G recovery ); performing a color compensation method on a pixel at a corresponding position according to the recovered green filter parameter, the recovered red filter parameter, and the recovered blue filter parameter by the computer processor; and in the above equations, G recovery , R recovery , and B recovery respectively represent the recovered green filter parameter, the recovered red filter parameter, and the recovered blue filter parameter, and Filter g , Filter r , and Filter b respectively represent a green-pass filter, a red-pass filter, and a blue-pass filter.