CN104935902A - Image color enhancement method and device, and electronic equipment - Google Patents

Image color enhancement method and device, and electronic equipment Download PDF

Info

Publication number
CN104935902A
CN104935902A CN201510295700.2A CN201510295700A CN104935902A CN 104935902 A CN104935902 A CN 104935902A CN 201510295700 A CN201510295700 A CN 201510295700A CN 104935902 A CN104935902 A CN 104935902A
Authority
CN
China
Prior art keywords
image
color space
color
saturation
attribute
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.)
Granted
Application number
CN201510295700.2A
Other languages
Chinese (zh)
Other versions
CN104935902B (en
Inventor
姜帅
李远友
商泽利
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.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics 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 Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201510295700.2A priority Critical patent/CN104935902B/en
Publication of CN104935902A publication Critical patent/CN104935902A/en
Application granted granted Critical
Publication of CN104935902B publication Critical patent/CN104935902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention discloses an image color enhancement method and device, and electronic equipment. The method comprises the steps: enabling a to-be-processed image to be converted into a first color space from an RGB color space; carrying out the enhancement processing of the color property of an image in the first color space; enabling a processed image to be converted into a second color space; carrying out the enhancement processing of the color property of the image in the second color space; and enabling the processed image to converted into the RGB color space. The method provided by the embodiment of the invention can improve the contrast of the image, and enables the image to be brighter and closer to the true color.

Description

Image color Enhancement Method, device and electronic equipment
Technical field
The application relates to field of computer technology, is specifically related to technical field of image processing, particularly relates to a kind of image color Enhancement Method, device and electronic equipment.
Background technology
Under normal circumstances, the image that camera photographs can lose the realistic colour of original scene.Seem truer to make image color, closer to real scene, can be processed image by image color Enhancement Method.
Existing image color Enhancement Method is less.Known a kind of image color Enhancement Method processes in HSV (Hue tone, Saturation saturation, Value brightness) color space.The R (red) of pending image, G (green), B (indigo plant) component are converted to the tone of HSV color space, saturation and brightness by the method, at HSV color space, saturation component is stretched, or process at the luminance component of HSV color space to image.
The defect of above-mentioned existing image color Enhancement Method is: the first, only processes image at single color space (e.g., HSV color space), makes to take the photo obtained gorgeous not; The second, do not distinguish image when carrying out for certain component process to image, unifiedly to strengthen, the integral color of the image after process obviously there occurs change, and easily untrue; 3rd, only one of them component of image is processed.
Summary of the invention
In view of above-mentioned defect of the prior art or deficiency, expect to provide a kind of scheme can carrying out color enhancement process to image, make the color of the scene in the image after processing more truly bright-coloured.In order to realize above-mentioned one or more object, this application provides image color Enhancement Method and device.
On the one hand, this application provides a kind of image color Enhancement Method, the method comprises: pending image is converted to the first color space by rgb color space; At the first color space, enhancing process is carried out to the color attribute of image; Image after process is converted to the second color space; At the second color space, enhancing process is carried out to the color attribute of image; And the image after process is converted back rgb color space; Wherein, the first color space be HSI and HSV color space one of them, the second color space be in HSI and HSV color space another; Color attribute comprises at least one item in tone, saturation and brightness.
In some embodiments, the method also comprises: the scene type determining pending image; And the first color space and the second color space to the color attribute of image carry out strengthen process comprise: based on the scene type of pending image, the Attribute tuning function according to correspondence adjusts the color attribute of image respectively.
In some embodiments, based on the scene type of pending image, carry out enhancing process to the color attribute of image respectively according to the Attribute tuning function of correspondence to comprise: at HSI color space, respectively the tone H component of image and saturation S component are adjusted according to the first hue adjustment function, the first saturation Tuning function; At HSI color space, the brightness I component of image is adjusted; At HSV color space, respectively the tone H component of image and saturation S component are adjusted according to the second hue adjustment function and the second saturation Tuning function.
In some embodiments, the first saturation Tuning function and the second saturation Tuning function are also based on the tone of image.
In some embodiments, carry out process to the brightness I component of image to comprise: for dark image and the dark image of non-over carry out brightness adjustment respectively excessively.
In some embodiments, carry out brightness adjustment respectively for the dark image of mistake and the dark image of non-over to comprise: mean flow rate and the high brightness ratio of determining image; If the mean flow rate of image lower than luminance threshold and high brightness ratio lower than proportion threshold value, then determine that image was dark image, otherwise determine that image is the dark image of non-over; And for crossing dark image, carry out the first brightness adjustment; For the dark image of non-over, carry out the second brightness adjustment.
In some embodiments, the first brightness adjustment is carried out according to following formula to crossing dark image: if I≤A, I be ˊ=I*B/A; Otherwise, I ˊ=(I-A) * (255-B)/(255-A)+B; Wherein, I is the luminance component before adjustment, and I ˊ is the luminance component after adjustment, and A is the decline cut-off point in Luminance Distribution histogram, B=(int) (0.3*A+180).
In some embodiments, the second brightness adjustment comprises: carry out brightness adjustment according to brightness adjustment function to the dark image of non-over.
In some embodiments, scene type comprises following at least one item: food, personage and landscape.
Second aspect, this application provides a kind of image color enhancement device, and this device comprises: the first modular converter, for pending image is converted to the first color space by rgb color space; First processing module, for carrying out enhancing process at the first color space to the color attribute of image; Second modular converter, for being converted to the second color space by the image after process; Second processing module, for carrying out enhancing process at the second color space to the color attribute of image; And the 3rd modular converter, for the image after process is converted back rgb color space; Wherein, the first color space be HSI and HSV color space one of them, the second color space be in HSI and HSV color space another; Color attribute comprises at least one item in tone, saturation and brightness.
In some embodiments, this device also comprises: scene determination module, for determining the scene type of pending image; And the first processing module and the second processing module also for: based on the scene type of pending image, the Attribute tuning function according to correspondence adjusts the color attribute of image respectively.
In some embodiments, the first processing module or the second processing module also for: at HSI color space, respectively the tone H component of image and saturation S component are adjusted according to the first hue adjustment function, the first saturation Tuning function; At HSI color space, the brightness I component of image is adjusted; At HSV color space, respectively the tone H component of image and saturation S component are adjusted according to the second hue adjustment function and the second saturation Tuning function.
In some embodiments, the first saturation Tuning function and the second saturation Tuning function are also based on the tone of image.
In some embodiments, the first processing module or the second processing module are also for processing according to the following brightness I component to image: for dark image and the dark image of non-over carry out brightness adjustment respectively excessively.
In some embodiments, the first processing module or the second processing module are further used for: mean flow rate and the high brightness ratio of determining image; If the mean flow rate of image lower than luminance threshold and high brightness ratio lower than proportion threshold value, then determine that image was dark image, otherwise determine that image is the dark image of non-over; And for crossing dark image, carry out the first brightness adjustment; For the dark image of non-over, carry out the second brightness adjustment.
In some embodiments, the first processing module or the second processing module carry out the first brightness adjustment according to following formula to crossing dark image: if I≤A, I be ˊ=I*B/A; Otherwise, I ˊ=(I-A) * (255-B)/(255-A)+B; Wherein, I is the luminance component before adjustment, and I ˊ is the luminance component after adjustment, and A is the decline cut-off point in Luminance Distribution histogram, B=(int) (0.3*A+180).
In some embodiments, the first processing module or the second processing module are performed as follows the second brightness adjustment: carry out brightness adjustment according to brightness adjustment function to the dark image of non-over.
In some embodiments, scene type comprises following at least one item: food, personage and landscape.
The third aspect, this application provides a kind of electronic equipment, and comprise display and processor, processor is configured for: pending image is converted to the first color space by rgb color space; At the first color space, enhancing process is carried out to the color attribute of image; Image after process is converted to the second color space; At the second color space, enhancing process is carried out to the color attribute of image; And the image after process is converted back rgb color space; Image after display is configured for and presents process; Wherein, the first color space be HSI and HSV color space one of them, the second color space be in HSI and HSV color space another; Color attribute comprises at least one item in tone, saturation and brightness.
In some embodiments, processor is configured for the method performed according to each embodiment of the application's first aspect further.
Image color Enhancement Method, device and electronic equipment that the application provides, by pending image is converted to the first color space by rgb color space, at the first color space, enhancing process is carried out to the color attribute of image, then the image after process is converted to the second color space, at the second color space, enhancing process is carried out to the color attribute of image, finally the image after process is converted back rgb color space, the contrast of image can be improved, make image more beautiful, closer to realistic colour.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, the other features, objects and advantages of the application will become more obvious:
Fig. 1 shows the flow chart of an embodiment of the image color Enhancement Method provided according to the application;
Fig. 2 shows the illustrative diagram of tone coefficient curve in HSI color space;
Fig. 3 shows the illustrative diagram of saturation correction curve in HSI color space;
Fig. 4 shows the illustrative diagram of brightness adjustment curve in HSI color space;
Fig. 5 shows the illustrative diagram of tone coefficient curve in HSV color space;
Fig. 6 shows the illustrative diagram of saturation correction curve in HSV color space;
Fig. 7 shows the structural representation of an embodiment of the image color enhancement device provided according to the application;
Fig. 8 shows the structural representation of an embodiment of the electronic equipment provided according to the application; And
Fig. 9 shows the structural representation of the computer system of the electronic equipment be suitable for for realizing the embodiment of the present application.
Embodiment
Below in conjunction with drawings and Examples, the application is described in further detail.Be understandable that, specific embodiment described herein is only for explaining related invention, but not the restriction to this invention.It also should be noted that, for convenience of description, in accompanying drawing, illustrate only the part relevant to Invention.
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the application in detail in conjunction with the embodiments.
The image color Enhancement Method that the present embodiment provides such as can be applied to be had in the electronic equipment of camera function, such as mobile phone, digital camera etc.Can increase new exposal model in camera function, the image color of this exposal model application the application strengthens process, and the photo using this pattern to take is the photo after having carried out color enhancement, the photo taken can color more gorgeous, truer.Also the method that the present embodiment provides can be applied to image procossing application APP, use image procossing APP to process the photo taken under normal mode, make picture more gorgeous than former picture color, truer.In order to Description Image color, in color science, establish multicolour model, with one dimension, two dimension, three-dimensional even space-time coordinate represent a certain color, the Color Range that this coordinate system can define and color space.The color space often used mainly contains primaries pattern RGB, prints four color separation pattern CMYK, HSV (Hue tone, Saturation saturation, Value brightness), HSI (Hue tone, Saturation saturation, Intensity intensity) etc.
Can be described same image in different color space.Usual different color space is gone to weigh same object from different angles.Such as, HSV color space is a kind of color space created according to the intuitive nature of color, uses time HSI color space is Show Color on the computer monitor usual from the vision system rgb color space of people.
The embodiment of the present application provides a kind of image color and strengthens processing scheme, and especially comparison film carries out color enhancement process.The program takes into account characteristic and the human vision property of color itself.In other words, embodying the HSV color space of color self character and considering that the HSI color space of human vision property all carries out color enhancement process, also namely at two color spaces, Duplex treatment is carried out to image.Picture quality after Duplex treatment is improved, and color is more gorgeous, true.
Please refer to Fig. 1, the flow process 100 of an embodiment of the image color Enhancement Method provided according to the application is provided.The present embodiment is mainly applied in this way and can carries out illustrating in the terminal equipment of image procossing, and this terminal equipment can include but not limited to smart mobile phone, panel computer, interactive desktop, smart camera etc.
As shown in Figure 1, in a step 101, pending image is converted to the first color space by rgb color space.
User shooting image (such as, by camera, band camera intelligent terminal etc.), its color usually can with some difference of former scene.Therefore, need to carry out color enhancement process to image, make image closer to realistic colour.Can carry out after image taking completes the processing procedure of image, also can carry out in image shoot process.User can be taken pictures setting by amendment, selects image processing time.Such as, user can be arranged on after image taking completes and carry out image procossing, then user first can see raw video picture, and then processes image, obtains the image after processing.Or user also can select to process image in image shoot process, and in this case, user will directly see the image after process.
Generally, image is described in rgb color space.When carrying out color enhancement process to image, first pending image can be converted to the first color space by rgb color space by terminal equipment.This first color space such as can comprise HSI color space or HSV color space.HSV color space is a kind of color space created according to the intuitive nature of color.HSI color space is a kind of color space created from the vision system of people.
In the present embodiment, first pending image is converted to HSI color space or HSV color space, so that carry out color enhancement process to image in HSI color space or HSV color space.Such as, first pending image can be converted to HSI color space in the present embodiment.
Then, in a step 102, at the first color space, enhancing process is carried out to the color attribute of image.
In the present embodiment, after in a step 101 pending image being converted to the first color space, such as, be converted to HSI color space, terminal equipment can carry out enhancing process at HSI color space to the color attribute of image.Above-mentioned color attribute can comprise at least one item in tone, saturation and brightness.Such as, at HSI color space, all can adjust the tone of image, saturation and luminance component; Or also can only adjust the tone of image and saturation component, luminance component can adjust in other color space.
In one implementation, first can determine the scene type of pending image, then based on determined scene type, the Attribute tuning function according to correspondence adjusts the color attribute of image respectively.Such as, the scene type of image can include but not limited to following at least one item: food, personage and landscape.The scene type of image can be determined according to concrete picture material by user, or can carry out analysis by terminal equipment to picture material and obtain.The scene type of image can be single scene type, also can comprise multiple scene type.Such as, if picture material is that a desk placed one glass of beverage, then the scene type of this image can be defined as food; To get together photo if the content of image is a classmate, contain the food on multiple people and table in image, then the scene type of image can be defined as food and personage.
The image of different scene type, may have different color characteristics.Therefore, for the image of different scene type, the different color attribute of Attribute tuning function to image can be adopted to adjust, make image closer to realistic colour.Such as, can at HSI color space, respectively the tone H component of image and saturation S component are adjusted according to the first hue adjustment function, the first saturation Tuning function, can also adjust the brightness I component of image.The present embodiment is described for food scene type.
First, at HSI color space, can adjust according to the tone H component of the first hue adjustment function to image.Above-mentioned first hue adjustment function can be obtained by preset HSI tone coefficient curve fixed point difference.Above-mentioned fixed point can be empirical value.The tone H component of pending image is inputted the first hue adjustment function, the chrominance component after can being adjusted.
Please refer to Fig. 2, it illustrates the illustrative diagram of tone coefficient curve in HSI color space.As shown in Figure 2, horizontal in figure, ordinate represents the tone H component respective value of adjustment front and back image respectively.Horizontal in figure, ordinate value is the value after normalization.As shown in Figure 2, made a Nonlinear Processing to the tone H component of whole image, for the tone H component before different adjustment, adjusting range has larger gap.By image is done hue adjustment can make its contrast improve, more beautiful.Such as, when the H component before adjusting is 0.1-0.2, after adjustment is 0.3; When adjust before H component be 0.3-0.4 or be greater than 0.85 time, the H component after adjustment has a distinct increment, such as, be greater than 1, and when adjustment before H component be 0.35 or be greater than 0.9 time, the H component after adjustment reaches maximum 1.5.
Optional or additional, at HSI color space, can adjust according to the saturation S component of the first saturation Tuning function to image.Above-mentioned first saturation Tuning function can be obtained by preset HSI saturation correction curve fixed point difference.Above-mentioned fixed point can be empirical value.In some implementations, the first saturation Tuning function is also based on the tone H component of image.The saturation S component of pending image is inputted the first saturation Tuning function, the saturation component after can being adjusted.
Please refer to Fig. 3, it illustrates the illustrative diagram of saturation correction curve in HSI color space.As shown in Figure 3, for the ease of clearly observing the change of the saturation S component of image before and after adjustment, made a diagonal 310 in figure, the some transverse and longitudinal coordinate on this line is identical, can be used for representing that the saturation of image before and after adjustment does not change.Another curve 320 is saturation correction curve in HSI color space.For saturation correction curve, the saturation S component respective value horizontal in figure, ordinate represents image before and after adjustment respectively.Horizontal in figure, ordinate value is the value after normalization.As can be seen from Figure 3, saturation correction curve part overlaps with diagonal is approximate, and part is in cornerwise top, and namely when abscissa is identical, the ordinate of curve is equal to or greater than cornerwise ordinate.That is, the saturation S component after adjustment is equal to or greater than the saturation S component before adjustment, and S component (e.g., the 0.3-0.8) adjusting range of the value that mediates is larger.
Optional or additional, at HSI color space, the brightness I component of image can be adjusted.In the present implementation, can for dark image and the dark image of non-over carry out brightness adjustment respectively excessively.First can determine mean flow rate and the high brightness ratio of image, if the mean flow rate of image lower than luminance threshold and high brightness ratio lower than proportion threshold value, then determine that image was dark image, otherwise determine that image is the dark image of non-over.The mean flow rate of image is the mean value of all brightness I components in image, and luminance threshold can be the optimum value obtained by the analysis of great amount of images.High brightness ratio such as can be determined by the distribution calculating brightness.Such as can be defined as between high luminance area by brightness section [192,255], the histogram distribution ratio in this interval is as high brightness ratio.Same, proportion threshold value can be determined by the analysis of great amount of images.
For crossing dark image, brightness adjustment can be carried out according to following formula to image:
If I≤A, I be ˊ=I*B/A;
Otherwise, I ˊ=(I-A) * (255-B)/(255-A)+B;
Wherein, I is the luminance component before adjustment, and I ˊ is the luminance component after adjustment, and A is the decline cut-off point in Luminance Distribution histogram, B=(int) (0.3*A+180).
For the dark image of non-over, brightness adjustment can be carried out according to brightness adjustment function to it.Above-mentioned brightness adjustment function can be obtained by preset HSI brightness correction curve fixed point difference.Above-mentioned fixed point can be empirical value.By the brightness I component of pending image input brightness adjustment function, the luminance component after can being adjusted.
Please refer to Fig. 4, it illustrates the illustrative diagram of brightness adjustment curve in HSI color space.As shown in Figure 4, for the ease of clearly observing the change of the brightness I component of image before and after adjustment, made a diagonal 410 in figure, the some transverse and longitudinal coordinate on this line is identical, can be used for representing that the brightness of image before and after adjustment does not change.Another curve 420 is brightness correction curve in HSI color space.For brightness correction curve, the brightness I component respective value horizontal in figure, ordinate represents image before and after adjustment respectively.Horizontal in figure, ordinate value is the value after normalization.As can be seen from Figure 4, brightness correction curved portion is in cornerwise below, and part is in cornerwise top, and part overlaps with diagonal is approximate, namely can represent when abscissa is identical, the ordinate of curve is less than respectively, be more than or equal to cornerwise ordinate.That is, the brightness I component after adjustment can be less than, be more than or equal to adjustment before luminance component.Particularly, such as, when the I component before adjusting is 0-0.2, the I component after adjustment reduces; When the I component before adjusting is 0.2-0.7, the I component after adjustment increases; When the I component before adjusting is greater than 0.7, the brightness of this part image adjusts hardly.
Return Fig. 1, then, in step 103, the image after process is converted to the second color space.
In a step 101, image is converted to the first color space, this first color space be HSI and HSV color space one of them, in this step, image after the first color space process is converted to the second color space, is converted to another in HSI and HSV color space by image.HSV color space is a kind of color space created according to the intuitive nature of color.HSI color space is the vision system from people, a kind of color space of establishment.If only processed image at HSI color space, the characteristic of color itself can be ignored.If only processed image at HSV color space, the visual effect of people can not met.Therefore, when image is processed, need to take into account the characteristic of color itself and the visual signature of people simultaneously, image can be processed at HSI and HSV two color spaces, the combination in these two spaces can carry out integrated treatment to image, make the image after process both objective, meet again the visual effect of people.
In the present embodiment, be HSI color space for the first color space in step 101, then in this step, the image after the process of HSI color space be converted to HSV color space.Image directly can be converted to HSV color space by HSI color space, also image can be converted to rgb color space by HSI color space, then be converted to HSV color space by rgb color space.
Then, at step 104, at the second color space, enhancing process is carried out to the color attribute of image.
In the present embodiment, after in step 103 pending image being converted to the second color space, such as, be converted to HSV color space, terminal equipment can carry out enhancing process at HSV color space to the color attribute of image.Above-mentioned color attribute can comprise at least one item in tone, saturation and brightness.Such as, when all having carried out adjustment at HSI color space to the tone of image, saturation and luminance component, can only adjust the tone of image and saturation component at HSV color space.In HSI and HSV color space, the luminance component of image is identical, therefore, adjusts in HSI or HSV color space to the luminance component of image.
In one implementation, based on the scene type of the pending image determined in a step 102, respectively the color attribute of image can be adjusted according to Attribute tuning function corresponding in HSV color space.Such as, at HSV color space, can adjust the tone H component of image and saturation S component respectively according to the second hue adjustment function and the second saturation Tuning function.
First, at HSV color space, can adjust according to the tone H component of the second hue adjustment function to image.Above-mentioned second hue adjustment function can be obtained by preset HSV tone coefficient curve fixed point difference.Above-mentioned fixed point can be empirical value.The tone H component of pending image is inputted the second hue adjustment function, the chrominance component after can being adjusted.
Please refer to Fig. 5, it illustrates the illustrative diagram of tone coefficient curve in HSV color space.As shown in Figure 5, horizontal in figure, ordinate represents the tone H component respective value of adjustment front and back image respectively.Horizontal in figure, ordinate value is the value after normalization.As shown in Figure 5, made a Nonlinear Processing to the tone H component of whole image, for the tone H component before different adjustment, adjusting range has larger gap.By image is done hue adjustment can make its contrast improve, more beautiful.
Optional or additional, at HSV color space, can adjust according to the saturation S component of the second saturation Tuning function to image.Above-mentioned second saturation Tuning function can be obtained by preset HSV saturation correction curve fixed point difference.Above-mentioned fixed point can be empirical value.Second saturation Tuning function is also based on the tone H component of image.The saturation S component of pending image is inputted the second saturation Tuning function, the saturation component after can being adjusted.
Please refer to Fig. 6, it illustrates the illustrative diagram of saturation correction curve in HSV color space.As shown in Figure 6, for the ease of clearly observing the change of the saturation S component of image before and after adjustment, made a diagonal 610 in figure, the some transverse and longitudinal coordinate on this line is identical, can be used for representing that the saturation of image before and after adjustment does not change.Another curve 620 is saturation correction curve in HSV color space.For saturation correction curve, the saturation S component respective value horizontal in figure, ordinate represents image before and after adjustment respectively.Horizontal in figure, ordinate value is the value after normalization.As can be seen from Figure 6, saturation correction curve is all in cornerwise top, and namely when abscissa is identical, the ordinate of curve is greater than cornerwise ordinate.That is, the saturation S component after adjustment equals the saturation S component before adjusting, and S component (e.g., the 0.3-0.7) adjusting range of the value that mediates is larger.
Continue Fig. 1, then, in step 105, the image after process is converted back rgb color space.
In the present embodiment, the image after process is converted back rgb color space, obtains the image after color enhancement, export with electronic device or present.
The image color Enhancement Method that above-described embodiment of the application provides, by adjusting the tone of image, saturation and/or brightness at HSI color space and HSV color space, from the characteristic of color itself and human vision property two angles, image is processed, the contrast of image can be improved, make image more objective, closer to realistic colour, meet again the visual effect of people.
Although it should be noted that the operation describing the inventive method in the accompanying drawings with particular order, this is not that requirement or hint must perform these operations according to this particular order, or must perform the result that all shown operation could realize expectation.On the contrary, the step described in flow chart can change execution sequence.In certain embodiments, the step 103 in Fig. 1,104 can be carried out before step 101,102, was also that the process in two color spaces can reversed order.Additionally or alternatively, some step can be omitted, multiple step be merged into a step and perform, and/or a step is decomposed into multiple step and perform.
With further reference to Fig. 7, it illustrates the structural representation of an embodiment of the image color enhancement device 700 provided according to the application.
As shown in Figure 7, the image color enhancement device 700 that the present embodiment provides can comprise: the first modular converter 710, first processing module 720, second modular converter 730, second processing module 740 and the 3rd modular converter 750.Wherein, the first modular converter 710 is for being converted to the first color space by pending image by rgb color space; First processing module 720 is for carrying out enhancing process at the first color space to the color attribute of image; Second modular converter 730 is for being converted to the second color space by the image after process; Second processing module 740 is for carrying out enhancing process at the second color space to the color attribute of image; And the 3rd modular converter 750 for by process after image convert back rgb color space; Wherein, the first color space be HSI and HSV color space one of them, the second color space be in HSI and HSV color space another; Color attribute comprises at least one item in tone, saturation and brightness.
In some optional implementations, image color enhancement device 700 can also comprise: scene determination module (not shown), for determining the scene type of pending image; And the first processing module 720 and the second processing module 740 also for: based on the scene type of pending image, the Attribute tuning function according to correspondence adjusts the color attribute of image respectively.
In some optional implementations, first processing module 720 or the second processing module 740 also for: at HSI color space, respectively the tone H component of image and saturation S component are adjusted according to the first hue adjustment function, the first saturation Tuning function; At HSI color space, the brightness I component of image is adjusted; At HSV color space, respectively the tone H component of image and saturation S component are adjusted according to the second hue adjustment function and the second saturation Tuning function.
In some optional implementations, the first saturation Tuning function and the second saturation Tuning function are also based on the tone of image.
In some optional implementations, the first processing module 720 or the second processing module 740 are also for processing according to the following brightness I component to image: for dark image and the dark image of non-over carry out brightness adjustment respectively excessively.
In some optional implementations, the first processing module 720 or the second processing module 740 are further used for: mean flow rate and the high brightness ratio of determining image; If the mean flow rate of image lower than luminance threshold and high brightness ratio lower than proportion threshold value, then determine that image was dark image, otherwise determine that image is the dark image of non-over; And for crossing dark image, carry out the first brightness adjustment; For the dark image of non-over, carry out the second brightness adjustment.
In some optional implementations, the first processing module 720 or the second processing module 740 can carry out the first brightness adjustment according to following formula to crossing dark image: if I≤A, I be ˊ=I*B/A; Otherwise, I ˊ=(I-A) * (255-B)/(255-A)+B; Wherein, I is the luminance component before adjustment, and I ˊ is the luminance component after adjustment, and A is the decline cut-off point in Luminance Distribution histogram, B=(int) (0.3*A+180).
In some optional implementations, the first processing module 720 or the second processing module 740 can be performed as follows the second brightness adjustment: carry out brightness adjustment according to brightness adjustment function to the dark image of non-over.
In some optional implementations, scene type comprises following at least one item: food, personage and landscape.
The image color enhancement device that the present embodiment provides, by the first modular converter, pending image is converted to the first color space by rgb color space, first processing module carries out enhancing process at the first color space to the color attribute of image, then the image after process is converted to the second color space by the second modular converter, second processing module carries out enhancing process at the second color space to the color attribute of image, image after process is converted back rgb color space by last 3rd modular converter, the contrast of image can be improved, make image more beautiful, closer to realistic colour.
With further reference to Fig. 8, it illustrates the structural representation of an embodiment of the electronic equipment 800 provided according to the application.
As shown in Figure 8, the electronic equipment 800 that the present embodiment provides can comprise processor 810 and display 820.Wherein, processor 810 is configured for: pending image is converted to the first color space by rgb color space; At the first color space, enhancing process is carried out to the color attribute of image; Image after process is converted to the second color space; At the second color space, enhancing process is carried out to the color attribute of image; And the image after process is converted back rgb color space; Image after display 820 is configured for and presents process; Wherein, the first color space be HSI and HSV color space one of them, the second color space be in HSI and HSV color space another; Color attribute comprises at least one item in tone, saturation and brightness.
Below with reference to Fig. 9, it illustrates the structural representation of the computer system 900 of the electronic equipment be suitable for for realizing the embodiment of the present application.
As shown in Figure 9, computer system 900 comprises CPU (CPU) 901, and it or can be loaded into the program random access storage device (RAM) 903 from storage area 908 and perform various suitable action and process according to the program be stored in read-only memory (ROM) 902.In RAM 903, also store system 900 and operate required various program and data.CPU 901, ROM 902 and RAM 903 are connected with each other by bus 904.I/O (I/O) interface 905 is also connected to bus 904.
I/O interface 905 is connected to: the importation 906 comprising keyboard, mouse etc. with lower component; Comprise the output 907 of such as cathode ray tube (CRT), liquid crystal display (LCD) etc. and loud speaker etc.; Comprise the storage area 908 of hard disk etc.; And comprise the communications portion 909 of network interface unit of such as LAN card, modulator-demodulator etc.Communications portion 909 is via the network executive communication process of such as internet.Driver 910 is also connected to I/O interface 905 as required.Detachable media 911, such as disk, CD, magneto optical disk, semiconductor memory etc., be arranged on driver 910 as required, so that the computer program read from it is mounted into storage area 908 as required.
Especially, according to embodiment of the present disclosure, the process that reference flow sheet describes above may be implemented as computer software programs.Such as, embodiment of the present disclosure comprises a kind of computer program, and it comprises the computer program visibly comprised on a machine-readable medium, and described computer program comprises the program code for the method shown in flowchart.In such embodiments, this computer program can be downloaded and installed from network by communications portion 909, and/or is mounted from detachable media 911.
Flow chart in accompanying drawing and block diagram, illustrate according to the architectural framework in the cards of the system of various embodiments of the invention, method and computer program product, function and operation.In this, each square frame in flow chart or block diagram can represent a part for module, program segment or a code, and a part for described module, program segment or code comprises one or more executable instruction for realizing the logic function specified.Also it should be noted that at some as in the realization of replacing, the function marked in square frame also can be different from occurring in sequence of marking in accompanying drawing.Such as, in fact the square frame that two adjoining lands represent can perform substantially concurrently, and they also can perform by contrary order sometimes, and this determines according to involved function.Also it should be noted that, the combination of the square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart, can realize by the special hardware based system of the function put rules into practice or operation, or can realize with the combination of specialized hardware and computer instruction.
Be described in unit module involved in the embodiment of the present application to be realized by the mode of software, also can be realized by the mode of hardware.Described unit module also can be arranged within a processor, such as, can be described as: a kind of processor comprises the first modular converter, the first processing module, the second modular converter, the second processing module and the 3rd modular converter.Wherein, the title of these unit modules does not form the restriction to this unit module itself under certain conditions, and such as, the first modular converter, can also be described to " for pending image is converted to the first color space by rgb color space ".
As another aspect, present invention also provides a kind of computer-readable recording medium, this computer-readable recording medium can be the computer-readable recording medium comprised in device described in above-described embodiment; Also can be individualism, be unkitted the computer-readable recording medium allocated in terminal.Described computer-readable recording medium stores more than one or one program, and described program is used for performance description in the image color Enhancement Method of the application by one or more than one processor.
More than describe and be only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art are to be understood that, invention scope involved in the application, be not limited to the technical scheme of the particular combination of above-mentioned technical characteristic, also should be encompassed in when not departing from described inventive concept, other technical scheme of being carried out combination in any by above-mentioned technical characteristic or its equivalent feature and being formed simultaneously.The technical characteristic that such as, disclosed in above-mentioned feature and the application (but being not limited to) has similar functions is replaced mutually and the technical scheme formed.

Claims (10)

1. an image color Enhancement Method, is characterized in that, described method comprises:
Pending image is converted to the first color space by rgb color space;
At the first color space, enhancing process is carried out to the color attribute of described image;
Image after process is converted to the second color space;
At the second color space, enhancing process is carried out to the color attribute of described image; And
Image after process is converted back rgb color space;
Wherein, described first color space be HSI and HSV color space one of them, described second color space be in HSI and HSV color space another;
Described color attribute comprises at least one item in tone, saturation and brightness.
2. method according to claim 1, is characterized in that, also comprises:
Determine the scene type of described pending image; And
Described at the first color space with carry out enhancing process at the second color space to the color attribute of described image and comprise:
Based on the scene type of described pending image, the Attribute tuning function according to correspondence adjusts the color attribute of described image respectively.
3. method according to claim 2, is characterized in that, the described scene type based on described pending image, carries out enhancing process respectively comprise according to the Attribute tuning function of correspondence to the color attribute of described image:
At HSI color space, respectively the tone H component of described image and saturation S component are adjusted according to the first hue adjustment function, the first saturation Tuning function;
At HSI color space, the brightness I component of described image is adjusted;
At HSV color space, respectively the tone H component of described image and saturation S component are adjusted according to the second hue adjustment function and the second saturation Tuning function.
4. method according to claim 3, is characterized in that, described first saturation Tuning function and the second saturation Tuning function are also based on the tone of described image.
5. method according to claim 3, is characterized in that, the described brightness I component to described image carries out process and comprises by carrying out brightness adjustment respectively for the dark image of mistake and the dark image of non-over as follows:
Determine mean flow rate and the high brightness ratio of image;
If the mean flow rate of described image lower than luminance threshold and high brightness ratio lower than proportion threshold value, then determine that described image was dark image, otherwise determine that described image is the dark image of non-over; And
For crossing dark image, carry out the first brightness adjustment;
For the dark image of non-over, carry out the second brightness adjustment.
6. method according to claim 5, is characterized in that, comprising: carry out the first brightness adjustment according to following formula to crossing dark image:
If I≤A, I be ˊ=I*B/A;
Otherwise, I ˊ=(I-A) * (255-B)/(255-A)+B;
Wherein, I is the luminance component before adjustment, and I ˊ is the luminance component after adjustment, and A is the decline cut-off point in Luminance Distribution histogram, B=(int) (0.3*A+180).
7., according to the arbitrary described method of claim 1-6, it is characterized in that, described scene type comprises following at least one item: food, personage and landscape.
8. an image color enhancement device, is characterized in that, described device comprises:
First modular converter, for being converted to the first color space by pending image by rgb color space;
First processing module, for carrying out enhancing process at the first color space to the color attribute of described image;
Second modular converter, for being converted to the second color space by the image after process;
Second processing module, for carrying out enhancing process at the second color space to the color attribute of described image; And
3rd modular converter, for converting back rgb color space by the image after process;
Wherein, described first color space be HSI and HSV color space one of them, described second color space be in HSI and HSV color space another;
Described color attribute comprises at least one item in tone, saturation and brightness.
9. device according to claim 8, is characterized in that, also comprises:
Scene determination module, for determining the scene type of described pending image; And
Described first processing module and the second processing module also for:
Based on the scene type of described pending image, the Attribute tuning function according to correspondence adjusts the color attribute of described image respectively.
10. an electronic equipment, comprises display and processor, it is characterized in that,
Described processor is configured for:
Pending image is converted to the first color space by rgb color space;
At the first color space, enhancing process is carried out to the color attribute of described image;
Image after process is converted to the second color space;
At the second color space, enhancing process is carried out to the color attribute of described image; And
Image after process is converted back rgb color space;
Described display is configured for the image after presenting described process;
Wherein, described first color space be HSI and HSV color space one of them, described second color space be in HSI and HSV color space another;
Described color attribute comprises at least one item in tone, saturation and brightness.
CN201510295700.2A 2015-06-02 2015-06-02 Image color Enhancement Method, device and electronic equipment Active CN104935902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510295700.2A CN104935902B (en) 2015-06-02 2015-06-02 Image color Enhancement Method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510295700.2A CN104935902B (en) 2015-06-02 2015-06-02 Image color Enhancement Method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN104935902A true CN104935902A (en) 2015-09-23
CN104935902B CN104935902B (en) 2017-03-15

Family

ID=54122836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510295700.2A Active CN104935902B (en) 2015-06-02 2015-06-02 Image color Enhancement Method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN104935902B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105405130A (en) * 2015-11-02 2016-03-16 北京旷视科技有限公司 Cluster-based license image highlight detection method and device
WO2017063223A1 (en) * 2015-10-13 2017-04-20 深圳市华星光电技术有限公司 Method and system for improving contrast of oled display panel
CN107317967A (en) * 2017-07-27 2017-11-03 广东欧珀移动通信有限公司 Image processing method, device, mobile terminal and computer-readable recording medium
CN108280813A (en) * 2018-01-30 2018-07-13 努比亚技术有限公司 A kind of image processing method, terminal and computer readable storage medium
CN109671399A (en) * 2018-12-11 2019-04-23 惠科股份有限公司 A kind of driving method of display module, drive system and display device
CN110648373A (en) * 2019-09-16 2020-01-03 紫光展讯通信(惠州)有限公司 Image processing method and device
CN111145128A (en) * 2020-03-02 2020-05-12 Oppo广东移动通信有限公司 Color enhancement method and related device
CN113658280A (en) * 2021-08-20 2021-11-16 平安科技(深圳)有限公司 Data augmentation method, device, equipment and storage medium based on artificial intelligence
CN108257221B (en) * 2018-02-24 2022-02-01 网易(杭州)网络有限公司 Tone adjusting method, tone adjusting apparatus, storage medium, and electronic apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070211176A1 (en) * 2006-03-08 2007-09-13 Marketech Internation Corp. Apparatus and method for adjusting saturation image
CN104284168A (en) * 2014-10-17 2015-01-14 深圳市华星光电技术有限公司 Image color enhancing method and system
CN104299196A (en) * 2014-10-11 2015-01-21 京东方科技集团股份有限公司 Image processing device and method and display device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070211176A1 (en) * 2006-03-08 2007-09-13 Marketech Internation Corp. Apparatus and method for adjusting saturation image
CN104299196A (en) * 2014-10-11 2015-01-21 京东方科技集团股份有限公司 Image processing device and method and display device
CN104284168A (en) * 2014-10-17 2015-01-14 深圳市华星光电技术有限公司 Image color enhancing method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘安娜等: "基于颜色空间的单幅图像去雾算法", 《现代电子技术》 *
基于颜色空间的单幅图像去雾算法;刘安娜等;《现代电子技术》;20130915;第36卷(第18期);参见摘要以及章节2"图像复原算法" *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2556855B (en) * 2015-10-13 2021-09-01 Shenzhen China Star Optoelect Method of raising contrast of OLED display panel and system
GB2556855A (en) * 2015-10-13 2018-06-06 Shenzhen China Star Optoelect Method and system for improving contrast of OLED display panel
WO2017063223A1 (en) * 2015-10-13 2017-04-20 深圳市华星光电技术有限公司 Method and system for improving contrast of oled display panel
CN105405130A (en) * 2015-11-02 2016-03-16 北京旷视科技有限公司 Cluster-based license image highlight detection method and device
CN107317967A (en) * 2017-07-27 2017-11-03 广东欧珀移动通信有限公司 Image processing method, device, mobile terminal and computer-readable recording medium
CN108280813A (en) * 2018-01-30 2018-07-13 努比亚技术有限公司 A kind of image processing method, terminal and computer readable storage medium
CN108257221B (en) * 2018-02-24 2022-02-01 网易(杭州)网络有限公司 Tone adjusting method, tone adjusting apparatus, storage medium, and electronic apparatus
CN109671399B (en) * 2018-12-11 2020-08-18 惠科股份有限公司 Driving method and driving system of display module and display device
CN109671399A (en) * 2018-12-11 2019-04-23 惠科股份有限公司 A kind of driving method of display module, drive system and display device
CN110648373A (en) * 2019-09-16 2020-01-03 紫光展讯通信(惠州)有限公司 Image processing method and device
CN110648373B (en) * 2019-09-16 2022-04-15 紫光展讯通信(惠州)有限公司 Image processing method and device
CN111145128A (en) * 2020-03-02 2020-05-12 Oppo广东移动通信有限公司 Color enhancement method and related device
CN111145128B (en) * 2020-03-02 2023-05-26 Oppo广东移动通信有限公司 Color enhancement method and related device
CN113658280A (en) * 2021-08-20 2021-11-16 平安科技(深圳)有限公司 Data augmentation method, device, equipment and storage medium based on artificial intelligence
CN113658280B (en) * 2021-08-20 2023-07-04 平安科技(深圳)有限公司 Data augmentation method, device, equipment and storage medium based on artificial intelligence

Also Published As

Publication number Publication date
CN104935902B (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN104935902A (en) Image color enhancement method and device, and electronic equipment
US8325198B2 (en) Color gamut mapping and brightness enhancement for mobile displays
CN101340511B (en) Adaptive video image enhancing method based on lightness detection
CN101507258B (en) Gamut mapping method and equipment, related receiver and camera
CN102693532B (en) The automatic local directed complete set of image shadow and highlight
CN107909553B (en) Image processing method and device
CN101794565B (en) Image display method, device and system
KR20070111389A (en) Image correction circuit, image correction method, and image display
CN110910333B (en) Image processing method and image processing apparatus
US20080259007A1 (en) Method for dynamically adjusting brightness of image
CN113507598B (en) Video picture display method, device, terminal and storage medium
WO2019101005A1 (en) Pixel compensation method and apparatus, and terminal device
CN104811677A (en) Display control method and device of mobile terminal
CN103685850A (en) Image processing method and image processing apparatus
CN1655626B (en) System and method for clipping values of pixels
US7684638B2 (en) Dynamic image contrast enhancement device
CN103294429A (en) Display method and device
CN107592517B (en) Skin color processing method and device
CN109741408A (en) A kind of image and video caricature effect real-time rendering method
CN109636739B (en) Detail processing method and device for enhancing image saturation
WO2008072162A2 (en) Video processing device and method of color gamut mapping
CN102903091B (en) Method for stitching image in digital image processing apparatus
CN111862888A (en) Method, device and system for displaying four-color low-blue-light wide color gamut
US8077968B2 (en) Image processing method
CN114999363A (en) Color shift correction method, device, equipment, storage medium and program product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant