CPC G06T 5/70 (2024.01) [G06T 5/20 (2013.01); G06T 5/50 (2013.01); G06T 2207/20024 (2013.01); G06T 2207/20216 (2013.01); G06T 2207/20224 (2013.01)] | 20 Claims |
1. An image enhancement method, comprising:
obtaining an image;
extracting high-frequency components of the image;
calculating an average pixel value of pixels corresponding to the extracted high-frequency components;
performing enhancement on pixels in the image that have pixel values greater than or equal to the calculated average pixel value to obtain an enhanced image;
obtaining a correction coefficient;
calculating a correction threshold according to the obtained correction coefficient and the average pixel value; and
correcting a pixel value of an enhanced pixel that is in the enhanced image and that corresponds to a first pixel when the pixel value of the first pixel is greater than the calculated correction threshold, the first pixel being a pixel in the pixels corresponding to the high-frequency components.
|
11. An image enhancement apparatus, comprising:
processing circuitry configured to
obtain an image;
extract high-frequency components of the image;
calculate an average pixel value of pixels corresponding to the extracted high-frequency components;
perform enhancement on pixels in the image that are determined to be enhanced to obtain an enhanced image;
obtain a correction coefficient;
calculate a correction threshold according to the obtained correction coefficient and the average pixel value; and
correct a pixel value of an enhanced pixel that is in the enhanced image and that corresponds to a first pixel when the pixel value of the first pixel is greater than the calculated correction threshold, the first pixel being a pixel in the pixels corresponding to the high-frequency components.
|
13. A non-transitory computer-readable storage medium, storing one or more first instructions, the one or more first instructions that when executed by processing circuitry cause the processing circuitry to perform:
obtaining an image;
extracting high-frequency components of the image;
calculating an average pixel value of pixels corresponding to the extracted high-frequency components;
performing enhancement on pixels in the image that have pixel values greater than or equal to the calculated average pixel value to obtain an enhanced image;
obtaining a correction coefficient;
calculating a correction threshold according to the obtained correction coefficient and the average pixel value; and
correcting a pixel value of an enhanced pixel that is in the enhanced image and that corresponds to a first pixel when the pixel value of the first pixel is greater than the calculated correction threshold, the first pixel being a pixel in the pixels corresponding to the high-frequency components.
|