WO2020124808A1 - Image enhancement device and image enhancement method - Google Patents

Image enhancement device and image enhancement method Download PDF

Info

Publication number
WO2020124808A1
WO2020124808A1 PCT/CN2019/077848 CN2019077848W WO2020124808A1 WO 2020124808 A1 WO2020124808 A1 WO 2020124808A1 CN 2019077848 W CN2019077848 W CN 2019077848W WO 2020124808 A1 WO2020124808 A1 WO 2020124808A1
Authority
WO
WIPO (PCT)
Prior art keywords
saturation
image
edge
pixel
value
Prior art date
Application number
PCT/CN2019/077848
Other languages
French (fr)
Chinese (zh)
Inventor
朱江
Original Assignee
深圳市华星光电半导体显示技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市华星光电半导体显示技术有限公司 filed Critical 深圳市华星光电半导体显示技术有限公司
Publication of WO2020124808A1 publication Critical patent/WO2020124808A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/94Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement

Definitions

  • the invention relates to an image enhancement device and an image enhancement method, which can simultaneously enhance the edge and color of an image, improve the efficiency of image enhancement, and avoid the problem of dimming the color of the image edge when the prior art only enhances the edge of the image.
  • image enhancement is usually required in advance.
  • Image enhancement generally includes two types of image edge enhancement and image color enhancement.
  • Image edge enhancement is to process the brightness components of the image edge pixels, so that the image edge is sharper visually and the image is clearer.
  • Image color enhancement is processed for the saturation value of image pixels, making the image color more vivid.
  • the enhancement processes of the image edge enhancement and the image color enhancement are independent of each other.
  • the edge enhancement of the image often causes the brightness of the pixels at the edge of the image to change, while the saturation value and hue value of the pixels do not change. For the image after interpolation and magnification, when the edge of the image is enhanced, the color of the color pixels at the edge will become dark, for example, from bright red to dark red, resulting in a dim color and poor saturation at the edge.
  • the present invention provides an image enhancement device and image enhancement method to solve the technical problems in the prior art.
  • the main object of the present invention is to provide an image enhancement device and an image enhancement method, which can simultaneously enhance the edge and color of the image, improve the image enhancement efficiency, and avoid the existing technology that only causes the image edge to be dim when the image edge is enhanced problem.
  • the image enhancement device of the present invention includes:
  • Computer hardware for inputting an image into the computer hardware, wherein the image includes red, green and blue data;
  • a color conversion module provided in the computer hardware, for converting the red, green, and blue data into hue saturation and brightness data, and for processing the hue of the enhanced image after the image is processed into an enhanced image Saturation brightness data is converted to red, green and blue data;
  • An edge enhancement module provided in the computer hardware, for detecting the plurality of pixels in the input image, to find a plurality of edge pixels from the plurality of pixels, and to detect the plurality of edges Pixel enhancement;
  • a saturation compensation module set in the computer hardware, for compensating the saturation of the edge pixels of the image
  • the edge enhancement module enhances the edge pixels in the image, and the saturation
  • the compensation module compensates the saturation of the edge pixels of the image to form an enhanced image
  • the color conversion module converts the hue saturation luminance data of the enhanced image into red, green, and blue data.
  • the red-green-blue data includes red, green and blue values for each pixel
  • the hue saturation brightness data includes hue values, saturation values and brightness values.
  • the edge enhancement module is used to perform an edge pixel detection step and an edge pixel performance enhancement step;
  • the edge pixel detection step includes the brightness value according to the hue saturation brightness data, Performing brightness identification on the plurality of pixels in the image to find a plurality of edge pixels from the plurality of pixels;
  • the step of enhancing the edge pixel performance includes adjusting the brightness value of the edge pixel so that The difference in brightness between the edge pixel and the adjacent pixel increases.
  • the saturation compensation module is used to perform a saturation average calculation step, a saturation difference calculation step, and a saturation adjustment step;
  • the saturation average calculation step includes each of the images Edge pixels as a central pixel, and calculate the average saturation value of adjacent pixels adjacent to the central pixel;
  • the step of calculating the saturation difference value includes calculating the saturation of the central pixel and the average value of the saturation Saturation difference;
  • the saturation adjustment step includes judging whether the saturation difference is greater than 0, if greater than 0, then increasing the saturation of the central pixel, if less than 0, decreasing the saturation of the central pixel P1 To obtain the enhanced image.
  • the computer hardware includes a central processing unit, a memory, a storage, an input interface, and an output interface electrically connected to each other, and the input interface is used to input the image into the computer hardware , The output interface is used to output the enhanced image.
  • Another object of the present invention is to provide an image enhancement method, including:
  • the image input step includes inputting an image to the computer hardware
  • the first color data conversion step includes converting the input red, green, and blue data of the image into hue saturation brightness data through the computer hardware;
  • the edge pixel detection step includes using the computer hardware to perform brightness identification on the plurality of pixels in the image according to the brightness value in the hue saturation brightness data to find from the plurality of pixels Multiple edge pixels;
  • the step of enhancing the performance of the edge pixel includes adjusting the brightness value of the edge pixel through the computer hardware to increase the difference in brightness between the edge pixel and the adjacent pixel;
  • a saturation compensation step including compensating the saturation of edge pixels of the image through the computer hardware
  • the second color conversion step includes using the computer hardware to convert the hue saturation brightness data contained in the enhanced image into red, green, and blue data.
  • the red-green-blue data includes red, green and blue values for each pixel;
  • the hue saturation brightness data includes hue values, saturation values and brightness values.
  • the saturation compensation step includes:
  • the step of calculating the average value of saturation includes taking each edge pixel of the image as a central pixel and calculating the average value of saturation of adjacent pixels adjacent to the central pixel;
  • a saturation difference calculation step including calculating a saturation difference between the saturation of the central pixel and the average of the saturation
  • the saturation adjustment step includes determining whether the saturation difference is greater than 0. If it is greater than 0, the saturation of the central pixel is increased, and if it is less than 0, the saturation of the central pixel P1 is reduced, thereby obtaining the enhancement image.
  • the computer hardware includes a central processing unit, a memory, a storage, an input interface, and an output interface electrically connected to each other, and the input interface is used to input the image into the computer hardware And the output interface is used to output the enhanced image.
  • the image enhancement method further includes an image output step, including outputting the enhanced image to an electronic device through the output interface of the computer hardware.
  • the image enhancement device and the image enhancement method of the present invention include the following advantages:
  • the input image is enhanced by the edge sharpness of the image through the present invention and compensated by saturation, so that the sharpness of the image can be improved while maintaining the saturation of the pixels at the edge of the image to avoid the image being dim.
  • the calculation formula adopted by the present invention is simple and avoids the calculation burden of the computer hardware being too large, so it can avoid increasing the burden of the computer hardware while improving the image quality.
  • FIG. 1 is a block diagram of the hardware and software architecture of the image enhancement device according to the present invention.
  • FIG. 2 is a schematic diagram of the function execution architecture of the image enhancement device of the present invention.
  • FIG. 3 is a schematic diagram of the processing flow of the image enhancement device of the present invention.
  • FIG. 4 is a schematic diagram of multiple pixels in an image.
  • FIG. 5 is a flowchart of steps of the image enhancement method of the present invention.
  • FIG. 1 is a block diagram of the hardware and software architecture of the image enhancement device according to the present invention.
  • FIG. 2 is a schematic diagram of the function execution architecture of the image enhancement device of the present invention.
  • the image enhancement device of the present invention includes: computer hardware 10, color conversion module 20, edge enhancement module 30, and saturation compensation module 40.
  • the computer hardware 10 includes a central processing unit 11, a memory 12, a storage 13, an input interface 14 and an output interface 15 that are electrically connected to each other.
  • the memory 12 may be a random access dynamic memory 12 (Dynamic Random-access Memory, DRAM).
  • DRAM Dynamic Random-access Memory
  • the storage 13 may be a hard disk (Hard Disk) Drive, HDD) or Solid State Drive (SSD).
  • HDD Hard Disk
  • SSD Solid State Drive
  • the input interface 14 can be an electrical connector, such as a universal serial bus (Universal Serial Bus (USB) electrical connector for inputting an image 16 into the computer hardware 10.
  • the image 16 input to the computer hardware 10 includes a plurality of pixels, and includes red, green, blue (Red, Green, Blue, RGB) data, the RGB data 160 includes a red value, a blue value, and a green value for each pixel.
  • the RGB data 160 may be converted into Hue, Saturation, Lightness (HSL) data.
  • the HSL data includes a hue value H, a saturation value S, and a brightness value L.
  • the image 16 can be stored in the storage 13 after being input into the computer hardware 10 and can be loaded into the memory 12 for processing by the central processor 11.
  • the output interface 15 may be an electrical connector, such as a high-definition multimedia interface (High Definition Multimedia Interface (HDMI) connector, used to output images to external electronic devices, such as liquid crystal display panels.
  • HDMI High Definition Multimedia Interface
  • FIG. 3 is a schematic diagram of the processing flow of the image enhancement device of the present invention.
  • the computer hardware 10 itself may perform the image input step S02, including inputting an image 160 to the computer hardware 10.
  • the color conversion module 20 is provided in the computer hardware 10 and can be stored in the storage 13 for software to convert RGB data 160 into HSL data and to convert HSL data into RGB data 160.
  • the color conversion module 20 can convert the input RGB data 160 of the image 16 into HSL data.
  • the color conversion module 20 may perform a first color data conversion step S03, including converting the input RGB data 160 of the image 16 into HSL data.
  • the edge enhancement module 30 is provided in the computer hardware 10, and may be stored in the storage 13 for software to detect the plurality of pixels in the input image 16 so as to Find a plurality of edge pixels among the plurality of pixels, and perform performance enhancement on the plurality of edge pixels.
  • the edge pixels mentioned here are the pixels on the inner or outer contour of people, objects, and scenes in the image under normal conditions. For example, the pixels on the contour of the boundary between the face and the background in the image are the edges. Pixels.
  • the edge enhancement module 30 may perform the following steps: an edge pixel detection step S04 and an edge pixel performance enhancement step S05.
  • the edge pixel detection step S04 includes performing brightness identification on the plurality of pixels in the image 16 according to the brightness value L in the HSL data to find a plurality of edge pixels from the plurality of pixels .
  • the edge pixel performance enhancement step S05 includes adjusting the brightness value L of the edge pixel to increase the brightness difference between the edge pixel and the adjacent pixel.
  • the adjustment of the brightness value L includes reducing the brightness of the edge pixel to increase the brightness difference between the edge pixel and the adjacent pixel, thereby providing the outline of the people, objects, and scenes included in the image 16 Sharpness.
  • the edge pixel performance enhancement step S05 the brightness difference between the edge pixel and the neighboring pixel can be enlarged, thereby increasing the sharpness of people, objects, and scenes in the image 16.
  • the saturation compensation module 40 is provided in the computer hardware 10 and may be stored in the storage 13 for software to compensate for the saturation of edge pixels of the image 16.
  • the saturation compensation module 40 may perform a saturation compensation step S06, including compensating the saturation of the edge pixels of the image 16.
  • the saturation compensation step S06 includes: a saturation average calculation step S06A, a saturation difference calculation step S06B, and a saturation adjustment step S06C.
  • FIG. 4 is a schematic diagram of a plurality of pixels in the image 16.
  • the saturation average calculation step S06A includes taking each edge pixel of the image 16 as a central pixel P1 (its coordinates are (j, i)), and calculating adjacent pixels adjacent to the central pixel P1
  • the average saturation value of P2 is S_av.
  • the pixel at the center is the edge pixel and also the center pixel P1, and the remaining 8 pixels are adjacent pixels P2.
  • the detailed calculation method is shown in the following equation 1:
  • the saturation difference calculation step S06B includes calculating the saturation difference f_s between the saturation S(j,i) of the central pixel and the saturation average S_av.
  • the detailed calculation method is shown in the following equation 2:
  • the saturation adjustment step S06C includes determining whether the saturation difference value f_s is greater than 0, if f_s>0, then increasing the saturation S(j,i) of the central pixel P1, if f_s ⁇ 0, reducing the The saturation S(j,i) of the central pixel P1 further obtains an enhanced image 16a, as shown in FIG.
  • the computer hardware 10 then converts the HSL data contained in the enhanced image 16a into RGB data 160.
  • the computer hardware may perform a second color conversion step S07, including converting the HSL data contained in the enhanced image 16a into RGB data 160.
  • the computer hardware 10 outputs the enhanced image 16a to the electronic device 50 through the output interface 15, for example, to a liquid crystal display panel, then the image presented by the electronic device 50 is enhanced and has appropriate sharpness Degree and saturation image 16a.
  • the computer hardware 10 may perform an image output step S08, including the enhanced image 16a being output to the electronic device 50 through the output interface 15 of the computer hardware 10.
  • the image enhancement method includes: a computer providing step S01, an image input step S02, a first color data conversion step S03, an edge pixel detection step S04, an edge pixel performance enhancement step S05, a saturation compensation step S06, a second color conversion step S07 And the image output step S08.
  • the computer providing step S01 includes providing a computer hardware 10 as shown in FIG. 1.
  • the image input step S02 includes inputting an image 160 to the computer hardware 10.
  • the first color data conversion step S03 includes using the computer hardware 10 to convert the input RGB data 160 of the image 16 into HSL data.
  • the edge pixel detection step S04 includes, through the computer hardware 10, performing brightness recognition on the plurality of pixels in the image 16 according to the brightness value L in the HSL data, so as to select from the plurality of pixels Find multiple edge pixels.
  • the edge pixel performance enhancement step S05 includes adjusting the brightness value L of the edge pixel by the computer hardware 10, so that the brightness difference between the edge pixel and the adjacent pixel is increased.
  • the saturation compensation step S06 includes compensating the saturation of the edge pixels of the image 16 through the computer hardware 10.
  • the saturation compensation step S06 includes the above-mentioned saturation average calculation step S06A, saturation difference calculation step S06B, and saturation adjustment step S06C.
  • the second color conversion step S07 includes using the computer hardware 10 to convert the HSL data contained in the enhanced image 16a into RGB data 160.
  • the image output step S08 includes outputting the enhanced image 16 a to the electronic device 50 through the output interface 15 of the computer hardware 10 through the computer hardware 10.
  • the image enhancement device and the image enhancement method of the present invention include the following advantages:
  • the input image is enhanced by the edge sharpness of the image through the present invention and compensated by saturation, so that the sharpness of the image can be improved while maintaining the saturation of the pixels at the edge of the image to avoid the image being dim.
  • the calculation formula adopted by the present invention is simple and avoids the calculation burden of the computer hardware being too large, so it can avoid increasing the burden of the computer hardware while improving the image quality.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

Disclosed is an image enhancement device, comprising: computer hardware, a color conversion module, an edge enhancement module, and a saturation compensation module. An image is input to the computer hardware and comprises RGB (red, green, blue) data. The color conversion module converts the RGB data into HSL (hue, saturation, lightness) data, and after the image has been enhanced, the color conversion module can be used to convert HSL data of the enhanced image into RGB data. The edge enhancement module inspects a plurality of pixels in the input image so as to locate a plurality of edge pixels from the plurality of pixels, and performs performance enhancement on the plurality of edge pixels. The saturation compensation module performs compensation on saturation of the edge pixels of the image. The edge enhancement module and the saturation compensation module perform enhancement on edges of the image, and prevent the saturation of the edge pixels of the image from decreasing.

Description

图像增强装置及图像增强方法Image enhancement device and image enhancement method 技术领域Technical field
本发明关于一种图像增强装置及图像增强方法,其可同时增强图像的边缘及色彩,提高图像增强效率,并且避免现有技术在仅对增强图像边缘时导致图像边缘色彩黯淡的问题。The invention relates to an image enhancement device and an image enhancement method, which can simultaneously enhance the edge and color of an image, improve the efficiency of image enhancement, and avoid the problem of dimming the color of the image edge when the prior art only enhances the edge of the image.
背景技术Background technique
图像在计算机或相关电子装置的采集,传输以及转换的过程中,由于各因素的影响,图像质量可能下降,导致所述图像上会出现边缘模糊以及颜色变淡等现象。因此,图像在被显示到一液晶显示面板上之前,通常需要预先进行图像增强。During the collection, transmission, and conversion of images in a computer or related electronic devices, due to the influence of various factors, the image quality may be reduced, resulting in the phenomenon of blurred edges and pale colors on the image. Therefore, before an image is displayed on a liquid crystal display panel, image enhancement is usually required in advance.
图像增强一般包括图像边缘增强和图像色彩增强两种类型。图像边缘增强是针对图像边缘像素的亮度分量进行处理,使图像的边缘视觉上更加锐利,图像更加清晰。图像色彩增强是针对图像像素的饱和度值进行处理的,使图像色彩更加鲜艳。在现有技术中,上述图像边缘增强和图像色彩增强的增强过程是相互独立的。图像的边缘增强常使图像边缘处像素的亮度发生变化,而像素的饱和度值和色相值不发生变化。对于插值放大后的图像,当图像边缘增强后,其边缘处彩色像素颜色会变暗,比如从鲜红将变为暗红,导致边缘处色彩黯淡且饱和度变差。Image enhancement generally includes two types of image edge enhancement and image color enhancement. Image edge enhancement is to process the brightness components of the image edge pixels, so that the image edge is sharper visually and the image is clearer. Image color enhancement is processed for the saturation value of image pixels, making the image color more vivid. In the prior art, the enhancement processes of the image edge enhancement and the image color enhancement are independent of each other. The edge enhancement of the image often causes the brightness of the pixels at the edge of the image to change, while the saturation value and hue value of the pixels do not change. For the image after interpolation and magnification, when the edge of the image is enhanced, the color of the color pixels at the edge will become dark, for example, from bright red to dark red, resulting in a dim color and poor saturation at the edge.
故,有必要提供一种图像增强装置及图像增强方法,以解决现有技术所存在的问题。Therefore, it is necessary to provide an image enhancement device and image enhancement method to solve the problems in the prior art.
技术问题technical problem
有鉴于现有技术欠缺同时对图像的边缘及色彩增强的方法的技术问题,本发明提供一种图像增强装置及图像增强方法,以解决现有技术的技术问题。In view of the lack of technical problems in the prior art for simultaneously enhancing the edges and colors of the image, the present invention provides an image enhancement device and image enhancement method to solve the technical problems in the prior art.
技术解决方案Technical solution
本发明的主要目的在于提供一种图像增强装置及图像增强方法,其可同时增强图像的边缘及色彩,提高图像增强效率,并且避免现有技术在仅对增强图像边缘时导致图像边缘色彩黯淡的问题。The main object of the present invention is to provide an image enhancement device and an image enhancement method, which can simultaneously enhance the edge and color of the image, improve the image enhancement efficiency, and avoid the existing technology that only causes the image edge to be dim when the image edge is enhanced problem.
为达上述目的,本发明图像增强装置包括:To achieve the above objective, the image enhancement device of the present invention includes:
计算机硬件,用于供一图像输入到所述计算机硬件中,其中所述图像包括红绿蓝色数据;Computer hardware for inputting an image into the computer hardware, wherein the image includes red, green and blue data;
色彩转换模块,设置在所述计算机硬件,用于将所述红绿蓝色数据转换为色相饱和度亮度数据,且在所述图像被处理为增强图像后,用于将所述增强图像的色相饱和度亮度数据转换为红绿蓝色数据;A color conversion module, provided in the computer hardware, for converting the red, green, and blue data into hue saturation and brightness data, and for processing the hue of the enhanced image after the image is processed into an enhanced image Saturation brightness data is converted to red, green and blue data;
边缘增强模块,设置在所述计算机硬件,用于检测所输入的所述图像中的所述多个像素,以从所述多个像素中找出多个边缘像素,并且对所述多个边缘像素进行增强;以及An edge enhancement module, provided in the computer hardware, for detecting the plurality of pixels in the input image, to find a plurality of edge pixels from the plurality of pixels, and to detect the plurality of edges Pixel enhancement; and
饱和度补偿模块,设置在所述计算机硬件,用于补偿所述图像的边缘像素的饱和度;A saturation compensation module, set in the computer hardware, for compensating the saturation of the edge pixels of the image;
其中,所述色彩转换模块将所述图像的所述红绿蓝色数据转换为色相饱和度亮度数据后,所述边缘增强模块对所述图像中的所述边缘像素增强,且所述饱和度补偿模块补偿所述图像的边缘像素的饱和度以形成增强图像,最后所述色彩转换模块再将所述增强图像的所述色相饱和度亮度数据转换为红绿蓝色数据。After the color conversion module converts the red, green, and blue data of the image into hue saturation brightness data, the edge enhancement module enhances the edge pixels in the image, and the saturation The compensation module compensates the saturation of the edge pixels of the image to form an enhanced image, and finally the color conversion module converts the hue saturation luminance data of the enhanced image into red, green, and blue data.
在本发明的一实施例中,所述红绿蓝色数据包括每一像素的红色值、绿色值以及蓝色值,且所述色相饱和度亮度数据包括色相值、饱和度值以及亮度值。In an embodiment of the invention, the red-green-blue data includes red, green and blue values for each pixel, and the hue saturation brightness data includes hue values, saturation values and brightness values.
在本发明的一实施例中,所述边缘增强模块用于执行边缘像素检测步骤以及边缘像素性能增强步骤;所述边缘像素检测步骤包括依据所述色相饱和度亮度数据中的所述亮度值,对所述图像中所述多个像素进行亮度辨识,以从所述多个像素中找出多个边缘像素;所述边缘像素性能增强步骤包括对所述边缘像素进行亮度值的调整,以使所述边缘像素与相邻像素之间的亮度差值增大。In an embodiment of the present invention, the edge enhancement module is used to perform an edge pixel detection step and an edge pixel performance enhancement step; the edge pixel detection step includes the brightness value according to the hue saturation brightness data, Performing brightness identification on the plurality of pixels in the image to find a plurality of edge pixels from the plurality of pixels; the step of enhancing the edge pixel performance includes adjusting the brightness value of the edge pixel so that The difference in brightness between the edge pixel and the adjacent pixel increases.
在本发明的一实施例中,所述饱和度补偿模块用于执行饱和度均值计算步骤、饱和度差值计算步骤以及饱和度调整步骤;所述饱和度均值计算步骤包括将所述图像的每个边缘像素作为一中央像素,并计算与所述中央像素相邻的相邻像素的饱和度均值;所述饱和度差值计算步骤包括计算所述中央像素的饱和度与所述饱和度均值的饱和度差值;所述饱和度调整步骤包括判断饱和度差值是否大于0,如果大于0,则增大所述中央像素的饱和度,如果小于0,则减少所述中央像素P1的饱和度,进而得到所述增强图像。In an embodiment of the present invention, the saturation compensation module is used to perform a saturation average calculation step, a saturation difference calculation step, and a saturation adjustment step; the saturation average calculation step includes each of the images Edge pixels as a central pixel, and calculate the average saturation value of adjacent pixels adjacent to the central pixel; the step of calculating the saturation difference value includes calculating the saturation of the central pixel and the average value of the saturation Saturation difference; the saturation adjustment step includes judging whether the saturation difference is greater than 0, if greater than 0, then increasing the saturation of the central pixel, if less than 0, decreasing the saturation of the central pixel P1 To obtain the enhanced image.
在本发明的一实施例中,所述饱和度均值计算步骤依据如下等式:S_av = ( S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S(j+1,i-1) + S(j+1,i) + S(j+1,i+1)) / 8;其中,S_av为饱和度均值,S(j-1,i-1)、S(j-1,i)、S(j-1,i+1)、S(j,i-1)、S(j,i+1)、S(j+1,i-1)、S(j+1,i)、S(j+1,i+1))为所述相邻像素的饱和度值。In an embodiment of the invention, the saturation average calculation step is based on the following equation: S_av = (S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S(j+1,i-1) + S(j+1,i) + S (j+1,i+1))/8; where S_av is the average saturation, S(j-1,i-1), S(j-1,i), S(j-1,i+1 ), S(j,i-1), S(j,i+1), S(j+1,i-1), S(j+1,i), S(j+1,i+1) ) Is the saturation value of the adjacent pixel.
在本发明的一实施例中,所述饱和度差值计算步骤依据如下等式:f_s = S(j, i) - S_av;其中,S(j, i)为所述中央像素的饱和度值,f_s为饱和度差值。In an embodiment of the present invention, the saturation difference calculation step is based on the following equation: f_s = S(j, i)-S_av; where S(j, i) is the saturation value of the central pixel , F_s is the saturation difference.
在本发明的一实施例中,所述计算机硬件包括相互电连接的中央处理器、记忆体、储存器、输入介面以及输出介面,所述输入介面用于输入所述图像到所述计算机硬件中,所述输出介面用于输出所述增强图像。In an embodiment of the invention, the computer hardware includes a central processing unit, a memory, a storage, an input interface, and an output interface electrically connected to each other, and the input interface is used to input the image into the computer hardware , The output interface is used to output the enhanced image.
本发明另一目的在于提供一种图像增强方法,包括:Another object of the present invention is to provide an image enhancement method, including:
计算机提供步骤,包括提供计算机硬件;Computer provision steps, including provision of computer hardware;
图像输入步骤,包括输入一图像到所述计算机硬件;The image input step includes inputting an image to the computer hardware;
第一色彩数据转换步骤,包括通过所述计算机硬件,将所输入的所述图像的红绿蓝色数据转换为色相饱和度亮度数据;The first color data conversion step includes converting the input red, green, and blue data of the image into hue saturation brightness data through the computer hardware;
边缘像素检测步骤,包括通过所述计算机硬件,依据所述色相饱和度亮度数据中的所述亮度值,对所述图像中所述多个像素进行亮度辨识,以从所述多个像素中找出多个边缘像素;The edge pixel detection step includes using the computer hardware to perform brightness identification on the plurality of pixels in the image according to the brightness value in the hue saturation brightness data to find from the plurality of pixels Multiple edge pixels;
边缘像素性能增强步骤,包括通过所述计算机硬件,对所述边缘像素进行亮度值的调整,以使所述边缘像素与相邻像素之间的亮度差值增大;The step of enhancing the performance of the edge pixel includes adjusting the brightness value of the edge pixel through the computer hardware to increase the difference in brightness between the edge pixel and the adjacent pixel;
饱和度补偿步骤,包括通过所述计算机硬件,补偿所述图像的边缘像素的饱和度;以及A saturation compensation step, including compensating the saturation of edge pixels of the image through the computer hardware; and
第二色彩转换步骤,包括通过所述计算机硬件,将所述增强图像所含的色相饱和度亮度数据转换为红绿蓝色数据。The second color conversion step includes using the computer hardware to convert the hue saturation brightness data contained in the enhanced image into red, green, and blue data.
在本发明的一实施例中,所述红绿蓝色数据包括每一像素的红色值、绿色值以及蓝色值;所述色相饱和度亮度数据包括色相值、饱和度值以及亮度值。In an embodiment of the invention, the red-green-blue data includes red, green and blue values for each pixel; the hue saturation brightness data includes hue values, saturation values and brightness values.
在本发明的一实施例中,所述饱和度补偿步骤包括:In an embodiment of the invention, the saturation compensation step includes:
饱和度均值计算步骤,包括将所述图像的每个边缘像素作为一中央像素,并计算与所述中央像素相邻的相邻像素的饱和度均值;The step of calculating the average value of saturation includes taking each edge pixel of the image as a central pixel and calculating the average value of saturation of adjacent pixels adjacent to the central pixel;
饱和度差值计算步骤,包括计算所述中央像素的饱和度与所述饱和度均值的饱和度差值;以及A saturation difference calculation step, including calculating a saturation difference between the saturation of the central pixel and the average of the saturation; and
饱和度调整步骤,包括判断饱和度差值是否大于0,如果大于0,则增大所述中央像素的饱和度,如果小于0,则减少所述中央像素P1的饱和度,进而得到所述增强图像。The saturation adjustment step includes determining whether the saturation difference is greater than 0. If it is greater than 0, the saturation of the central pixel is increased, and if it is less than 0, the saturation of the central pixel P1 is reduced, thereby obtaining the enhancement image.
在本发明的一实施例中,所述饱和度均值计算步骤依据如下等式:S_av = ( S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S(j+1,i-1) + S(j+1,i) + S(j+1,i+1)) / 8,其中,S_av为饱和度均值,S(j-1,i-1)、S(j-1,i)、S(j-1,i+1)、S(j,i-1)、S(j,i+1)、S(j+1,i-1)、S(j+1,i)、S(j+1,i+1))为所述相邻像素的饱和度值。In an embodiment of the invention, the saturation average calculation step is based on the following equation: S_av = (S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S(j+1,i-1) + S(j+1,i) + S (j+1,i+1)) / 8, where S_av is the average saturation, S(j-1,i-1), S(j-1,i), S(j-1,i+1 ), S(j,i-1), S(j,i+1), S(j+1,i-1), S(j+1,i), S(j+1,i+1) ) Is the saturation value of the adjacent pixel.
在本发明的一实施例中,所述饱和度差值计算步骤依据如下等式:f_s = S(j, i) - S_av,其中,S(j, i)为所述中央像素的饱和度值,f_s为饱和度差值。In an embodiment of the present invention, the saturation difference calculation step is based on the following equation: f_s = S(j, i)-S_av, where S(j, i) is the saturation value of the central pixel , F_s is the saturation difference.
在本发明的一实施例中,所述计算机硬件包括相互电连接的中央处理器、记忆体、储存器、输入介面以及输出介面,所述输入介面用于输入所述图像到所述计算机硬件中,且所述输出介面用于输出所述增强图像。In an embodiment of the invention, the computer hardware includes a central processing unit, a memory, a storage, an input interface, and an output interface electrically connected to each other, and the input interface is used to input the image into the computer hardware And the output interface is used to output the enhanced image.
在本发明的一实施例中,所述图像增强方法进一步包括图像输出步骤,包括所述增强图像通过所述计算机硬件的所述输出介面输出到电子装置。In an embodiment of the present invention, the image enhancement method further includes an image output step, including outputting the enhanced image to an electronic device through the output interface of the computer hardware.
有益效果Beneficial effect
相较于现有技术,本发明图像增强装置以及图像增强方法包括下列优点:Compared with the prior art, the image enhancement device and the image enhancement method of the present invention include the following advantages:
1. 所输入的所述图像,透过本发明进行图像边缘的锐利度增强后以饱和度补偿后,可使图像锐利度提升并同时保持图像边缘像素的饱和度,避免图像黯淡。1. The input image is enhanced by the edge sharpness of the image through the present invention and compensated by saturation, so that the sharpness of the image can be improved while maintaining the saturation of the pixels at the edge of the image to avoid the image being dim.
2. 本发明所采用的算式简易,避免计算机硬件的计算负担过大,因此可在提升图像品质的同时,避免加重计算机硬件的负担。2. The calculation formula adopted by the present invention is simple and avoids the calculation burden of the computer hardware being too large, so it can avoid increasing the burden of the computer hardware while improving the image quality.
为让本发明的上述内容能更明显易懂,下文特举优选实施例,配合所附图式,作详细说明如下:In order to make the above content of the present invention more comprehensible, the preferred embodiments are described below in detail in conjunction with the attached drawings, as follows:
附图说明BRIEF DESCRIPTION
图1为本发明所述的图像增强装置的硬件与软件架构方块示意图。FIG. 1 is a block diagram of the hardware and software architecture of the image enhancement device according to the present invention.
图2为本发明图像增强装置的功能执行架构示意图。FIG. 2 is a schematic diagram of the function execution architecture of the image enhancement device of the present invention.
图3为本发明图像增强装置的处理流程示意图。FIG. 3 is a schematic diagram of the processing flow of the image enhancement device of the present invention.
图4为为图像中的多个像素的示意图。4 is a schematic diagram of multiple pixels in an image.
图5为本发明图像增强方法的步骤流程图。5 is a flowchart of steps of the image enhancement method of the present invention.
本发明的实施方式Embodiments of the invention
请参照图1及图2,图1为本发明所述的图像增强装置的硬件与软件架构方块示意图,图2为本发明图像增强装置的功能执行架构示意图。本发明图像增强装置包括:计算机硬件10、色彩转换模块20、边缘增强模块30、饱和度补偿模块40。Please refer to FIGS. 1 and 2. FIG. 1 is a block diagram of the hardware and software architecture of the image enhancement device according to the present invention. FIG. 2 is a schematic diagram of the function execution architecture of the image enhancement device of the present invention. The image enhancement device of the present invention includes: computer hardware 10, color conversion module 20, edge enhancement module 30, and saturation compensation module 40.
所述计算机硬件10包括相互电连接的中央处理器11、记忆体12、储存器13、输入介面14以及输出介面15。The computer hardware 10 includes a central processing unit 11, a memory 12, a storage 13, an input interface 14 and an output interface 15 that are electrically connected to each other.
所述记忆体12可为随机存取动态记忆体12(Dynamic Random-access Memory, DRAM)。The memory 12 may be a random access dynamic memory 12 (Dynamic Random-access Memory, DRAM).
所述储存器13可为硬碟(Hard Disk Drive, HDD)或是固态硬碟(Solid State Drive, SSD)。The storage 13 may be a hard disk (Hard Disk) Drive, HDD) or Solid State Drive (SSD).
所述输入介面14可为电连接器,例如通用序列汇流排(Universal Serial Bus, USB)电连接器,用于输入一图像16到所述计算机硬件10中。所输入到所述计算机硬件10的图像16包括多个像素,且包括红绿蓝色(Red, Green, Blue, RGB)数据,所述RGB数据160包括每一像素的红色值、蓝色值以及绿色值。所述RGB数据160可被转换为色相饱和度亮度(Hue, Saturation, Lightness, HSL)数据,所述HSL数据包括色相值H、饱和度值S以及亮度值L。此外,所述图像16被输入到所述计算机硬件10后可储存在所述储存器13中,并可被载入所述记忆体12中以供所述中央处理器11进行处理。The input interface 14 can be an electrical connector, such as a universal serial bus (Universal Serial Bus (USB) electrical connector for inputting an image 16 into the computer hardware 10. The image 16 input to the computer hardware 10 includes a plurality of pixels, and includes red, green, blue (Red, Green, Blue, RGB) data, the RGB data 160 includes a red value, a blue value, and a green value for each pixel. The RGB data 160 may be converted into Hue, Saturation, Lightness (HSL) data. The HSL data includes a hue value H, a saturation value S, and a brightness value L. In addition, the image 16 can be stored in the storage 13 after being input into the computer hardware 10 and can be loaded into the memory 12 for processing by the central processor 11.
所述输出介面15可为电连接器,例如高画质多媒体介面(High Definition Multimedia Interface, HDMI)连接器,用于输出图像到外部电子装置,例如液晶显示面板。The output interface 15 may be an electrical connector, such as a high-definition multimedia interface (High Definition Multimedia Interface (HDMI) connector, used to output images to external electronic devices, such as liquid crystal display panels.
请参照图3,为本发明图像增强装置的处理流程示意图。详细而言,所述计算机硬件10本身可执行图像输入步骤S02,包括输入一图像160到所述计算机硬件10。Please refer to FIG. 3, which is a schematic diagram of the processing flow of the image enhancement device of the present invention. In detail, the computer hardware 10 itself may perform the image input step S02, including inputting an image 160 to the computer hardware 10.
所述色彩转换模块20,设置在所述计算机硬件10中,可为软件而储存于所述储存器13中,用于将RGB数据160转换为HSL数据,且用于将HSL数据转换为RGB数据160。所述色彩转换模块20可将所输入的所述图像16的RGB数据160转换为HSL数据。详细而言,所述色彩转换模块20可执行第一色彩数据转换步骤S03,包括将所输入的所述图像16的RGB数据160转换为HSL数据。The color conversion module 20 is provided in the computer hardware 10 and can be stored in the storage 13 for software to convert RGB data 160 into HSL data and to convert HSL data into RGB data 160. The color conversion module 20 can convert the input RGB data 160 of the image 16 into HSL data. In detail, the color conversion module 20 may perform a first color data conversion step S03, including converting the input RGB data 160 of the image 16 into HSL data.
所述边缘增强模块30,设置在所述计算机硬件10中,可为软件而储存于所述储存器13中,用于检测所输入的所述图像16中的所述多个像素,以从所述多个像素中找出多个边缘像素,并且对所述多个边缘像素进行性能增强。这里所提到的边缘像素,是一般状况下可以是所述图像中人、物、景的内部或是外部轮廓上的像素,例如图像中人脸与背景交界处的轮廓上的像素即是边缘像素。此外,详细而言,所述边缘增强模块30可执行下列步骤:边缘像素检测步骤S04以及边缘像素性能增强步骤S05。The edge enhancement module 30 is provided in the computer hardware 10, and may be stored in the storage 13 for software to detect the plurality of pixels in the input image 16 so as to Find a plurality of edge pixels among the plurality of pixels, and perform performance enhancement on the plurality of edge pixels. The edge pixels mentioned here are the pixels on the inner or outer contour of people, objects, and scenes in the image under normal conditions. For example, the pixels on the contour of the boundary between the face and the background in the image are the edges. Pixels. In addition, in detail, the edge enhancement module 30 may perform the following steps: an edge pixel detection step S04 and an edge pixel performance enhancement step S05.
所述边缘像素检测步骤S04包括依据所述HSL数据中的所述亮度值L,对所述图像16中所述多个像素进行亮度辨识,以从所述多个像素中找出多个边缘像素。The edge pixel detection step S04 includes performing brightness identification on the plurality of pixels in the image 16 according to the brightness value L in the HSL data to find a plurality of edge pixels from the plurality of pixels .
所述边缘像素性能增强步骤S05包括对所述边缘像素进行亮度值L的调整,以使所述边缘像素与相邻像素之间的亮度差值增大。一般而言,亮度值L的调整包括降低所述边缘像素的亮度以使所述边缘像素与相邻像素的亮度差值增大,进而提供图像16中所包括的人、物、景的轮廓的锐利度。透过所述边缘像素性能增强步骤S05可扩大所述边缘像素与相邻像素之间的亮度差值,进而增加所述图像16中人、物、景的锐利度。The edge pixel performance enhancement step S05 includes adjusting the brightness value L of the edge pixel to increase the brightness difference between the edge pixel and the adjacent pixel. Generally speaking, the adjustment of the brightness value L includes reducing the brightness of the edge pixel to increase the brightness difference between the edge pixel and the adjacent pixel, thereby providing the outline of the people, objects, and scenes included in the image 16 Sharpness. Through the edge pixel performance enhancement step S05, the brightness difference between the edge pixel and the neighboring pixel can be enlarged, thereby increasing the sharpness of people, objects, and scenes in the image 16.
所述饱和度补偿模块40,设置在所述计算机硬件10中,可为软件而储存于所述储存器13中,用于补偿所述图像16的边缘像素的饱和度。详细而言,所述饱和度补偿模块40可执行饱和度补偿步骤S06,包括补偿所述图像16的边缘像素的饱和度。详细而言,所述饱和度补偿步骤S06包括:饱和度均值计算步骤S06A、饱和度差值计算步骤S06B以及饱和度调整步骤S06C。The saturation compensation module 40 is provided in the computer hardware 10 and may be stored in the storage 13 for software to compensate for the saturation of edge pixels of the image 16. In detail, the saturation compensation module 40 may perform a saturation compensation step S06, including compensating the saturation of the edge pixels of the image 16. In detail, the saturation compensation step S06 includes: a saturation average calculation step S06A, a saturation difference calculation step S06B, and a saturation adjustment step S06C.
请参照图4,其为所述图像16中的多个像素的示意图。所述饱和度均值计算步骤S06A包括将所述图像16的每个边缘像素作为一中央像素P1(其座标为(j, i)),并计算与所述中央像素P1相邻的相邻像素P2的饱和度均值S_av。例如,图4中所示出的3 x 3矩阵中的9个像素中,中心位置的像素便是所述边缘像素,也是所述中央像素P1,而其余8个像素即是相邻像素P2。详细计算方式如下列等式1:Please refer to FIG. 4, which is a schematic diagram of a plurality of pixels in the image 16. The saturation average calculation step S06A includes taking each edge pixel of the image 16 as a central pixel P1 (its coordinates are (j, i)), and calculating adjacent pixels adjacent to the central pixel P1 The average saturation value of P2 is S_av. For example, among the 9 pixels in the 3 x 3 matrix shown in FIG. 4, the pixel at the center is the edge pixel and also the center pixel P1, and the remaining 8 pixels are adjacent pixels P2. The detailed calculation method is shown in the following equation 1:
等式1:S_av = ( S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S(j+1,i-1) + S(j+1,i) + S(j+1,i+1)) / 8。Equation 1: S_av = ( S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S (j+1,i-1) + S(j+1,i) + S(j+1,i+1)) / 8.
所述饱和度差值计算步骤S06B包括计算所述中央像素的饱和度S(j,i)与所述饱和度均值S_av的饱和度差值f_s。详细计算方式如下列等式2:The saturation difference calculation step S06B includes calculating the saturation difference f_s between the saturation S(j,i) of the central pixel and the saturation average S_av. The detailed calculation method is shown in the following equation 2:
等式2:f_s = S(j, i) - S_av。Equation 2: f_s = S(j, i)- S_av.
由上述饱和度差值计算步骤S06B可知,所述中央像素P1的饱和度S(j,i)所增大或者减小的量与f_s成正比。It can be known from the above-mentioned saturation difference calculation step S06B that the amount by which the saturation S(j, i) of the central pixel P1 is increased or decreased is proportional to f_s.
所述饱和度调整步骤S06C包括判断饱和度差值f_s是否大于0,如果f_s>0,则增大所述中央像素P1的饱和度S(j,i),如果f_s<0,则减少所述中央像素P1的饱和度S(j,i),进而得到一增强图像16a,如图1所示。The saturation adjustment step S06C includes determining whether the saturation difference value f_s is greater than 0, if f_s>0, then increasing the saturation S(j,i) of the central pixel P1, if f_s<0, reducing the The saturation S(j,i) of the central pixel P1 further obtains an enhanced image 16a, as shown in FIG.
所述计算机硬件10接着将所述增强图像16a所含的HSL数据转换为RGB数据160。详细而言,所述计算机硬件可执行第二色彩转换步骤S07,包括将所述增强图像16a所含的HSL数据转换为RGB数据160。The computer hardware 10 then converts the HSL data contained in the enhanced image 16a into RGB data 160. In detail, the computer hardware may perform a second color conversion step S07, including converting the HSL data contained in the enhanced image 16a into RGB data 160.
最后,所述计算机硬件10将所述增强图像16a通过所述输出介面15输出到电子装置50,例如输出到一液晶显示面板,则所述电子装置50所呈现的图像为已增强而具有适当锐利度及饱和度的图像16a。详细而言,所述计算机硬件10可执行图像输出步骤S08,包括所述增强图像16a通过所述计算机硬件10的所述输出介面15输出到电子装置50。Finally, the computer hardware 10 outputs the enhanced image 16a to the electronic device 50 through the output interface 15, for example, to a liquid crystal display panel, then the image presented by the electronic device 50 is enhanced and has appropriate sharpness Degree and saturation image 16a. In detail, the computer hardware 10 may perform an image output step S08, including the enhanced image 16a being output to the electronic device 50 through the output interface 15 of the computer hardware 10.
请参照图4及图5,图5为本发明图像增强方法的步骤流程图。所述图像增强方法包括:计算机提供步骤S01、图像输入步骤S02、第一色彩数据转换步骤S03、边缘像素检测步骤S04、边缘像素性能增强步骤S05、饱和度补偿步骤S06、第二色彩转换步骤S07以及图像输出步骤S08。Please refer to FIG. 4 and FIG. 5, which is a flowchart of steps of the image enhancement method of the present invention. The image enhancement method includes: a computer providing step S01, an image input step S02, a first color data conversion step S03, an edge pixel detection step S04, an edge pixel performance enhancement step S05, a saturation compensation step S06, a second color conversion step S07 And the image output step S08.
所述计算机提供步骤S01包括提供一如图1中的所述计算机硬件10。The computer providing step S01 includes providing a computer hardware 10 as shown in FIG. 1.
所述图像输入步骤S02包括输入一图像160到所述计算机硬件10。The image input step S02 includes inputting an image 160 to the computer hardware 10.
所述第一色彩数据转换步骤S03包括通过所述计算机硬件10,将所输入的所述图像16的RGB数据160转换为HSL数据。The first color data conversion step S03 includes using the computer hardware 10 to convert the input RGB data 160 of the image 16 into HSL data.
所述边缘像素检测步骤S04包括通过所述计算机硬件10,依据所述HSL数据中的所述亮度值L,对所述图像16中所述多个像素进行亮度辨识,以从所述多个像素中找出多个边缘像素。The edge pixel detection step S04 includes, through the computer hardware 10, performing brightness recognition on the plurality of pixels in the image 16 according to the brightness value L in the HSL data, so as to select from the plurality of pixels Find multiple edge pixels.
所述边缘像素性能增强步骤S05包括通过所述计算机硬件10,对所述边缘像素进行亮度值L的调整,以使所述边缘像素与相邻像素之间的亮度差值增大。The edge pixel performance enhancement step S05 includes adjusting the brightness value L of the edge pixel by the computer hardware 10, so that the brightness difference between the edge pixel and the adjacent pixel is increased.
所述饱和度补偿步骤S06包括通过所述计算机硬件10,补偿所述图像16的边缘像素的饱和度。详细而言,所述饱和度补偿步骤S06包括上述的饱和度均值计算步骤S06A、饱和度差值计算步骤S06B以及饱和度调整步骤S06C。The saturation compensation step S06 includes compensating the saturation of the edge pixels of the image 16 through the computer hardware 10. In detail, the saturation compensation step S06 includes the above-mentioned saturation average calculation step S06A, saturation difference calculation step S06B, and saturation adjustment step S06C.
所述第二色彩转换步骤S07包括通过所述计算机硬件10,将所述增强图像16a所含的HSL数据转换为RGB数据160。The second color conversion step S07 includes using the computer hardware 10 to convert the HSL data contained in the enhanced image 16a into RGB data 160.
所述图像输出步骤S08包括通过所述计算机硬件10,所述增强图像16a通过所述计算机硬件10的所述输出介面15输出到电子装置50。The image output step S08 includes outputting the enhanced image 16 a to the electronic device 50 through the output interface 15 of the computer hardware 10 through the computer hardware 10.
相较于现有技术,本发明图像增强装置以及图像增强方法包括下列优点:Compared with the prior art, the image enhancement device and the image enhancement method of the present invention include the following advantages:
1. 所输入的所述图像,透过本发明进行图像边缘的锐利度增强后以饱和度补偿后,可使图像锐利度提升并同时保持图像边缘像素的饱和度,避免图像黯淡。1. The input image is enhanced by the edge sharpness of the image through the present invention and compensated by saturation, so that the sharpness of the image can be improved while maintaining the saturation of the pixels at the edge of the image to avoid the image being dim.
2. 本发明所采用的算式简易,避免计算机硬件的计算负担过大,因此可在提升图像品质的同时,避免加重计算机硬件的负担。2. The calculation formula adopted by the present invention is simple and avoids the calculation burden of the computer hardware being too large, so it can avoid increasing the burden of the computer hardware while improving the image quality.

Claims (14)

  1. 一种图像增强装置,包括:An image enhancement device, including:
    计算机硬件,用于供一输入到所述计算机硬件中的图像,其中所述图像包括红绿蓝色数据;Computer hardware for an image input into the computer hardware, wherein the image includes red, green and blue data;
    色彩转换模块,设置在所述计算机硬件,用于将所述红绿蓝色数据转换为色相饱和度亮度数据,且在所述图像被处理为增强图像后,用于将所述增强图像的色相饱和度亮度数据转换为红绿蓝色数据;A color conversion module, provided in the computer hardware, for converting the red, green, and blue data into hue saturation and brightness data, and for processing the hue of the enhanced image after the image is processed into an enhanced image Saturation brightness data is converted to red, green and blue data;
    边缘增强模块,设置在所述计算机硬件,用于检测所输入的所述图像中的所述多个像素,以从所述多个像素中找出多个边缘像素,并且对所述多个边缘像素进行性能增强;以及An edge enhancement module, provided in the computer hardware, for detecting the plurality of pixels in the input image, to find a plurality of edge pixels from the plurality of pixels, and to detect the plurality of edges Pixel performance enhancement; and
    饱和度补偿模块,设置在所述计算机硬件,用于补偿所述图像的边缘像素的饱和度;A saturation compensation module, set in the computer hardware, for compensating the saturation of the edge pixels of the image;
    其中,所述色彩转换模块将所述图像的所述红绿蓝色数据转换为色相饱和度亮度数据后,所述边缘增强模块对所述图像中的所述边缘像素增强性能,且所述饱和度补偿模块补偿所述图像的边缘像素的饱和度以形成增强图像,最后所述色彩转换模块再将所述增强图像的所述色相饱和度亮度数据转换为红绿蓝色数据。After the color conversion module converts the red, green, and blue data of the image into hue saturation luminance data, the edge enhancement module enhances the performance of the edge pixels in the image, and the saturation The degree compensation module compensates the saturation of the edge pixels of the image to form an enhanced image, and finally the color conversion module converts the hue saturation brightness data of the enhanced image into red, green, and blue data.
  2. 如权利要求1所述的图像增强装置,其中,所述红绿蓝色数据包括每一像素的红色值、绿色值以及蓝色值,且所述色相饱和度亮度数据包括色相值、饱和度值以及亮度值。The image enhancement device according to claim 1, wherein the red-green-blue data includes a red value, a green value, and a blue value for each pixel, and the hue saturation brightness data includes a hue value, a saturation value And the brightness value.
  3. 如权利要求2所述的图像增强装置,其中,所述边缘增强模块用于执行边缘像素检测步骤以及边缘像素性能增强步骤;所述边缘像素检测步骤包括依据所述色相饱和度亮度数据中的所述亮度值,对所述图像中所述多个像素进行亮度辨识,以从所述多个像素中找出多个边缘像素,且所述边缘像素性能增强步骤包括对所述边缘像素进行亮度值的调整,以使所述边缘像素与相邻像素之间的亮度差值增大。The image enhancement device according to claim 2, wherein the edge enhancement module is used to perform an edge pixel detection step and an edge pixel performance enhancement step; the edge pixel detection step includes all data in the hue saturation luminance data The brightness value, performing brightness identification on the plurality of pixels in the image to find a plurality of edge pixels from the plurality of pixels, and the step of enhancing edge pixel performance includes performing brightness values on the edge pixels To adjust the brightness difference between the edge pixel and the adjacent pixel.
  4. 如权利要求2所述的图像增强装置,其中,所述饱和度补偿模块用于执行饱和度均值计算步骤、饱和度差值计算步骤以及饱和度调整步骤,所述饱和度均值计算步骤包括将所述图像的每个边缘像素作为一中央像素,并计算与所述中央像素相邻的相邻像素的饱和度均值,所述饱和度差值计算步骤包括计算所述中央像素的饱和度与所述饱和度均值的饱和度差值,且所述饱和度调整步骤包括判断饱和度差值是否大于0,如果大于0,则增大所述中央像素的饱和度,如果小于0,则减少所述中央像素P1的饱和度,进而得到所述增强图像。The image enhancement device according to claim 2, wherein the saturation compensation module is configured to perform a saturation average calculation step, a saturation difference calculation step, and a saturation adjustment step, the saturation average calculation step includes Each edge pixel of the image serves as a central pixel, and calculates the average saturation value of adjacent pixels adjacent to the central pixel, and the step of calculating the saturation difference includes calculating the saturation of the central pixel and the The saturation difference of the average saturation, and the saturation adjustment step includes determining whether the saturation difference is greater than 0, if greater than 0, increasing the saturation of the central pixel, if less than 0, decreasing the central The saturation of the pixel P1 to obtain the enhanced image.
  5. 如权利要求4所述的图像增强装置,其中,所述饱和度均值计算步骤依据如下等式:S_av = ( S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S(j+1,i-1) + S(j+1,i) + S(j+1,i+1)) / 8,其中,S_av为饱和度均值,S(j-1,i-1)、S(j-1,i)、S(j-1,i+1)、S(j,i-1)、S(j,i+1)、S(j+1,i-1)、S(j+1,i)、S(j+1,i+1))为所述相邻像素的饱和度值。The image enhancement device according to claim 4, wherein the saturation average calculation step is based on the following equation: S_av = ( S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S (j+1,i-1) + S(j+1,i) + S(j+1,i+1)) / 8, where S_av is the average saturation, S(j-1,i-1), S(j-1,i) , S(j-1,i+1), S(j,i-1), S(j,i+1), S(j+1,i-1), S(j+1,i), S(j+1,i+1)) is the saturation value of the adjacent pixels.
  6. 如权利要求4所述的图像增强装置,其中,所述饱和度差值计算步骤依据如下等式:f_s = S(j, i) - S_av,其中,S(j, i)为所述中央像素的饱和度值,f_s为饱和度差值。The image enhancement device according to claim 4, wherein the saturation difference calculation step is based on the following equation: f_s = S(j, i)-S_av, where S(j, i) is the central pixel The saturation value, f_s is the saturation difference.
  7. 如权利要求1所述的图像增强装置,其中,所述计算机硬件包括相互电连接的中央处理器、记忆体、储存器、输入介面以及输出介面,所述输入介面用于输入所述图像到所述计算机硬件中,且所述输出介面用于输出所述增强图像。The image enhancement device according to claim 1, wherein the computer hardware includes a central processing unit, a memory, a memory, an input interface, and an output interface electrically connected to each other, the input interface is used to input the image to all In the computer hardware, and the output interface is used to output the enhanced image.
  8. 一种图像增强方法,包括:An image enhancement method, including:
    计算机提供步骤,包括提供计算机硬件;Computer provision steps, including provision of computer hardware;
    图像输入步骤,包括输入一图像到所述计算机硬件;The image input step includes inputting an image to the computer hardware;
    第一色彩数据转换步骤,包括通过所述计算机硬件,将所输入的所述图像的红绿蓝色数据转换为色相饱和度亮度数据;The first color data conversion step includes converting the input red, green, and blue data of the image into hue saturation brightness data through the computer hardware;
    边缘像素检测步骤,包括通过所述计算机硬件,依据所述色相饱和度亮度数据中的所述亮度值,对所述图像中所述多个像素进行亮度辨识,以从所述多个像素中找出多个边缘像素;The edge pixel detection step includes using the computer hardware to perform brightness identification on the plurality of pixels in the image according to the brightness value in the hue saturation brightness data to find from the plurality of pixels Multiple edge pixels;
    边缘像素性能增强步骤,包括通过所述计算机硬件,对所述边缘像素进行亮度值的调整,以使所述边缘像素与相邻像素之间的亮度差值增大;The step of enhancing the performance of the edge pixel includes adjusting the brightness value of the edge pixel through the computer hardware to increase the difference in brightness between the edge pixel and the adjacent pixel;
    饱和度补偿步骤,包括通过所述计算机硬件,补偿所述图像的边缘像素的饱和度;以及A saturation compensation step, including compensating the saturation of edge pixels of the image through the computer hardware; and
    第二色彩转换步骤,包括通过所述计算机硬件,将所述增强图像所含的色相饱和度亮度数据转换为红绿蓝色数据。The second color conversion step includes using the computer hardware to convert the hue saturation brightness data contained in the enhanced image into red, green, and blue data.
  9. 如权利要求8所述的图像增强方法,其中,所述红绿蓝色数据包括每一像素的红色值、绿色值以及蓝色值,且所述色相饱和度亮度数据包括色相值、饱和度值以及亮度值。The image enhancement method according to claim 8, wherein the red-green-blue data includes a red value, a green value, and a blue value for each pixel, and the hue saturation brightness data includes a hue value, a saturation value And the brightness value.
  10. 如权利要求9所述的图像增强方法,其中,The image enhancement method according to claim 9, wherein:
    所述饱和度补偿步骤包括:The saturation compensation step includes:
    饱和度均值计算步骤,包括将所述图像的每个边缘像素作为一中央像素,并计算与所述中央像素相邻的相邻像素的饱和度均值;The step of calculating the average value of saturation includes taking each edge pixel of the image as a central pixel and calculating the average value of saturation of adjacent pixels adjacent to the central pixel;
    饱和度差值计算步骤,包括计算所述中央像素的饱和度与所述饱和度均值的饱和度差值;以及A saturation difference calculation step, including calculating a saturation difference between the saturation of the central pixel and the average of the saturation; and
    饱和度调整步骤,包括判断饱和度差值是否大于0,如果大于0,则增大所述中央像素的饱和度,如果小于0,则减少所述中央像素P1的饱和度,进而得到所述增强图像。The saturation adjustment step includes determining whether the saturation difference is greater than 0. If it is greater than 0, the saturation of the central pixel is increased, and if it is less than 0, the saturation of the central pixel P1 is reduced, thereby obtaining the enhancement image.
  11. 如权利要求10所述的图像增强方法,其中,所述饱和度均值计算步骤依据如下等式:S_av = ( S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S(j+1,i-1) + S(j+1,i) + S(j+1,i+1)) / 8,其中,S_av为饱和度均值,S(j-1,i-1)、S(j-1,i)、S(j-1,i+1)、S(j,i-1)、S(j,i+1)、S(j+1,i-1)、S(j+1,i)、S(j+1,i+1))为所述相邻像素的饱和度值。The image enhancement method according to claim 10, wherein the saturation average calculation step is based on the following equation: S_av = (S(j-1,i-1) + S(j-1,i) + S(j-1,i+1) + S(j,i-1) + S(j,i+1) + S(j+1,i-1) + S(j+1,i) + S (j+1,i+1)) 8, where S_av is the average saturation, S(j-1,i-1), S(j-1,i), S(j-1,i+1 ), S(j,i-1), S(j,i+1), S(j+1,i-1), S(j+1,i), S(j+1,i+1) ) Is the saturation value of the adjacent pixel.
  12. 如权利要求10所述的图像增强方法,其中,所述饱和度差值计算步骤依据如下等式:f_s = S(j, i) - S_av,其中,S(j, i)为所述中央像素的饱和度值,f_s为饱和度差值。The image enhancement method of claim 10, wherein the saturation difference calculation step is based on the following equation: f_s = S(j, i) -S_av, where S(j, i) is the saturation value of the central pixel, and f_s is the saturation difference value.
  13. 如权利要求8所述的图像增强方法,其中,所述计算机硬件包括相互电连接的中央处理器、记忆体、储存器、输入介面以及输出介面,所述输入介面用于输入所述图像到所述计算机硬件中,且所述输出介面用于输出所述增强图像。The image enhancement method according to claim 8, wherein the computer hardware includes a central processing unit, a memory, a memory, an input interface, and an output interface electrically connected to each other, and the input interface is used to input the image to all In the computer hardware, and the output interface is used to output the enhanced image.
  14. 如权利要求8所述的图像增强方法,其中,所述图像增强方法进一步包括图像输出步骤,包括所述增强图像通过所述计算机硬件的所述输出介面输出到电子装置。The image enhancement method according to claim 8, wherein the image enhancement method further includes an image output step including outputting the enhanced image to an electronic device through the output interface of the computer hardware.
