US10249260B2 - Image color enhancement method including conversions of color parameters of pixels - Google Patents

Image color enhancement method including conversions of color parameters of pixels Download PDF

Info

Publication number
US10249260B2
US10249260B2 US14/779,672 US201514779672A US10249260B2 US 10249260 B2 US10249260 B2 US 10249260B2 US 201514779672 A US201514779672 A US 201514779672A US 10249260 B2 US10249260 B2 US 10249260B2
Authority
US
United States
Prior art keywords
value
pixel
grayscale value
given pixel
rectified
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related, expires
Application number
US14/779,672
Other versions
US20180190239A1 (en
Inventor
Junling Zhu
Hao Li
Shensian Syu
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
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 Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Publication of US20180190239A1 publication Critical patent/US20180190239A1/en
Assigned to SHENZHEN CHINA STAR OPTOELECTRONICS TECHNOLOGY CO., LTD. reassignment SHENZHEN CHINA STAR OPTOELECTRONICS TECHNOLOGY CO., LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: LI, HAO, SYU, SHENSIAN, ZHU, Junling
Application granted granted Critical
Publication of US10249260B2 publication Critical patent/US10249260B2/en
Expired - Fee Related legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • G06T11/10
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/009
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • G09G5/026Control of mixing and/or overlay of colours in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20004Adaptive image processing
    • G06T2207/20012Locally adaptive
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0242Compensation of deficiencies in the appearance of colours
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/06Colour space transformation

Definitions

  • the present invention relates to a field of image processing, and more particularly to an image enhancement method.
  • a conventional image enhancement method is generally to convert an RGB image into an HSI color space, and then the color saturation of the image is exponentially enhanced.
  • the aforementioned method is prone to generating a phenomenon of color shift.
  • the objective of the present invention is to provide an image enhancement method which can prevent a color shift phenomenon from being generated so that a technical problem of a color shift phenomenon which is prone to be generated in an image enhancement method of the prior art can be solved.
  • the present invention provides a technical solution as follows:
  • an image enhancement method comprises:
  • red grayscale value, the green grayscale value, and the blue grayscale value for each pixel of the preset image represented in the RGB color model are converted into the hue value, the color saturation value, and the intensity value for each pixel of a preset image represented in an HSI color space according to the following formulas:
  • R is a red grayscale value of a given pixel
  • B is a blue grayscale value of a given pixel
  • G is a green grayscale value of a given pixel
  • H is a hue value of a given pixel
  • S is a saturation value of a given pixel
  • I is an intensity value of a given pixel
  • S_enh is a color saturation value of a given pixel which has been subjected to the enhancement process
  • min (R, G, B) is a minimum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel
  • max (R, G, B) is a maximum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel.
  • the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
  • S_ame is a rectified color saturation value of the given pixel.
  • the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
  • the red grayscale value, the green grayscale value, and the blue grayscale value for the condition that the given pixel has been subjected to the enhancement process are calculated by the following formulas:
  • C ⁇ ⁇ 1 I ⁇ ( 1 - S — ⁇ enh )
  • C ⁇ ⁇ 2 I ⁇ [ 1 + S — ⁇ enh * ⁇ cos ⁇ ⁇ H ⁇ cos ⁇ ( 60 ⁇ ° - H ⁇ ) ]
  • C ⁇ ⁇ 3 3 ⁇ I - ( C ⁇ ⁇ 1 + C ⁇ ⁇ 2 )
  • C2 represents a red grayscale value of the pixel processed by the enhancement process
  • C1 represents a blue grayscale value of the pixel processed by the enhancement process
  • C3 represents a green grayscale value of the pixel processed by the enhancement process
  • C1 represents a red grayscale value of the pixel processed by the enhancement process
  • C3 represents a blue grayscale value of the pixel processed by the enhancement process
  • C2 represents a green grayscale value of t the pixel processed by the enhancement process
  • C3 represents a red grayscale value of the pixel processed by the enhancement process
  • C2 represents a blue grayscale value of the pixel processed by the enhancement process
  • C1 represents a green grayscale value of the pixel processed by the enhancement process
  • the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
  • the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
  • the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value, and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
  • the hue value, color saturation value, and intensity value for each pixel of the rectified preset image are converted into a red, green, and blue grayscale values for each pixel of the rectified preset image according to the following formulas:
  • C2′ represents a red grayscale value of given pixel after being rectified
  • C1′ represents a blue grayscale value of the given pixel after being rectified
  • C3′ represents a green grayscale value of the given pixel after being rectified
  • C1′ represents a red grayscale value of the given pixel after being rectified
  • C3′ represents a blue grayscale value of the given pixel after being rectified
  • C2′ represents a green grayscale value of the given pixel after being rectified
  • C3′ represents a red grayscale value of the given pixel after being rectified
  • C2′ represents a blue grayscale value of the given pixel after being rectified
  • C1′ represents a green grayscale value of the given pixel after being rectified
  • an image enhancement method comprising:
  • the red grayscale value, the green grayscale value, and the blue grayscale value for each pixel of the preset image represented in the RGB color model are converted into the hue value, the color saturation value, and the intensity value for each pixel of a preset image represented in an HSI color space according to the following formulas:
  • S_enh is a color saturation value of a given pixel which has been subjected to the enhancement process
  • min (R, G, B) is a minimum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel
  • max (R, G, B) is a maximum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel.
  • the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
  • S_ame is a rectified color saturation value of the given pixel.
  • the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
  • the red grayscale value, the green grayscale value, and the blue grayscale value for the condition that the given pixel has been subjected to the enhancement process are calculated by the following formulas:
  • C ⁇ ⁇ 1 I ⁇ ( 1 - S — ⁇ enh )
  • C ⁇ ⁇ 2 I ⁇ [ 1 + S — ⁇ enh * ⁇ cos ⁇ ⁇ H ⁇ cos ⁇ ( 60 ⁇ ° - H ⁇ ) ]
  • C ⁇ ⁇ 3 3 ⁇ I - ( C ⁇ ⁇ 1 + C ⁇ ⁇ 2 )
  • C2 represents a red grayscale value of the pixel processed by the enhancement process
  • C1 represents a blue grayscale value of the pixel processed by the enhancement process
  • C3 represents a green grayscale value of the pixel processed by the enhancement process
  • C1 represents a red grayscale value of the pixel processed by the enhancement process
  • C3 represents a blue grayscale value of the pixel processed by the enhancement process
  • C2 represents a green grayscale value of t the pixel processed by the enhancement process
  • C3 represents a red grayscale value of the pixel processed by the enhancement process
  • C2 represents a blue grayscale value of the pixel processed by the enhancement process
  • C1 represents a green grayscale value of the pixel processed by the enhancement process
  • the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
  • the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
  • the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value, and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
  • the hue value, color saturation value, and intensity value for each pixel of the rectified preset image are converted into a red, green, and blue grayscale values for each pixel of the rectified preset image according to the following formulas:
  • C2′ represents a red grayscale value of given pixel after being rectified
  • C1′ represents a blue grayscale value of the given pixel after being rectified
  • C3′ represents a green grayscale value of the given pixel after being rectified
  • C1′ represents a red grayscale value of the given pixel after being rectified
  • C3′ represents a blue grayscale value of the given pixel after being rectified
  • C2′ represents a green grayscale value of the given pixel after being rectified
  • C3′ represents a red grayscale value of the given pixel after being rectified
  • C2′ represents a blue grayscale value of the given pixel after being rectified
  • C1′ represents a green grayscale value of the given pixel after being rectified
  • the image enhancement method of the present invention performs enhancement processes and rectification processes on a color saturation value of a given pixel by means of a basic principle, i.e. keeping a hue value of each pixel unchanged, and as a result a phenomenon of a color shift generated in the prior art can be avoided and the technical problem of a phenomenon of a color shift which is prone to be generated in the conventional image enhancement method is solved.
  • FIG. 1 is a flow chart showing an image enhancement method according to a preferred embodiment of the present invention.
  • FIG. 2 is a schematic view showing a display with a preset image for the image enhancement method
  • FIG. 1 a flow chart shows an image enhancement method according to a preferred embodiment of the present invention
  • FIG. 2 shows a schematic view of a display with a preset image for the image enhancement method.
  • the image enhancement method comprises:
  • Step S 101 A red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of a preset image represented in an RGB color model are converted into a hue value, a color saturation value, and an intensity value for each pixel of the preset image represented in an HSI color space.
  • Step S 102 The color saturation value is performed with an enhancement process for each pixel of the preset image.
  • Step S 103 According to the intensity value and a preset intensity threshold of each pixel of the preset image, the color saturation value is rectified for each pixel of the preset image.
  • Step S 104 The hue value, the color saturation value, and the intensity value for each pixel of the preset image, which has been rectified as a rectified preset image, are converted into a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of the rectified preset image.
  • an image enhancement device converts the red, green, and blue grayscale value, i.e. normalized grayscale values, for each pixel of the preset image represented in the RGB color model into the hue value, color saturation value, and intensity value for each pixel of a preset image represented in an HSI color space.
  • the RGB color model refers to each pixel of the preset image formed by superposing a red, a blue, and a green light, so that the grayscale value of red, green, and blue color components can be used to represent colors for each pixel of the preset image.
  • the RGB color model is instrumental in quantization of image display by machines.
  • HSI color space is a departure from the human visual perception system, and it uses terms, i.e. hue, color saturation, and intensity, to represent a color in each pixel of the preset image.
  • R is a grayscale value of a red color component of a given pixel, i.e. a red grayscale value
  • B is a grayscale value of a blue color component of a given pixel, i.e. a blue grayscale value
  • G is a grayscale value of a green color component of a given pixel, i.e. a green grayscale value
  • H is a hue value of a given pixel
  • S is a saturation value of a given pixel
  • I is an intensity value of a given pixel.
  • the image enhancement device performs an enhancement process on the color saturation value for each pixel of the preset image.
  • the principle here is that the enhancement of the color saturation value gets a smaller weighting for those less-saturated pixels, and the enhancement of the color saturation value gets a larger weighting for those higher-saturated pixels.
  • S_enh is a color saturation value of a given pixel which has been subjected to the enhancement process
  • min (R, G, B) is a minimum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel
  • max (R, G, B) is a maximum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel.
  • the image enhancement device rectifies the color saturation value for each pixel of the preset image according to the intensity value of each pixel of the preset image and a preset intensity threshold. Specific operations are as follows:
  • the image enhancement device determines whether the intensity value is greater than the preset intensity threshold of a given pixel in the preset image, in which the intensity threshold is an empirical value.
  • S_ame is a rectified color saturation value of the given pixel.
  • the color saturation value is rectified only for those higher-saturated pixels. Accordingly, it can be avoided that a difference of the post-rectified color saturation values among the pixels is too large.
  • a red grayscale value, a green grayscale value, and a blue grayscale value for the condition that the given pixel which has been subjected to the enhancement process are calculated by the following formulas:
  • C ⁇ ⁇ 1 I ⁇ ( 1 - S — ⁇ enh )
  • C ⁇ ⁇ 2 I ⁇ [ 1 + S — ⁇ enh * ⁇ cos ⁇ ⁇ H ⁇ cos ⁇ ( 60 ⁇ ° - H ⁇ ) ]
  • C ⁇ ⁇ 3 3 ⁇ I - ( C ⁇ ⁇ 1 + C ⁇ ⁇ 2 )
  • C2 represents a red grayscale value of the pixel processed by the enhancement process
  • C1 represents a blue grayscale value of the pixel processed by the enhancement process
  • C3 represents a green grayscale value of the pixel processed by the enhancement process.
  • C1 represents a red grayscale value of the pixel processed by the enhancement process
  • C3 represents a blue grayscale value of the pixel processed by the enhancement process
  • C2 represents a green grayscale value of the pixel processed by the enhancement process.
  • C3 represents a red grayscale value of the pixel processed by the enhancement process
  • C2 represents a blue grayscale value of the pixel processed by the enhancement process
  • C1 represents a green grayscale value of the pixel processed by the enhancement process.
  • the color saturation value of the given pixel is rectified according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which has been performed with the enhancement process.
  • the post-rectified hue value, color saturation value, and intensity value of each pixel of the preset image are converted into a post-rectified red, green, and blue grayscale values of each pixel of a preset image. Specific conversions are performed according to the following formulas:
  • C2′ represents a red grayscale value of given pixel after being rectified
  • C1′ represents a blue grayscale value of the given pixel after being rectified
  • C3′ represents a green grayscale value of the given pixel after being rectified.
  • C1′ represents a red grayscale value of the given pixel after being rectified
  • C3′ represents a blue grayscale value of the given pixel after being rectified
  • C2′ represents a green grayscale value of the given pixel after being rectified.
  • C3′ represents a red grayscale value of the given pixel after being rectified
  • C2′ represents a blue grayscale value of the given pixel after being rectified
  • C1′ represents a green grayscale value of the given pixel after being rectified.
  • the image enhancement method of the present invention performs enhancement processes and rectification processes on a color saturation value of a given pixel by means of a basic principle, i.e. keeping a hue value of each pixel unchanged, as a result, and a phenomenon of a color shift generated in the prior art can be avoided and the technical problem of a color shift which is prone to be generated in the conventional image enhancement method is solved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

An image enhancement method is provided, the method includes steps of converting grayscale values for each pixel of a preset image into a hue value, a color saturation value, and an intensity value for each pixel of the preset image; performing an enhancement process on the color saturation value for each pixel of the predetermined image; rectifying the color saturation value for each pixel of the preset image; and converting the post-rectified hue value, the post-rectified color saturation value, and the post-rectified intensity value for each pixel of the preset image into post-rectified grayscale values for each pixel of a preset image.

Description

BACKGROUND OF THE INVENTION Field of the Invention
The present invention relates to a field of image processing, and more particularly to an image enhancement method.
Description of Prior Art
With the developments in the field of display technology, people are increasingly demanding displayed images, especially color images. Due to the constraints of various factors of display devices, there are often some problems with the color images displayed on display devices such as dim colors, inadequate contrast, inconspicuous local details, etc. so that it is difficult to identify and distinguish a target in an image. Thus, it is often necessary to process a color image with an enhancement process before the color image is displayed in order to enlarge the differences between distinct object features in the image, and thereby the visual effect of the image is improved.
A conventional image enhancement method is generally to convert an RGB image into an HSI color space, and then the color saturation of the image is exponentially enhanced. However, the aforementioned method is prone to generating a phenomenon of color shift.
Therefore, there is a need of providing an image enhancement method to solve the problems of the prior art.
SUMMARY OF THE INVENTION
The objective of the present invention is to provide an image enhancement method which can prevent a color shift phenomenon from being generated so that a technical problem of a color shift phenomenon which is prone to be generated in an image enhancement method of the prior art can be solved.
To solve the foregoing problem, the present invention provides a technical solution as follows:
According to an embodiment of the present invention, an image enhancement method comprises:
converting a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of a preset image represented in an RGB color model into a hue value, a color saturation value, and an intensity value for each pixel of the preset image represented in an HSI color space;
performing an enhancement process on the color saturation value for each pixel of the preset image;
rectifying the color saturation value for each pixel of the preset image according to the intensity value of each pixel of the preset image and a preset intensity threshold to avoid a color shift phenomenon of the preset image; and
converting the hue value, the color saturation value, and the intensity value for each pixel of the preset image, which has been rectified as a rectified preset image, into a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of the rectified preset image to facilitate the image display;
wherein the red grayscale value, the green grayscale value, and the blue grayscale value for each pixel of the preset image represented in the RGB color model are converted into the hue value, the color saturation value, and the intensity value for each pixel of a preset image represented in an HSI color space according to the following formulas:
H = { θ B G 360 - θ B > G θ = arc cos [ { ( R - G ) + ( R - B ) } / 2 ( R - G ) 2 + ( R - B ) ( G - B ) ] S = 1 - 3 ( R + G + B ) [ min ( R , G , B ) ] I = 1 3 ( R + G + B )
where R is a red grayscale value of a given pixel; B is a blue grayscale value of a given pixel; G is a green grayscale value of a given pixel; H is a hue value of a given pixel; S is a saturation value of a given pixel; and I is an intensity value of a given pixel;
wherein the following formula is used to perform the enhancement process on the color saturation value for each pixel of the preset image:
S_enh=S^(min(R,G,B)/max(R,G,B))
where S_enh is a color saturation value of a given pixel which has been subjected to the enhancement process; min (R, G, B) is a minimum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel; max (R, G, B) is a maximum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel.
In the above image enhancement method, the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
determining whether the intensity value of a given pixel in the preset image is greater than the preset intensity threshold; and
rectifying the color saturation value of the given pixel in light of the following formula when the intensity value of the given pixel is greater than the preset intensity threshold:
S ame = { S enh S enh 2 ( 1 I - 1 ) 2 ( 1 I - 1 ) S enh > 2 ( 1 I - 1 )
where S_ame is a rectified color saturation value of the given pixel.
In the above image enhancement method, the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
calculating a red grayscale value, a green grayscale value, and a blue grayscale value of the given pixel for a condition that the given pixel has been subjected to an enhancement process when the intensity value of a given pixel is less than or equal to the preset intensity threshold; and
rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value, and the green grayscale value of the given pixel for the condition that the given pixel has been subjected to the enhancement process.
In the above image enhancement method, the red grayscale value, the green grayscale value, and the blue grayscale value for the condition that the given pixel has been subjected to the enhancement process are calculated by the following formulas:
C 1 = I ( 1 - S enh ) C 2 = I [ 1 + S enh * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = 3 I - ( C 1 + C 2 )
wherein when the hue value of the pixel processed by the enhancement process is greater than 0° and less than 120°, C2 represents a red grayscale value of the pixel processed by the enhancement process, C1 represents a blue grayscale value of the pixel processed by the enhancement process, and C3 represents a green grayscale value of the pixel processed by the enhancement process;
wherein when the hue value of the pixel processed by the enhancement process is greater than 120° and less than 240°, C1 represents a red grayscale value of the pixel processed by the enhancement process, C3 represents a blue grayscale value of the pixel processed by the enhancement process, and C2 represents a green grayscale value of t the pixel processed by the enhancement process; and
wherein when the hue value of the pixel processed by the enhancement process is greater than 240° and less than 360°, C3 represents a red grayscale value of the pixel processed by the enhancement process, C2 represents a blue grayscale value of the pixel processed by the enhancement process, and C1 represents a green grayscale value of the pixel processed by the enhancement process.
In the above image enhancement method, the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C2 is less than 1 and C3 is less than 1, the color saturation value of the given pixel is not rectified.
In the above image enhancement method, the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C2 is greater than 1, the color saturation value of the given pixel after being rectified is calculated by the following formula:
1 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] .
In the above image enhancement method, the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value, and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C3 is greater than 1, the color saturation value of the given pixel after being rectified is calculated by the following formulas:
1 = 3 I - ( C 1 + C 2 ) C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] .
In the above image enhancement method, the hue value, color saturation value, and intensity value for each pixel of the rectified preset image are converted into a red, green, and blue grayscale values for each pixel of the rectified preset image according to the following formulas:
C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = 3 I - ( C 1 + C 2 )
wherein when the hue value of the given pixel after be rectified is greater than 0° and less than 120°, C2′ represents a red grayscale value of given pixel after being rectified, C1′ represents a blue grayscale value of the given pixel after being rectified, and C3′ represents a green grayscale value of the given pixel after being rectified;
wherein when the hue value of the given pixel after being rectified is greater than 120° and less than 240°, C1′ represents a red grayscale value of the given pixel after being rectified, C3′ represents a blue grayscale value of the given pixel after being rectified, and C2′ represents a green grayscale value of the given pixel after being rectified; and
wherein when the hue value of the given pixel after being rectified is greater than 240° and less than 360°, C3′ represents a red grayscale value of the given pixel after being rectified, C2′ represents a blue grayscale value of the given pixel after being rectified, and C1′ represents a green grayscale value of the given pixel after being rectified.
According to another embodiment of the present invention, an image enhancement method is provided, comprising:
converting a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of a preset image represented in an RGB color model into a hue value, a color saturation value, and an intensity value for each pixel of the preset image represented in an HSI color space;
performing an enhancement process on the color saturation value for each pixel of the preset image;
rectifying the color saturation value for each pixel of the preset image according to the intensity value of each pixel of the preset image and a preset intensity threshold to avoid a color shift phenomenon of the preset image; and
converting the hue value, the color saturation value, and the intensity value for each pixel of the preset image, which has been rectified as a rectified preset image, into a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of the rectified preset image to facilitate the image display.
In the above image enhancement method, the red grayscale value, the green grayscale value, and the blue grayscale value for each pixel of the preset image represented in the RGB color model are converted into the hue value, the color saturation value, and the intensity value for each pixel of a preset image represented in an HSI color space according to the following formulas:
H = { θ B G 360 - θ B > G θ = arc cos [ { ( R - G ) + ( R - B ) } / 2 ( R - G ) 2 + ( R - B ) ( G - B ) ] S = 1 - 3 ( R + G + B ) [ min ( R , G , B ) ] I = 1 3 ( R + G + B )
where R is a red grayscale value of a given pixel; B is a blue grayscale value of a given pixel; G is a green grayscale value of a given pixel; H is a hue value of a given pixel; S is a saturation value of a given pixel; and I is an intensity value of a given pixel.
In the above image enhancement method, the following formula is used to perform the enhancement process on the color saturation value for each pixel of the preset image:
S_enh=S^(min(R,G,B)/max(R,G,B))
where S_enh is a color saturation value of a given pixel which has been subjected to the enhancement process; min (R, G, B) is a minimum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel; max (R, G, B) is a maximum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel.
In the above image enhancement method, the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
determining whether the intensity value of a given pixel in the preset image is greater than the preset intensity threshold; and
rectifying the color saturation value of the given pixel in light of the following formula when the intensity value of the given pixel is greater than the preset intensity threshold:
S ame = { S enh S enh 2 ( 1 I - 1 ) 2 ( 1 I - 1 ) S enh > 2 ( 1 I - 1 )
where S_ame is a rectified color saturation value of the given pixel.
In the above image enhancement method, the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
calculating a red grayscale value, a green grayscale value, and a blue grayscale value of the given pixel for a condition that the given pixel has been subjected to an enhancement process when the intensity value of a given pixel is less than or equal to the preset intensity threshold; and
rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value, and the green grayscale value of the given pixel for the condition that the given pixel has been subjected to the enhancement process.
In the above image enhancement method, the red grayscale value, the green grayscale value, and the blue grayscale value for the condition that the given pixel has been subjected to the enhancement process are calculated by the following formulas:
C 1 = I ( 1 - S enh ) C 2 = I [ 1 + S enh * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = 3 I - ( C 1 + C 2 )
wherein when the hue value of the pixel processed by the enhancement process is greater than 0° and less than 120°, C2 represents a red grayscale value of the pixel processed by the enhancement process, C1 represents a blue grayscale value of the pixel processed by the enhancement process, and C3 represents a green grayscale value of the pixel processed by the enhancement process;
wherein when the hue value of the pixel processed by the enhancement process is greater than 120° and less than 240°, C1 represents a red grayscale value of the pixel processed by the enhancement process, C3 represents a blue grayscale value of the pixel processed by the enhancement process, and C2 represents a green grayscale value of t the pixel processed by the enhancement process; and
wherein when the hue value of the pixel processed by the enhancement process is greater than 240° and less than 360°, C3 represents a red grayscale value of the pixel processed by the enhancement process, C2 represents a blue grayscale value of the pixel processed by the enhancement process, and C1 represents a green grayscale value of the pixel processed by the enhancement process.
In the above image enhancement method, the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C2 is less than 1 and C3 is less than 1, the color saturation value of the given pixel is not rectified.
In the above image enhancement method, the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C2 is greater than 1, the color saturation value of the given pixel after being rectified is calculated by the following formula:
1 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] .
In the above image enhancement method, the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value, and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C3 is greater than 1, the color saturation value of the given pixel after being rectified is calculated by the following formulas:
1 = 3 I - ( C 1 + C 2 ) C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] .
In the above image enhancement method, the hue value, color saturation value, and intensity value for each pixel of the rectified preset image are converted into a red, green, and blue grayscale values for each pixel of the rectified preset image according to the following formulas:
C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = 3 I - ( C 1 + C 2 )
wherein when the hue value of the given pixel after be rectified is greater than 0° and less than 120°, C2′ represents a red grayscale value of given pixel after being rectified, C1′ represents a blue grayscale value of the given pixel after being rectified, and C3′ represents a green grayscale value of the given pixel after being rectified;
wherein when the hue value of the given pixel after being rectified is greater than 120° and less than 240°, C1′ represents a red grayscale value of the given pixel after being rectified, C3′ represents a blue grayscale value of the given pixel after being rectified, and C2′ represents a green grayscale value of the given pixel after being rectified; and
wherein when the hue value of the given pixel after being rectified is greater than 240° and less than 360°, C3′ represents a red grayscale value of the given pixel after being rectified, C2′ represents a blue grayscale value of the given pixel after being rectified, and C1′ represents a green grayscale value of the given pixel after being rectified.
In comparison with a conventional image enhancement method, the image enhancement method of the present invention performs enhancement processes and rectification processes on a color saturation value of a given pixel by means of a basic principle, i.e. keeping a hue value of each pixel unchanged, and as a result a phenomenon of a color shift generated in the prior art can be avoided and the technical problem of a phenomenon of a color shift which is prone to be generated in the conventional image enhancement method is solved.
To allow the foregoing summary of the present invention to be more clearly understood, there are preferred embodiments, which proceed with reference to the accompanying drawings, and are described in detail as follows.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a flow chart showing an image enhancement method according to a preferred embodiment of the present invention.
FIG. 2 is a schematic view showing a display with a preset image for the image enhancement method
DETAILED DESCRIPTION OF THE INVENTION
The preferred embodiments of the present invention will be detailed below in combination with the accompanying drawings. Spatially relative terms herein mentioned, such as “above”, “beneath”, “front”, “back”, “left”, “right”, “inner”, “outer”, “lateral”, and the like may be used to describe one element's relationship to another element(s) as illustrated in the figures. Therefore, the spatially relative terms are used to describe and understand the present invention, but not to limit the invention.
The drawings are drawn schematically and the same reference numbers are used to indicate the same or similar components throughout the drawings.
Referring to FIG. 1, a flow chart shows an image enhancement method according to a preferred embodiment of the present invention, and FIG. 2 shows a schematic view of a display with a preset image for the image enhancement method. According to a preferred embodiment of the present invention, the image enhancement method comprises:
Step S101: A red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of a preset image represented in an RGB color model are converted into a hue value, a color saturation value, and an intensity value for each pixel of the preset image represented in an HSI color space.
Step S102: The color saturation value is performed with an enhancement process for each pixel of the preset image.
Step S103: According to the intensity value and a preset intensity threshold of each pixel of the preset image, the color saturation value is rectified for each pixel of the preset image.
Step S104: The hue value, the color saturation value, and the intensity value for each pixel of the preset image, which has been rectified as a rectified preset image, are converted into a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of the rectified preset image.
The specific processes of each step for the image enhancement method according to the present preferred embodiment are described below in details.
In the step S101, an image enhancement device converts the red, green, and blue grayscale value, i.e. normalized grayscale values, for each pixel of the preset image represented in the RGB color model into the hue value, color saturation value, and intensity value for each pixel of a preset image represented in an HSI color space.
The RGB color model refers to each pixel of the preset image formed by superposing a red, a blue, and a green light, so that the grayscale value of red, green, and blue color components can be used to represent colors for each pixel of the preset image. The RGB color model is instrumental in quantization of image display by machines.
HSI color space is a departure from the human visual perception system, and it uses terms, i.e. hue, color saturation, and intensity, to represent a color in each pixel of the preset image.
For the image enhancement, we need to base on the human visual system, and therefore it is necessary to convert the representation of the preset image at the first step. Specific conversion formulas are as follows:
H = { θ B G 360 - θ B > G θ = arc cos [ { ( R - G ) + ( R - B ) } / 2 ( R - G ) 2 + ( R - B ) ( G - B ) ] S = 1 - 3 ( R + G + B ) [ min ( R , G , B ) ] I = 1 3 ( R + G + B )
where R is a grayscale value of a red color component of a given pixel, i.e. a red grayscale value; B is a grayscale value of a blue color component of a given pixel, i.e. a blue grayscale value; and G is a grayscale value of a green color component of a given pixel, i.e. a green grayscale value; where H is a hue value of a given pixel; S is a saturation value of a given pixel; and I is an intensity value of a given pixel. Next, go to the step S102.
In the step S102, the image enhancement device performs an enhancement process on the color saturation value for each pixel of the preset image. The principle here is that the enhancement of the color saturation value gets a smaller weighting for those less-saturated pixels, and the enhancement of the color saturation value gets a larger weighting for those higher-saturated pixels. A specific formulas of the enhancement process is as follows:
S_enh=S^(min(R,G,B)/max(R,G,B))
where S_enh is a color saturation value of a given pixel which has been subjected to the enhancement process; min (R, G, B) is a minimum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel; max (R, G, B) is a maximum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel. Next, go to the step S103.
In the step S103, the image enhancement device rectifies the color saturation value for each pixel of the preset image according to the intensity value of each pixel of the preset image and a preset intensity threshold. Specific operations are as follows:
First, the image enhancement device determines whether the intensity value is greater than the preset intensity threshold of a given pixel in the preset image, in which the intensity threshold is an empirical value.
When the intensity value of a given pixel is greater than the preset intensity threshold, the color saturation value of the given pixel is rectified in light of the following formula:
S ame = { S enh S enh 2 ( 1 I - 1 ) 2 ( 1 I - 1 ) S enh > 2 ( 1 I - 1 )
where S_ame is a rectified color saturation value of the given pixel.
For those pixels with larger intensity value, the color saturation value is rectified only for those higher-saturated pixels. Accordingly, it can be avoided that a difference of the post-rectified color saturation values among the pixels is too large.
When the intensity value of a given pixel is less than or equal to the preset intensity threshold, a red grayscale value, a green grayscale value, and a blue grayscale value for the condition that the given pixel which has been subjected to the enhancement process are calculated by the following formulas:
C 1 = I ( 1 - S enh ) C 2 = I [ 1 + S enh * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = 3 I - ( C 1 + C 2 )
When the hue value of the pixel processed by the enhancement process is greater than 0° and less than 120°, C2 represents a red grayscale value of the pixel processed by the enhancement process, C1 represents a blue grayscale value of the pixel processed by the enhancement process, and C3 represents a green grayscale value of the pixel processed by the enhancement process.
When the hue value of the pixel processed by the enhancement process is greater than 120° and less than 240°, C1 represents a red grayscale value of the pixel processed by the enhancement process, C3 represents a blue grayscale value of the pixel processed by the enhancement process, and C2 represents a green grayscale value of the pixel processed by the enhancement process.
When the hue value of the pixel processed by the enhancement process is greater than 240° and less than 360°, C3 represents a red grayscale value of the pixel processed by the enhancement process, C2 represents a blue grayscale value of the pixel processed by the enhancement process, and C1 represents a green grayscale value of the pixel processed by the enhancement process.
Subsequently, the color saturation value of the given pixel is rectified according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which has been performed with the enhancement process. Specific operations are as follows.
When C2 is less than 1, ie the maximum grayscale value, and C3 is less than 1, a color saturation value of a given pixel is not rectified.
When C2 is greater than 1, the hue value and the intensity value are kept unchanged, and a color saturation value of a given pixel is rectified. The post-rectified color saturation value of a given pixel S_ame is calculated by the following formula:
1 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ]
When C3 is greater than 1, the hue value and the intensity value are kept unchanged, and a color saturation value of a given pixel is rectified. The post-rectified color saturation value of a given pixel S_ame is calculated by the following formulas:
1 = 3 I - ( C 1 + C 2 ) C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ]
Because the hue value and the intensity value are kept unchanged during the rectification of the color saturation data, a generation of a color shift is preferably able to be avoided. Next, go the step S104.
In the S104, to facilitate the image display, the post-rectified hue value, color saturation value, and intensity value of each pixel of the preset image are converted into a post-rectified red, green, and blue grayscale values of each pixel of a preset image. Specific conversions are performed according to the following formulas:
C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = I - ( C 1 + C 2 )
When the hue value of the given pixel after be rectified is greater than 0° and less than 120°, C2′ represents a red grayscale value of given pixel after being rectified, C1′ represents a blue grayscale value of the given pixel after being rectified, and C3′ represents a green grayscale value of the given pixel after being rectified.
When the hue value of the given pixel after being rectified is greater than 120° and less than 240°, C1′ represents a red grayscale value of the given pixel after being rectified, C3′ represents a blue grayscale value of the given pixel after being rectified, and C2′ represents a green grayscale value of the given pixel after being rectified.
When the hue value of the given pixel after being rectified is greater than 240° and less than 360°, C3′ represents a red grayscale value of the given pixel after being rectified, C2′ represents a blue grayscale value of the given pixel after being rectified, and C1′ represents a green grayscale value of the given pixel after being rectified.
As such, these image enhancement processes for the image enhancement method of the preferred embodiment are complete.
The image enhancement method of the present invention performs enhancement processes and rectification processes on a color saturation value of a given pixel by means of a basic principle, i.e. keeping a hue value of each pixel unchanged, as a result, and a phenomenon of a color shift generated in the prior art can be avoided and the technical problem of a color shift which is prone to be generated in the conventional image enhancement method is solved.
In summary, while the present invention has been described preferred embodiments, it is understood that the above-described preferred embodiments are not intended to limit the present invention. One of ordinary skill in the art, without departure from the spirit and scope of the invention, can make various kinds of modifications and variations, and the scope of the present invention is to be defined by the claims.

Claims (18)

What is claimed is:
1. An image enhancement method for a preset image displayed on a display, the preset image comprising pixels, and the image enhancement method comprising:
a hue value converting step, wherein the hue value converting step comprises converting a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of the preset image represented in an RGB color model into a hue value, a color saturation value, and an intensity value for each pixel of the preset image represented in an HSI color space;
an enhancing step, wherein the enhancing step comprises performing an enhancement process on the color saturation value for each pixel of the preset image;
a rectifying step, wherein the enhancing step comprises rectifying the color saturation value for each pixel of the preset image according to the intensity value of each pixel of the preset image and a preset intensity threshold to avoid a color shift phenomenon of the preset image;
a grayscale value converting step, wherein the grayscale value converting step comprises converting the hue value, the color saturation value, and the intensity value for each pixel of the preset image, which has been rectified as a rectified preset image, into a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of the rectified preset image to facilitate the image display; and
a displaying step, wherein the displaying step comprises displaying the preset image on the display after the hue value converting step, the enhancing step, rectifying step, and the grayscale value converting step of the preset image;
wherein the red grayscale value, the green grayscale value, and the blue grayscale value for each pixel of the preset image represented in the RGB color model are converted into the hue value, the color saturation value, and the intensity value for each pixel of a preset image represented in an HSI color space according to the following formulas:
H = { θ B G 360 - θ B > G θ = arc cos [ { ( R - G ) + ( R - B ) } / 2 ( R - G ) 2 + ( R - B ) ( G - B ) ] S = 1 - 3 ( R + G + B ) [ min ( R , G , B ) ] I = 1 3 ( R + G + B )
where R is a red grayscale value of a given pixel; B is a blue grayscale value of a given pixel; G is a green grayscale value of a given pixel; H is a hue value of a given pixel; S is a saturation value of a given pixel; and I is an intensity value of a given pixel;
wherein the following formula is used to perform the enhancement process on the color saturation value for each pixel of the preset image:

S_enh=S^(min(R,G,B)/max(R,G,B))
where S_enh is a color saturation value of a given pixel which has been subjected to the enhancement process; min (R, G, B) is a minimum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel; max (R, G, B) is a maximum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel.
2. The image enhancement method according to claim 1, wherein the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
determining whether the intensity value of a given pixel in the preset image is greater than the preset intensity threshold; and
rectifying the color saturation value of the given pixel in light of the following formula when the intensity value of the given pixel is greater than the preset intensity threshold:
S ame = { S enh S enh 2 ( 1 I - 1 ) 2 ( 1 I - 1 ) S enh > 2 ( 1 I - 1 )
where S_ame is a rectified color saturation value of the given pixel.
3. The image enhancement method according to claim 2, wherein the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
calculating a red grayscale value, a green grayscale value, and a blue grayscale value of the given pixel for a condition that the given pixel has been subjected to an enhancement process when the intensity value of a given pixel is less than or equal to the preset intensity threshold; and
rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value, and the green grayscale value of the given pixel for the condition that the given pixel has been subjected to the enhancement process.
4. The image enhancement method according to claim 3, wherein the red grayscale value, the green grayscale value, and the blue grayscale value for the condition that the given pixel has been subjected to the enhancement process are calculated by the following formulas:
C 1 = I ( 1 - S enh ) C 2 = I [ 1 + S enh * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = 3 I - ( C 1 + C 2 )
wherein when the hue value of the pixel processed by the enhancement process is greater than 0° and less than 120°, C2 represents a red grayscale value of the pixel processed by the enhancement process, C1 represents a blue grayscale value of the pixel processed by the enhancement process, and C3 represents a green grayscale value of the pixel processed by the enhancement process;
wherein when the hue value of the pixel processed by the enhancement process is greater than 120° and less than 240°, C1 represents a red grayscale value of the pixel processed by the enhancement process, C3 represents a blue grayscale value of the pixel processed by the enhancement process, and C2 represents a green grayscale value of t the pixel processed by the enhancement process; and
wherein when the hue value of the pixel processed by the enhancement process is greater than 240° and less than 360°, C3 represents a red grayscale value of the pixel processed by the enhancement process, C2 represents a blue grayscale value of the pixel processed by the enhancement process, and C1 represents a green grayscale value of the pixel processed by the enhancement process.
5. The image enhancement method according to claim 4, wherein the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C2 is less than 1 and C3 is less than 1, the color saturation value of the given pixel is not rectified.
6. The image enhancement method according to claim 4, wherein the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C2 is greater than 1, the color saturation value of the given pixel after being rectified is calculated by the following formula:
1 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] .
7. The image enhancement method according to claim 4, wherein the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value, and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C3 is greater than 1, the color saturation value of the given pixel after being rectified is calculated by the following formulas:
1 = 3 I - ( C 1 + C 2 ) C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] .
8. The image enhancement method according to claim 1, wherein the hue value, color saturation value, and intensity value for each pixel of the rectified preset image are converted into a red, green, and blue grayscale values for each pixel of the rectified preset image according to the following formulas:
C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = 3 I - ( C 1 + C 2 )
wherein when the hue value of the given pixel after be rectified is greater than 0° and less than 120°, C2′ represents a red grayscale value of given pixel after being rectified, C1′ represents a blue grayscale value of the given pixel after being rectified, and C3′ represents a green grayscale value of the given pixel after being rectified;
wherein when the hue value of the given pixel after being rectified is greater than 120° and less than 240°, C1′ represents a red grayscale value of the given pixel after being rectified, C3′ represents a blue grayscale value of the given pixel after being rectified, and C2′ represents a green grayscale value of the given pixel after being rectified; and
wherein when the hue value of the given pixel after being rectified is greater than 240° and less than 360°, C3′ represents a red grayscale value of the given pixel after being rectified, C2′ represents a blue grayscale value of the given pixel after being rectified, and C1′ represents a green grayscale value of the given pixel after being rectified.
9. An image enhancement method for a preset image displayed on a display, the preset image comprising pixels, and the image enhancement method comprising:
a hue value converting step, wherein the hue value converting step comprises converting a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of a preset image represented in an RGB color model into a hue value, a color saturation value, and an intensity value for each pixel of the preset image represented in an HSI color space;
an enhancing step, wherein the enhancing step comprises performing an enhancement process on the color saturation value for each pixel of the preset image;
a rectifying step, wherein the enhancing step comprises rectifying the color saturation value for each pixel of the preset image according to the intensity value of each pixel of the preset image and a preset intensity threshold to avoid a color shift phenomenon of the preset image; and
a grayscale value converting step, wherein the grayscale value converting step comprises converting the hue value, the color saturation value, and the intensity value for each pixel of the preset image, which has been rectified as a rectified preset image, into a red grayscale value, a green grayscale value, and a blue grayscale value for each pixel of the rectified preset image to facilitate the image display; and
a displaying step, wherein the displaying step comprises displaying the preset image on the display after the hue value converting step, the enhancing step, rectifying step, and the grayscale value converting step of the preset image.
10. The image enhancement method according to claim 9, wherein the red grayscale value, the green grayscale value, and the blue grayscale value for each pixel of the preset image represented in the RGB color model are converted into the hue value, the color saturation value, and the intensity value for each pixel of a preset image represented in an HSI color space according to the following formulas:
H = { θ B G 360 - θ B > G θ = arc cos [ { ( R - G ) + ( R - B ) } / 2 ( R - G ) 2 + ( R - B ) ( G - B ) ] S = 1 - 3 ( R + G + B ) [ min ( R , G , B ) ] I = 1 3 ( R + G + B )
where R is a red grayscale value of a given pixel; B is a blue grayscale value of a given pixel; G is a green grayscale value of a given pixel; H is a hue value of a given pixel; S is a saturation value of a given pixel; and I is an intensity value of a given pixel.
11. The image enhancement method according to claim 9, wherein the following formula is used to perform the enhancement process on the color saturation value for each pixel of the preset image:

S_enh=S^(min(R,G,B)/max(R,G,B))
where S_enh is a color saturation value of a given pixel which has been subjected to the enhancement process; min (R, G, B) is a minimum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel; max (R, G, B) is a maximum value among the red grayscale value of a given pixel, the green grayscale value of a given pixel, and the blue grayscale value of a given pixel.
12. The image enhancement method according to claim 9, wherein the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
determining whether the intensity value of a given pixel in the preset image is greater than the preset intensity threshold; and
rectifying the color saturation value of the given pixel in light of the following formula when the intensity value of the given pixel is greater than the preset intensity threshold:
S ame = { S enh S enh 2 ( 1 I - 1 ) 2 ( 1 I - 1 ) S enh > 2 ( 1 I - 1 )
where S_ame is a rectified color saturation value of the given pixel.
13. The image enhancement method according to claim 12, wherein the step of rectifying the color saturation value for each pixel of the preset image to avoid a color shift phenomenon of the preset image according to the intensity value and a preset intensity threshold of each pixel of the preset image further comprises:
calculating a red grayscale value, a green grayscale value, and a blue grayscale value of the given pixel for a condition that the given pixel has been subjected to an enhancement process when the intensity value of a given pixel is less than or equal to the preset intensity threshold; and
rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value, and the green grayscale value of the given pixel for the condition that the given pixel has been subjected to the enhancement process.
14. The image enhancement method according to claim 13, wherein the red grayscale value, the green grayscale value, and the blue grayscale value for the condition that the given pixel has been subjected to the enhancement process are calculated by the following formulas:
C 1 = I ( 1 - S enh ) C 2 = I [ 1 + S enh * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = 3 I - ( C 1 + C 2 )
wherein when the hue value of the pixel processed by the enhancement process is greater than 0° and less than 120°, C2 represents a red grayscale value of the pixel processed by the enhancement process, C1 represents a blue grayscale value of the enhanced pixel, and C3 represents a green grayscale value of the pixel processed by the enhancement process;
wherein when the hue value of the pixel processed by the enhancement process is greater than 120° and less than 240°, C1 represents a red grayscale value of the pixel processed by the enhancement process, C3 represents a blue grayscale value of the pixel processed by the enhancement process, and C2 represents a green grayscale value of the pixel processed by the enhancement process; and
wherein when the hue value of the pixel processed by the enhancement process is greater than 240° and less than 360°, C3 represents a red grayscale value of the pixel processed by the enhancement process, C2 represents a blue grayscale value of the pixel processed by the enhancement process, and C1 represents a green grayscale value of the pixel processed by the enhancement process.
15. The image enhancement method according to claim 14, wherein the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C2 is less than 1 and C3 is less than 1, the color saturation value of the given pixel is not rectified.
16. The image enhancement method according to claim 14, wherein the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C2 is greater than 1, the color saturation value of the given pixel after being rectified is calculated by the following formula.
1 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] .
17. The image enhancement method according to claim 14, wherein the step of rectifying the color saturation value of the given pixel according to the red grayscale value, the blue grayscale value and the green grayscale value of the given pixel which have been subjected to the enhancement process comprises:
when C3 is greater than 1, the color saturation value of the given pixel after being rectified is calculated by the following formulas:
1 = 3 I - ( C 1 + C 2 ) C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] .
18. The image enhancement method according to claim 9, wherein the hue value, the color saturation value, and the intensity value for each pixel of the rectified preset image are converted into a post-rectified red, green, and blue grayscale values for each pixel of a preset image according to the following formulas:
C 1 = I ( 1 - S ame ) C 2 = I [ 1 + S ame * cos H ^ cos ( 60 ° - H ^ ) ] C 3 = 3 I - ( C 1 + C 2 )
wherein when the hue value of the given pixel after be rectified is greater than 0° and less than 120°, C2′ represents a red grayscale value of given pixel after being rectified, C1′ represents a blue grayscale value of the given pixel after being rectified, and C3′ represents a green grayscale value of the given pixel after being rectified;
wherein when the hue value of the given pixel after being rectified is greater than 120° and less than 240°, C1′ represents a red grayscale value of the given pixel after being rectified, C3′ represents a blue grayscale value of the given pixel after being rectified, and C2′ represents a green grayscale value of the given pixel after being rectified; and
wherein when the hue value of the given pixel after being rectified is greater than 240° and less than 360°, C3′ represents a red grayscale value of the given pixel after being rectified, C2′ represents a blue grayscale value of the given pixel after being rectified, and C1′ represents a green grayscale value of the given pixel after being rectified.
US14/779,672 2015-08-10 2015-08-24 Image color enhancement method including conversions of color parameters of pixels Expired - Fee Related US10249260B2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201510485891.9 2015-08-10
CN201510485891.9A CN105069756B (en) 2015-08-10 2015-08-10 Image enchancing method
CN201510485891 2015-08-10
PCT/CN2015/087935 WO2017024615A1 (en) 2015-08-10 2015-08-24 Image enhancement method

Publications (2)

Publication Number Publication Date
US20180190239A1 US20180190239A1 (en) 2018-07-05
US10249260B2 true US10249260B2 (en) 2019-04-02

Family

ID=54499114

Family Applications (1)

Application Number Title Priority Date Filing Date
US14/779,672 Expired - Fee Related US10249260B2 (en) 2015-08-10 2015-08-24 Image color enhancement method including conversions of color parameters of pixels

Country Status (3)

Country Link
US (1) US10249260B2 (en)
CN (1) CN105069756B (en)
WO (1) WO2017024615A1 (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106981277B (en) * 2016-01-19 2019-06-11 上海和辉光电有限公司 The method of adjustment of tone for display, apparatus and system
CN107578383A (en) * 2017-08-29 2018-01-12 北京华易明新科技有限公司 A kind of low-light (level) image enhancement processing method
CN107481214A (en) * 2017-08-29 2017-12-15 北京华易明新科技有限公司 A kind of twilight image and infrared image fusion method
CN107742507B (en) * 2017-10-31 2019-11-22 武汉华星光电技术有限公司 Improve the method and system of display color gamut
US10650718B2 (en) * 2018-05-11 2020-05-12 Himax Technologies Limited Method and display device for sub -pixel rendering
CN109146811A (en) * 2018-08-14 2019-01-04 长沙全度影像科技有限公司 A kind of Adaptive contrast enhancement method of color image
CN109223013A (en) * 2018-08-29 2019-01-18 刘源 Image Location System and method in Internal Medicine-Cardiovascular Dept. art based on big data analysis
CN109581883A (en) * 2018-12-05 2019-04-05 柳姿贝 A kind of intelligent vase based on Internet of Things control
CN109637470B (en) 2018-12-11 2020-06-23 惠科股份有限公司 Display panel driving method and display panel
CN111383180B (en) * 2018-12-28 2022-09-27 展讯通信(上海)有限公司 Image enhancement method, device and computer storage medium
CN109660771A (en) * 2019-02-28 2019-04-19 东南大学 A kind of haulage vehicle video monitoring system and method
CN110010087B (en) * 2019-04-08 2022-04-19 北海惠科光电技术有限公司 Driving method and driving system of display panel and display device
US11423854B2 (en) 2019-04-08 2022-08-23 Chongqing Hkc Optoelectronics Technology Co., Ltd. Driving method and system of display panel, and display device
CN110276727B (en) * 2019-05-21 2020-06-05 杭州电子科技大学 A Color Enhancement Method for Color Vision Disorders
US11030933B1 (en) * 2019-12-08 2021-06-08 Himax Technologies Limited Sub-pixel rendering method and display device
CN115909981B (en) * 2021-08-24 2025-03-28 Oppo广东移动通信有限公司 Color enhancement method and device, electronic device, and storage medium
CN115330607B (en) * 2022-07-11 2024-03-01 内蒙古工业大学 Saturation enhancement method for color images
CN116128413B (en) * 2023-04-17 2023-06-16 四川科斯特自动化设备有限公司 Intelligent warehouse material statistics system based on Bluetooth communication

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4672439A (en) 1985-09-04 1987-06-09 Texas Instruments Incorporated FLIR imager with hybrid optical/electronic processor
CN101790101A (en) 2010-04-01 2010-07-28 昆山锐芯微电子有限公司 Method and device for adjusting image saturation
US8421925B2 (en) * 2007-04-10 2013-04-16 Novatek Microelectronics Corp. Display device and color adjustment method for adjusting hue, saturation, or intensity factors of sub-image within an image
US20130188824A1 (en) * 2010-09-16 2013-07-25 Hui-Man Hou Digital watermarking
CN103780797A (en) 2014-01-23 2014-05-07 北京京东方光电科技有限公司 Image color enhancement method and device
CN104284168A (en) 2014-10-17 2015-01-14 深圳市华星光电技术有限公司 Image color enhancement method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9049408B2 (en) * 2006-09-01 2015-06-02 Texas Instruments Incorporated Color space appearance model video processor
US9070195B2 (en) * 2012-06-10 2015-06-30 Apple Inc. Method and system for auto-enhancing photographs with saturation adjustments
CN102779330B (en) * 2012-06-13 2014-08-06 京东方科技集团股份有限公司 Image reinforcement method, image reinforcement device and display device
CN103280174B (en) * 2013-04-28 2016-02-10 四川长虹电器股份有限公司 A kind of method eliminating color noise under weak signal of liquid crystal display
CN104637034A (en) * 2014-12-31 2015-05-20 广州博冠信息科技有限公司 Method and device for regulating image saturation degree

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4672439A (en) 1985-09-04 1987-06-09 Texas Instruments Incorporated FLIR imager with hybrid optical/electronic processor
US8421925B2 (en) * 2007-04-10 2013-04-16 Novatek Microelectronics Corp. Display device and color adjustment method for adjusting hue, saturation, or intensity factors of sub-image within an image
CN101790101A (en) 2010-04-01 2010-07-28 昆山锐芯微电子有限公司 Method and device for adjusting image saturation
US20130188824A1 (en) * 2010-09-16 2013-07-25 Hui-Man Hou Digital watermarking
CN103780797A (en) 2014-01-23 2014-05-07 北京京东方光电科技有限公司 Image color enhancement method and device
US20160035066A1 (en) 2014-01-23 2016-02-04 Boe Technology Group Co., Ltd. Method and apparatus for image color enhancement
CN104284168A (en) 2014-10-17 2015-01-14 深圳市华星光电技术有限公司 Image color enhancement method and system
US20160110845A1 (en) 2014-10-17 2016-04-21 Shenzhen China Star Optoelectronics Technology Co. Ltd. Method for enhancing colors of image and system thereof

Also Published As

Publication number Publication date
US20180190239A1 (en) 2018-07-05
CN105069756A (en) 2015-11-18
CN105069756B (en) 2018-02-16
WO2017024615A1 (en) 2017-02-16

Similar Documents

Publication Publication Date Title
US10249260B2 (en) Image color enhancement method including conversions of color parameters of pixels
CN102779330B (en) Image reinforcement method, image reinforcement device and display device
CN105009580B (en) The display management of high dynamic range video
US9143657B2 (en) Color enhancement technique using skin color detection
CN105263009B (en) A kind of self-adaptive conversion method of image
US8791952B2 (en) Method and system of immersive generation for two-dimension still image and factor dominating method, image content analysis method and scaling parameter prediction method for generating immersive sensation
EP1918871A3 (en) Image enhancement method and system
CN103780797A (en) Image color enhancement method and device
CN101742339A (en) A Method of Color Image Enhancement
CN104200431A (en) Processing method and processing device of image graying
CN105451094B (en) Subtitle color adjustment method and device
US10657631B2 (en) Apparatus and method for controlling contrast ratio of content in electronic device
JP5878586B2 (en) Image color adjustment method and electronic apparatus therefor
WO2017084391A1 (en) Method and system for performing fluorescence processing on an image of a projector
CN105184746A (en) Histogram equalization-based color image enhanced treatment method
CN101790101B (en) Method and device for adjusting image saturation
US9098886B2 (en) Apparatus and method for processing an image
JP2016076069A5 (en) Display control apparatus, display control method, and program
WO2012153661A1 (en) Image correction device, image correction display device, image correction method, program, and recording medium
US20160360169A1 (en) Wearable projection apparatus and projection method
TWI485694B (en) Image color adjusting method and electronic apparatus thereof
EP2802139B1 (en) Image color adjusting method and electronic device using the same
KR20120138477A (en) Method for generating panorama image within digital image processing apparatus
CN104182998A (en) Self-adaption image brightness rendering method and device
WO2012099013A1 (en) Image correction device, image correction display device, image correction method, program, and recording medium

Legal Events

Date Code Title Description
AS Assignment

Owner name: SHENZHEN CHINA STAR OPTOELECTRONICS TECHNOLOGY CO.

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:ZHU, JUNLING;LI, HAO;SYU, SHENSIAN;REEL/FRAME:047715/0696

Effective date: 20150730

STCF Information on status: patent grant

Free format text: PATENTED CASE

FEPP Fee payment procedure

Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

LAPS Lapse for failure to pay maintenance fees

Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20230402