Image enhancement method and image enhancement apparatus
AssigneeRealtek Semiconductor Corp.
InventorsKAI LIU, WEN-TSUNG HUANG
Life of this patent
Estimating the term…
Abstract
Disclosed are an image enhancement method and an image enhancement apparatus which can realize the edge enhancement for an image generated after a demosaicing process according to local characteristics of an input image (i.e. the image sharpening) and can realize the brightness noise suppression and the chroma noise suppression for the image. Thus, by using the image enhancement method and the image enhancement apparatus provided by the present disclosure, clear images can be generated.
Claims20
An image enhancement method, adapted to an image enhancement apparatus, comprising:
- sequentially obtaining pixels of an input image in a YUV color space, wherein each pixel includes a Y pixel, a U pixel and a V pixel;
- executing a low-pass filtering process with respect to a target Y pixel and a plurality of adjacent pixels of the target Y pixel to generate a first low-pass pixel;
- determining whether the target Y pixel is an edge pixel according to a total gradient variation, wherein when the target Y pixel is the edge pixel, the low-pass filtering process is executed according to an orientation of the edge pixel with respect to the target Y pixel and the adjacent pixels corresponding to the orientation to generate a second low-pass pixel;
- determining whether the target Y pixel is a thin edge pixel, wherein when the target Y pixel is not the thin edge pixel, an edge response between the target Y pixel and the adjacent pixels is calculated according to a first mask, but when the target Y pixel is a thin edge pixel, the edge response between the target Y pixel and the adjacent pixels is calculated according to a second mask, and the edge response calculated according to the second mask is larger than the edge response calculated according to the first mask;
- calculating an enhanced pixel corresponding to the total gradient variation and the edge response according to an enhancement function;
- and
- adding the enhanced pixel to the second low-pass pixel to generate an output Y pixel.
An image enhancement apparatus, comprising:
- an image capturing device, sequentially obtaining pixels of an input image in a YUV color space, wherein each pixel includes a Y pixel, a U pixel and a V pixel;
- and
- an image processor, electrically connected to the image capturing device, wherein the image processor is configured to:
- receive each pixel of the input image in the YUV color space;
- execute a low-pass filtering process with respect to a target Y pixel and a plurality of adjacent pixels of the target Y pixel to generate a first low-pass pixel;
- determine whether the target Y pixel is an edge pixel according to a total gradient variation, wherein when the target Y pixel is the edge pixel, the low-pass filtering process is executed according to an orientation of the edge pixel with respect to the target Y pixel and the adjacent pixels corresponding to the orientation to generate a second low-pass pixel;
- determine whether the target Y pixel is a thin edge pixel, wherein when the target Y pixel is not the thin edge pixel, an edge response between the target Y pixel and the adjacent pixels is calculated according to a first mask, but when the target Y pixel is a thin edge pixel, the edge response between the target Y pixel and the adjacent pixels is calculated according to a second mask, and the edge response calculated according to the second mask is larger than the edge response calculated according to the first mask;
- calculate an enhanced pixel corresponding to the total gradient variation and the edge response according to an enhancement function;
- and
- add the enhanced pixel to the second low-pass pixel to generate an output Y pixel.
Dependencies are inferred from the claim text.