PCT/CN2019/077848 2018-12-20 2019-03-12 Image enhancement device and image enhancement method WO2020124808A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811592937.7A CN109509161B (en) 2018-12-20 2018-12-20 Image enhancement device and image enhancement method
CN201811592937.7 2018-12-20

Publications (1)

Publication Number Publication Date
WO2020124808A1 true WO2020124808A1 (en) 2020-06-25

Family

ID=65754685

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/077848 WO2020124808A1 (en) 2018-12-20 2019-03-12 Image enhancement device and image enhancement method

Country Status (2)

Country Link
CN (1) CN109509161B (en)
WO (1) WO2020124808A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11978412B2 (en) 2021-02-26 2024-05-07 E Ink Holdings Inc. Display device and image processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5457477A (en) * 1994-02-02 1995-10-10 Industrial Technology Research Institute Image data processing system with false color suppression signal generator utilizing luminance and edge threshold suppression methods
JP2001197321A (en) * 2000-01-12 2001-07-19 Nec Shizuoka Ltd Color picture processing method and picture processor
CN1545327A (en) * 2003-11-10 2004-11-10 System and method for reinforcing video image quality
CN103581637A (en) * 2012-07-23 2014-02-12 佳能株式会社 Image processing apparatus and image processing method
CN106611407A (en) * 2015-10-21 2017-05-03 中华映管股份有限公司 Image enhancement method and image processing apparatus thereof

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4111689B2 (en) * 2001-04-24 2008-07-02 シャープ株式会社 Image processing apparatus, computer-readable recording medium storing image processing program, and program
CN100478993C (en) * 2007-07-13 2009-04-15 天津大学 Image reinforcement method for self-adaptive regulation according to edge and brightness
CN101674390B (en) * 2008-09-12 2011-07-20 致伸科技股份有限公司 Method for adjusting brightness of image
KR100975221B1 (en) * 2008-11-05 2010-08-10 매그나칩 반도체 유한회사 Apparatus and method for improving sharpness
CN102999885A (en) * 2012-09-25 2013-03-27 广东威创视讯科技股份有限公司 Method and device for determining average brightness by Retinex video enhancement algorithm
KR102071578B1 (en) * 2013-07-12 2020-01-30 삼성전자주식회사 method and apparatus for improving quality of image and recording medium thereof
JP6432214B2 (en) * 2014-08-25 2018-12-05 株式会社リコー Image processing apparatus, image processing method, storage medium, and program
CN108550158B (en) * 2018-04-16 2021-12-17 Tcl华星光电技术有限公司 Image edge processing method, electronic device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5457477A (en) * 1994-02-02 1995-10-10 Industrial Technology Research Institute Image data processing system with false color suppression signal generator utilizing luminance and edge threshold suppression methods
JP2001197321A (en) * 2000-01-12 2001-07-19 Nec Shizuoka Ltd Color picture processing method and picture processor
CN1545327A (en) * 2003-11-10 2004-11-10 System and method for reinforcing video image quality
CN103581637A (en) * 2012-07-23 2014-02-12 佳能株式会社 Image processing apparatus and image processing method
CN106611407A (en) * 2015-10-21 2017-05-03 中华映管股份有限公司 Image enhancement method and image processing apparatus thereof

