Patent ID: 8417030

Claim:
A method of image edge enhancement, comprising: determining edge trend for an image in accordance with second order gradient value of a center pixel in different directions; performing interpolation operation with the center pixel, and calculating absent color components of pixels; and performing edge enhancement for the image in accordance with original color component of the center pixel and the edge trend of the image based on Bayer data, wherein the step of determining edge trend for an image in accordance with second order gradient value of a center pixel in different directions further comprises: determining a second order gradient value H in the horizontal direction and a second order gradient value V in the vertical direction of the center pixel by a 3×5 Bayer matrix and a 5×3 Bayer matrix; determining a second order gradient value X in the 135 degree direction and a second order gradient valve Y in the 45 degree direction of the center pixel by a 5×5 Bayer matrix; comparing, respectively, a maximum Max — HV and a minimum Min — HV of H and V and a maximum Max — XY and a minimum Min — XY of X and Y with a predefined flat region threshold value TH — flat ; if both Max — HV and Max — XY are smaller than TH — flat , treating the center pixel as a pixel in a flat region; if at least one of Max — HV and Max — XY is larger than or equal to TH — flat , comparing Min — HV with Min — XY ; if Min — HV <Min — XY and H−V<−TH — edge , treating the center pixel as a pixel on a horizontal edge; if Min — HV <Min — XY and H−V>TH — edge , treating the center pixel as a pixel on a vertical edge; if Min — HV >Min — XY and X−Y<−TH — edge , treating the center pixel as a pixel on an edge of 135 degree; and if Min — HV >Min — XY and X−Y>TH — edge , treating the center pixel as a pixel on an edge of 45 degree.