Also Published As

Publication number Publication date
CN109509161B (en) 2021-03-16
CN109509161A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
WO2017024615A1 (en) Image enhancement method
US10347198B2 (en) Image displaying methods and display devices
US20230094077A1 (en) Backlight adjusting method of display device, backlight adjusting device and display device
KR20030054024A (en) An apparatus and method for saturation correction in color image
US10210788B2 (en) Displaying method and display with subpixel rendering
WO2021218603A1 (en) Image processing method and projection system
CN110349097B (en) Color enhancement method for image significance and image processing device
US20180226031A1 (en) Driving methods and driving devices of display panels
WO2018113050A1 (en) Drive method and drive apparatus of display panel
US9305519B2 (en) Image color adjusting method and electronic device using the same
WO2019080446A1 (en) Display apparatus driving method, and display apparatus
CN107027017A (en) A kind of method of adjustment, device, picture processing chip and the storage device of image white balance
US7932939B2 (en) Apparatus and method for correcting blurred images
US11574607B2 (en) Display device and control method of display device
WO2022120799A1 (en) Image processing method and apparatus, electronic device, and storage medium
WO2020124808A1 (en) Image enhancement device and image enhancement method
WO2023241339A1 (en) Color cast correction method and apparatus, device, storage medium and program product
EP2802139B1 (en) Image color adjusting method and electronic device using the same
KR101279576B1 (en) Method for generating panorama image within digital image processing apparatus
US8077968B2 (en) Image processing method
US9905195B2 (en) Image processing method
CN111372020B (en) Image display method, terminal and storage medium for enhancing contrast
TWI697873B (en) Image saturation adjusting method and device
TWI610575B (en) Image processing apparatus and image processing method
KR20160025876A (en) Method and apparatus for intensificating contrast in image

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19899750

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19899750

Country of ref document: EP

Kind code of ref document: A1