CN104796682A - Image signal color enhancement method and image signal color enhancement device - Google Patents

Image signal color enhancement method and image signal color enhancement device Download PDF

Info

Publication number
CN104796682A
CN104796682A CN201510193583.9A CN201510193583A CN104796682A CN 104796682 A CN104796682 A CN 104796682A CN 201510193583 A CN201510193583 A CN 201510193583A CN 104796682 A CN104796682 A CN 104796682A
Authority
CN
China
Prior art keywords
rgb
coefficient
enhancing
pixel
component set
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
CN201510193583.9A
Other languages
Chinese (zh)
Other versions
CN104796682B (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201510193583.9A priority Critical patent/CN104796682B/en
Publication of CN104796682A publication Critical patent/CN104796682A/en
Application granted granted Critical
Publication of CN104796682B publication Critical patent/CN104796682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention puts forwards an image signal color enhancement method, aiming to solve the technical problems of poor color enhancement effect and distortion or oversaturation caused by a conversion or enhancement process. The image signal color enhancement method includes: acquiring an original RGB (red-green-blue) component set of a pixel point of a to-be-processed region; acquiring a brightness component from the original RGB component set, wherein the brightness component is used for describing brightness of the pixel point; getting rid of the brightness component from the original RGB component set to acquire an RGB color vector; subjecting the RGB color vector to enhancement processing; adding the brightness component into the RGB color vector subjected to enhancement processing to acquire an enhanced RGB component set; displaying the pixel point through the enhanced RGB component set. Meanwhile, the invention discloses an image signal color enhancement device for achieving the image signal color enhancement method. The image signal color enhancement method and the image signal color enhancement device in the technical scheme have the advantages that enhancement effects are real and natural, oversaturation or color information loss caused by conversion is avoided, and the effect can be enhanced maximally without color distortion.

Description

Color enhancement method and apparatus in picture signal
Technical field
The present invention relates to Computer Image Processing field, the color enhancement method and apparatus particularly in a kind of picture signal.
Background technology
It is the capability of human visual system to the visually-perceptible of colour.Coloured image is a kind of vector image, and color image enhancement technology of the prior art can be divided into two large classes: gray level image is converted/is converted to coloured image to improve the observation efficiency of people to picture material; Or: directly coloured image is strengthened, consider that the institute of colour phasor is important simultaneously, but can treat with a certain discrimination different component.
In general be the primary systems belonging to " superimposed type " with the color used during light source projects, contain red, green, blue three kinds of primary colors in this system, be also called " three primary colors ".Use these three kinds of primary colors can produce other colors, such as red mixing with green can produce yellow or orange, green mixing with blueness can produce cyan (Cyan), and blue mixing with redness can produce purple or magenta (Magenta).When these three kinds of primary colors are superimposed with equal proportion, meeting grizzle; If this trichromatic intensity is all adjusted to maximum and equivalent overlapping time, then can present white.This cover primary systems is often called as " rgb color space ", that is the color system be combined into by red (R) green (G) blue (B).
In addition, the mankind also describe colored by three kinds of essential characteristic amounts, respectively: brightness, be directly proportional to the reflectivity of object; Tone, is associated with the wavelength of light in spectrum; Color saturation is relevant to the purity of certain tone light.Tone and color saturation are collectively referred to as colourity, and colour can represent jointly by brightness and colourity.Human eye is a kind of physiology and psychological phenomena for the observation of colour and process, and the many conclusions for colour build on experiment basis.In color enhancement field, it is correct that Retinex theory proposition enhancing can realize image to comparison, this theoretical main thought is as follows: Retinex theory mainly contains the content of two aspects: the color of object is determined the albedo of long wave, medium wave and shortwave light by object, instead of determined by the absolute value of intensity of reflected light; The color of object does not affect by illumination is heteropic, has consistency.According to the color theory of Retinex, there is a kind of method realizing image enhaucament in prior art, mainly comprise following step:
(1) data encasement.If input picture is coloured image, be then divided into R, G, B tri-wave bands; The value of each pixel is converted to floating number by integer.
(2) achromatic sensation relatively in each wave band is calculated.
(3) data display.The color-values that relative relationship between light and dark in each wave band between pixel is determined is converted to rgb value can show in existing equipment and use.
Theoretical according to this, there is different implementations, comprising:
A kind of image enhaucament implementation method, promote image effect by strengthening to comparison, concrete formula is: the mean value * brightness of R (i, j)=[mean value of R (i, j)-R] * setting contrast coefficient+R.The program belongs to the change of color saturation, and do not consider supersaturation problem and saturated rear form and aspect variation issue, region contrast can be caused to lose, and color changes.
Another prior art provides a kind of image color enhancement device and method, and main thought is that the view data of input is transformed into HSV space from rgb space by color-space conversion module; Gain function generation module based on colourity receives between the colourity regulatory region of user's setting, generates the gain function based on colourity of this colourity subregion; Based in the colourity regulatory region that the gain function generation module of saturation is arranged this user, generate the gain function based on saturation; Saturation strengthens module and utilizes the described gain function based on colourity and the described gain function based on saturation to strengthen saturation.The brightness of program HSV space is expressed unreasonable, and too simply, conversion there will be relatively large deviation after going back; The gamut range of HSV space and the gamut range of RGB different, can the problems such as supersaturation be caused in transfer process.
Another prior art provides a kind of algorithm for image enhancement based on hsl space and self adaptation atanh function, comprises step: (1) carries out the spatial alternation of RGB to HSL to image; (2) for luminance channel L, optimised self adaptation atanh function is used to carry out the enhancing of brightness and contrast; (3) correct to remove noise to luminance channel; (4) RGB conversion is carried out to the HSL image after enhancing, obtain final image result.The program only strengthens brightness, little with color enhancement relation; The supersaturation problem that color gamut conversion causes still exists.
Summary of the invention
For this reason, need to provide the conversion of a kind of not reason to cause supersaturation and conversion effect true nature, non-missing color information the method and apparatus that vector strengthens to realize image color is carried out to RGB.
For achieving the above object, inventor provide a kind of color enhancement method in picture signal, comprise step:
Obtain the original RGB component set of pending region one pixel;
Obtaining the RGB component set through strengthening based on original RGB component set, specifically comprising:
From described original RGB component set, obtain luminance component, described luminance component is for describing the brightness of described pixel; From described original RGB component set, remove described luminance component, obtain rgb color vector; One enhancing process is carried out to described rgb color vector; Described luminance component being added the rgb color vector after strengthening process, obtaining the RGB component set through strengthening;
Described pixel is shown with the described RGB component set through strengthening.
Further, in color enhancement method in described picture signal, obtain pending region one pixel (i, j) original RGB component set, described original RGB component set comprises R component r (i, j), G component g (i, j) and B component b (i, j); Wherein i, j are respectively abscissa and the ordinate of described pixel;
Step " obtains luminance component " and specifically comprises from described original RGB component set: be separated according to predetermined luminance the luminance component br (i, j) that formula obtains described pixel from RGB component set;
The formula obtained through the RGB component of enhancing based on original RGB component set is:
r’(i,j)=Eh*(r(i,j)-br(i,j))+br(i,j);
g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j);
b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j);
Eh is for strengthening coefficient, and described enhancing coefficient comprises the default coefficient Eh1 of enhancing or optimum strengthens coefficient Eh (i, j).
Further, in the color enhancement method in described picture signal, strengthen coefficient and meet overflow control condition, described overflow control condition refers to: r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and.
Further, in the color enhancement method in described picture signal, treat in processing region and carry out strengthening the pixel that process meets overflow control condition with default enhancing coefficient Eh1, carry out enhancing process with default enhancing coefficient Eh1; Treat in processing region and carry out strengthening the pixel that process does not meet overflow control condition with default enhancing coefficient Eh1, strengthen coefficient Eh (i, j) with optimum and carry out enhancing process.
Further, in the color enhancement method in described picture signal, described optimum strengthen coefficient Eh (i, j) for make r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and maximum Eh separate.
Further, in color enhancement method in described picture signal, to treat in processing region all pixels and all carry out enhancing process with default enhancing coefficient Eh1, or to treat in processing region all pixels and all strengthen coefficient Eh (i, j) with optimum and carry out enhancings and process.
Inventor additionally provides the color enhancement device in a kind of picture signal simultaneously, comprises RGB acquiring unit, luminance component acquiring unit, color vector acquiring unit, enhancement unit, computing unit and display unit;
Described RGB acquiring unit is for obtaining the original RGB component set of pending region one pixel;
Described luminance component acquiring unit, color vector acquiring unit, enhancement unit, computing unit are used for, based on the RGB component set of original RGB component set acquisition through strengthening, specifically comprising:
Described luminance component acquiring unit obtains luminance component from described original RGB component set, and described luminance component is for describing the brightness of described pixel; Described color vector acquiring unit removes described luminance component from described original RGB component set, obtains rgb color vector; Described enhancement unit carries out an enhancing process to described rgb color vector; Described luminance component is added the rgb color vector after strengthening process by described computing unit, obtains the RGB component set through strengthening;
Described display unit is used for showing described pixel with the described RGB component set through strengthening.
Further, in color enhancement device in described picture signal, described RGB acquiring unit obtains pending region one pixel (i, j) original RGB component set, described original RGB component set comprises R component r (i, j), G component g (i, j) and B component b (i, j); Wherein i, j are respectively abscissa and the ordinate of described pixel;
Described luminance component acquiring unit obtains luminance component and specifically comprises from described original RGB component set: be separated according to predetermined luminance the luminance component br (i, j) that formula obtains described pixel from RGB component set;
The formula obtained through the RGB component set of enhancing based on original RGB component set is:
r’(i,j)=Eh*(r(i,j)-br(i,j))+br(i,j);
g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j);
b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j);
Eh is for strengthening coefficient, and described enhancing coefficient comprises the default coefficient Eh1 of enhancing or optimum strengthens coefficient Eh (i, j).
Further, in the color enhancement device in described picture signal, described enhancing coefficient meets overflow control condition, described overflow control condition refers to: r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and.
Further, in the color enhancement device in described picture signal, treat in processing region and carry out strengthening the pixel that process meets overflow control condition with default enhancing coefficient Eh1, carry out enhancing process with default enhancing coefficient Eh1; Treat in processing region and carry out strengthening the pixel that process does not meet overflow control condition with default enhancing coefficient Eh1, strengthen coefficient Eh (i, j) with optimum and carry out enhancing process.
Further, in the color enhancement device in described picture signal, described optimum strengthens coefficient Eh (i, j) for making r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and the maximum of solution of Eh.
Further, in color enhancement device in described picture signal, to treat in processing region all pixels and all carry out enhancing process with default enhancing coefficient Eh1, or to treat in processing region all pixels and all strengthen coefficient Eh (i, j) with optimum and carry out enhancings and process.
Be different from prior art, the enhancing effect true nature of technique scheme, not because conversion causes supersaturation or missing color information, while ensure that enhancing to greatest extent, color is undistorted.
Accompanying drawing explanation
Fig. 1 is the flow chart of the color enhancement method in picture signal described in an embodiment of the present invention;
Fig. 2 is the structural representation of the color enhancement device in picture signal described in an embodiment of the present invention.
Description of reference numerals:
1-RGB acquiring unit
2-luminance component acquiring unit
3-color vector acquiring unit
4-enhancement unit
5-computing unit
6-display unit
Embodiment
By describe in detail technical scheme technology contents, structural feature, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
Referring to Fig. 1, is the flow chart of the color enhancement method in picture signal described in an embodiment of the present invention; Described method comprises the steps:
S1, obtain the original RGB component set of pending region one pixel (i, j);
S2, obtaining the RGB component set through strengthening based on original RGB component set, specifically comprising:
S2-1, be separated formula from described original RGB component set, obtain the luminance component br (i, j) of described pixel according to predetermined luminance, described luminance component is for describing the brightness of this pixel;
S2-2, from described original RGB component, remove described luminance component, obtain rgb color vector;
S2-3, an enhancing process is carried out to described rgb color vector;
S2-4, described luminance component being added the rgb color vector after strengthening process, obtaining the RGB component set through strengthening;
S3, with described through strengthen RGB component set show described pixel.
Described RGB component set comprises R component r (i, j), G component g (i, j) and B component b (i, j); Wherein i, j are respectively the abscissa of described pixel in this process image and ordinate." pending region " can be the whole or regional area when pre-treatment image.Such as, pending region can be working as in pre-treatment image, and a length is m pixel, and width is the region of n-pixel point.And the color being positioned at this pixel (i, j) in this pending region can by a RGB component information (such as r (i, j)=25; G (i, j)=124; B (i, j)=202) describe.
Then, from the RGB component information of above-mentioned pixel (i, j), isolate a luminance component br (i, j), this luminance component br (i, j) can be used for expressing brightness and the relevant information of this pixel (i, j).
In one embodiment, luminance component br (i, j) is separated by an available brightness separation formula from the RGB component information of this pixel (i, j).
Described brightness is separated formula and can be specially:
br(i,j)=wr*r(i,j)+wg*g(i,j)+wb*b(i,j);
Wherein, wr, wg, wb are coefficient, and the value of coefficient is determined according to concrete urban d evelopment; The following restrictive condition of three's demand fulfillment:
Wr+wg+wb=1, and:
0<wr<1;
0<wg<1;
0<wb<1。
Be separated according to above-mentioned brightness br (i, j) value that formula obtains and can be considered a brightness value corresponding with the RGB information of this pixel (i, j).
Following description goes for enhancing pixel, or strengthens the multiple pixels in a pending region.For each pixel (or certain specific pixel) in pending region, after the RGB component information of this pixel is removed a corresponding luminance component, then do further image enhancement processing.Afterwards, then the RBG component after the luminance component add-back of removing before is strengthened, to obtain a pixel enhanced.Specifically, enhancing process can be done according to following step.
If the formula of a RGB component set obtained through strengthening based on original RGB component set is:
r’(i,j)=Eh*(r(i,j)-br(i,j))+br(i,j);
g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j);
b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j);
Wherein, i=0,1,2 ..., m; J=0,1,2 ..., n; M is the length in pending region, and n is the width in pending region.In processing region one is positioned to the pixel of (i, j), first can obtains its luminance component br (i, j) according to the step of above-mentioned S2 from its RGB component information.Afterwards, according to above-mentioned enhancing process formula, by RGB tri-component r (i, j) of this pixel, g (i, j), b (i, j) remove this luminance component br (i, j) respectively.Remove three RGB component (r (i after luminance component, j)-br (i, j)), (g (i, j)-br (i, j)), after (b (i, j)-br (i, j)) strengthens the enhancing of coefficient Eh by one, the luminance component br (i, j) removed before adding respectively again.After strengthening operation above, a brightness can be obtained constant, but the pixel that color saturation enhances.In a word, treat all pixels of processing region with above-mentioned formula travel through and strengthen process.
In one embodiment, Eh is for strengthening coefficient.When strengthening coefficient Eh and equaling 1, above-mentioned enhancing formula can not change the color information of a pixel.When strengthening coefficient Eh and being greater than 1, above-mentioned enhancing formula can keep, under brightness and the constant prerequisite of color, strengthening the color saturation of a pixel.When strengthen coefficient Eh be less than 1 be greater than 0 time, above-mentioned enhancing formula can keep, under brightness and the constant prerequisite of color, weakening the color saturation of a pixel.Therefore, described " enhancing " can be regarded as and namely comprise enhancing and also comprise the adjustment action weakened herein.For some pixels, described enhancing coefficient need meet an overflow control condition.Such as, when RGB component is with 8 color depths, described overflow control condition can refer to:
0≤r’(i,j)=Eh*(r(i,j)-br(i,j))+br(i,j)≤255;
0≤g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j)≤255;
0≤b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j)≤255。
In other words, for each pixel utilizing this enhancing coefficient Eh to strengthen, its strengthen after RGB component information can not overflow (namely can not be greater than 255 or be less than 0).Therefore, strengthening coefficient Eh needs to be used for the pixel of enhancing one or a part, and the pixel of this or this part can not be allowed again to overflow.
In one embodiment, strengthen coefficient and can be an Eh1 preset.During concrete operations, for those pixels in pending region, carry out with default enhancing coefficient Eh1 the part pixel meeting overflow control condition when strengthening process, can preset with this and strengthen coefficient Eh1 and carry out enhancings and process; And for when carrying out enhancing process with default enhancing coefficient Eh1, do not meet the other one part of pixel point of overflow control condition, enhancing process can be carried out with optimum coefficient Eh (i, j) that strengthens.Described optimum strengthens the maximum in the common factor that coefficient Eh (i, j) is the disaggregation of the following inequality group about Eh:
0≤r’(i,j)=Eh(i,j)*(r(i,j)-br(i,j))+br(i,j)≤255;
0≤g’(i,j)=Eh(i,j)*(g(i,j)-br(i,j))+br(i,j)≤255;
0≤b’(yi,j)=Eh(i,j)*(b(i,j)-br(i,j))+br(i,j)≤255。
In other words, a process pixel (such as, the pixel (i that can overflow is strengthened for carrying out with default enhancing coefficient Eh1, j)), can calculate should maximum Eh (i, the j) value of pixel (i, j) with above-mentioned inequality.Then by Eh (i, j) value strengthens coefficient as optimum and strengthens pixel (i, j). so, carry out strengthening process any pixel that can overflow with default enhancing coefficient Eh1, carry out enhancing process with enhancing coefficient Eh (i, j) corresponding with this pixel can not overflow.In certain embodiments, also can obtain one for pixels all in pending region, one that can meet above-mentioned inequality strengthens coefficient Eh (i, j), and strengthen all pixels in pending region with this enhancing coefficient Eh (i, j).
In other embodiments, pixels all in pending region all can also be carried out enhancing process with default enhancing coefficient Eh1; Or pixels all in pending region are all carried out enhancing process with optimum enhancing coefficient Eh (i, j); Or compare through treating all pixels in processing region all carry out strengthening process display effect with default enhancing coefficient Eh1 and all strengthening coefficient Eh (i with optimum through treating all pixels in processing region, j) display effect strengthening process is carried out, and select to be used as strengthening coefficient with Eh1 or Eh (i, j) to carry out enhancing process with the scheme that display effect is more excellent.
The essence of image brightness is actually the brightness of each pixel in image, and the brightness of each pixel is presented as the size of rgb value when realizing.Rgb value be 0 pixel be black, pixel the brightest (for white) when rgb value is 255.Contrast then refers to the difference between different pixels point, and the larger then contrast of this difference is more obvious.Come from the viewpoint of histogram analysis, the picture that contrast is higher, its histogram curve can be more obvious, and the distribution of pixel in histogram of picture also more seems even.
Color enhancement method in picture signal in above-mentioned execution mode described in step S1-S3 deducts an identical brightness value on RGB basis, be equivalent to and deduct a gray value to RGB component, remaining visualization of information is a Vector Message (" color vector ") irrelevant with brightness.The color vector enterprising line linearity irrelevant in this and brightness converts (such as, strengthening with enhancing coefficient), then this brightness value of add-back, can obtain a brightness constant, but the image of color enhancement.Because when RGB represents color, RGB is respectively worth proportional representation color, it is exactly strengthen colorfulness and weaken process that this programme carries out convergent-divergent actual to color vector, and ensures that color vector weighted value is 0.After being processed by identical enhancing coefficient, the weighted value of color vector is still 0.Due to the mutual constant rate of the vector in color vector, therefore ensure that the color saturation of processed image strengthens, but overall color is constant.
Referring to Fig. 2, is the structural representation of the color enhancement device in picture signal described in an embodiment of the present invention.Described device comprises RGB acquiring unit 1, luminance component acquiring unit 2, color vector acquiring unit 3, enhancement unit 4, computing unit 5 and display unit 6;
Described RGB acquiring unit 1 is for obtaining pending region one pixel (i, j) original RGB component set, described original RGB component set comprises R component r (i, j), G component g (i, j) with B component b (i, j); Wherein i, j are respectively abscissa and the ordinate of described pixel;
Described luminance component acquiring unit 2 for obtaining luminance component from described original RGB component set, and described luminance component is for describing the brightness of described pixel; A kind of implementation is separated according to predetermined luminance the luminance component br (i, j) that formula obtains described pixel from original RGB component set;
Described color vector acquiring unit 3, for removing described luminance component from described original RGB component set, obtains rgb color vector;
Described enhancement unit 4 is for carrying out an enhancing process to described rgb color vector;
Described computing unit 5, for described luminance component being added the rgb color vector through strengthening after process, obtains the RGB component set through strengthening;
Described display unit 6 is for showing described pixel with the described RGB component set through strengthening.
The work obtained through the RGB component set of enhancing based on original RGB component set combines realization by RGB acquiring unit 1, luminance component acquiring unit 2, color vector acquiring unit 3, enhancement unit 4, computing unit 5, and formula is as follows:
r’(i,j)=Eh*(r(i,j)-br(i,j))+br(i,j);
g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j);
b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j);i=0,1,2,…,m;j=0,1,2,…,n;
Wherein m is the length in pending region, and n is the width in pending region;
Further, pending region can be Zone Full or the regional area of working as pre-treatment image.
In a word, treat all pixels of processing region with above-mentioned color enhancement process formula travel through and strengthen process.
Eh is for strengthening coefficient, and described enhancing coefficient comprises the default coefficient Eh1 of enhancing or optimum strengthens coefficient Eh (i, j).
Further, in the color enhancement device in described picture signal, described enhancing coefficient meets overflow control condition, described overflow control condition refers to: r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and.
Further, in the color enhancement device in described picture signal, treat in processing region and carry out strengthening the pixel that process meets overflow control condition with default enhancing coefficient Eh1, enhancement unit 4 carries out enhancing process with default enhancing coefficient Eh1; Treat in processing region and carry out strengthening the pixel that process does not meet overflow control condition with default enhancing coefficient Eh1, enhancement unit 4 strengthens coefficient Eh (i, j) with optimum and carries out enhancing process.
Further, in the color enhancement device in described picture signal, described optimum strengthens coefficient Eh (i, j) for making r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and the maximum of solution of Eh.
Further, in color enhancement device in described picture signal, enhancement unit 4 to be treated in processing region all pixels and is all carried out enhancing process with default enhancing coefficient Eh1, or to treat in processing region all pixels and all strengthen coefficient Eh (i, j) with optimum and carry out enhancings and process.
Specific to the flow process of carrying out color enhancement with the color enhancement device in described picture signal, be now described below, described flow process comprises:
RGB acquiring unit 1 obtains the original RGB component set of pending region one pixel (i, j);
Described original RGB component set comprises R component r (i, j), G component g (i, j) and B component b (i, j); Wherein i, j are respectively abscissa and the ordinate of described pixel.
Luminance component acquiring unit 2 is separated according to predetermined luminance the luminance component br (i, j) that formula obtains described pixel from described original RGB component set;
In present embodiment, described predetermined luminance is separated formula and is specially:
br(i,j)=wr*r(i,j)+wg*g(i,j)+wb*b(i,j);
Wherein, wr, wg, wb are coefficient, and the value of coefficient is determined according to concrete urban d evelopment; The following restrictive condition of three's demand fulfillment:
Wr+wg+wb=1, and:
0<wr<1;
0<wg<1;
0<wb<1。
The technique effect carrying out processing with brightness separation formula is for being separated monochrome information from RGB information.
Color vector acquiring unit 3 removes described luminance component from described original RGB component, obtains rgb color vector;
Enhancement unit 4 carries out an enhancing process to described rgb color vector;
Described luminance component is added the rgb color vector after strengthening process by computing unit 5, obtains the RGB component set through strengthening;
Formula is: r ' (i, j)=Eh* (r (i, j)-br (i, j))+br (i, j);
g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j);
b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j);i=0,1,2,…,m;j=0,1,2,…,n;
Wherein m is the length in pending region, and n is the width in pending region;
Further, pending region can be Zone Full or the regional area of working as pre-treatment image.
In a word, treat all pixels of processing region with above-mentioned process formula travel through and strengthen process.
Eh is for strengthening coefficient, and described enhancing coefficient meets overflow control condition.For 8 color depths in present embodiment, described overflow control condition refers to:
0≤r’(i,j)=Eh*(r(i,j)-br(i,j))+br(i,j)≤255;
0≤g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j)≤255;
0≤b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j)≤255。
In present embodiment, treat in processing region and carry out strengthening the pixel that process meets overflow control condition with default enhancing coefficient Eh1, carry out enhancing process with default enhancing coefficient Eh1; Treat in processing region and carry out strengthening the pixel that process does not meet overflow control condition with default enhancing coefficient Eh1, strengthen coefficient Eh (i, j) with optimum and carry out enhancing process.Described optimum strengthens the maximum in the common factor that coefficient Eh (i, j) is the disaggregation of the following inequality group about Eh:
0≤r’(i,j)=Eh*(r(i,j)-br(i,j))+br(i,j)≤255;
0≤g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j)≤255;
0≤b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j)≤255。
In other embodiments, all pixels can also to be treated in processing region and all carries out enhancing process with default enhancing coefficient Eh1, or treat in processing region all pixels and all strengthen coefficient Eh (i, j) with optimum and carry out enhancings and process; Or compare through treating all pixels in processing region all carry out strengthening process display effect with default enhancing coefficient Eh1 and all strengthening coefficient Eh (i with optimum through treating all pixels in processing region, j) display effect strengthening process is carried out, and with the image that the scheme display that display effect is more excellent processes through enhancing.
Finally, display unit 6 shows described pixel with the described RGB component set through strengthening.
The essence of image brightness is actually the brightness of each pixel in image, and the brightness of each pixel is presented as the size of rgb value when realizing.Rgb value be 0 pixel be black, pixel the brightest (for white) when rgb value is 255.Contrast then refers to the difference between different pixels point, and the larger then contrast of this difference is more obvious.Come from the viewpoint of histogram analysis, the picture that contrast is better, histogram curve can be more obvious, and distribution also more seems even.
Color enhancement method in the picture signal that color enhancement device in above-mentioned picture signal realizes deducts an identical brightness value on RGB basis, be equivalent to and a gray value is deducted to RGB component, remaining Vector Message and brightness is made to have nothing to do, in the enterprising line linearity conversion of this irrelevant vector, then this brightness value of add-back, can obtain the image that a brightness is constant.Because when RGB represents color, RGB is respectively worth proportional representation color, it is exactly strengthen colorfulness and weaken process that this programme carries out convergent-divergent actual to vector, and this vector weighting is 0, therefore after being processed by identical parameters, weighted value is still 0, each vector scale is constant, therefore ensure that color is constant.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal equipment.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal equipment comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, all-purpose computer, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the flow chart of method, equipment (system) and computer program according to embodiment and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.

Claims (12)

1. the color enhancement method in picture signal, comprises step:
Obtain the original RGB component set of pending region one pixel;
Obtaining the RGB component set through strengthening based on original RGB component set, specifically comprising:
From described original RGB component set, obtain luminance component, described luminance component is for describing the brightness of described pixel; From described original RGB component set, remove described luminance component, obtain rgb color vector; One enhancing process is carried out to described rgb color vector; Described luminance component being added the rgb color vector after strengthening process, obtaining the RGB component set through strengthening;
Described pixel is shown with the described RGB component set through strengthening.
2. in the color enhancement method in picture signal as claimed in claim 1, obtain pending region one pixel (i, j) original RGB component set, described original RGB component set comprises R component r (i, j), G component g (i, j) with B component b (i, j); Wherein i, j are respectively abscissa and the ordinate of described pixel;
Step " obtains luminance component " and specifically comprises from described original RGB component set: be separated according to predetermined luminance the luminance component br (i, j) that formula obtains described pixel from RGB component set;
The formula obtained through the RGB component set of enhancing based on original RGB component set is:
r’(i,j)=Eh*(r(i,j)-br(i,j))+br(i,j);
g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j);
b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j);
Eh is for strengthening coefficient, and described enhancing coefficient comprises the default coefficient Eh1 of enhancing or optimum strengthens coefficient Eh (i, j).
3. in the color enhancement method in picture signal as claimed in claim 2, strengthen coefficient and meet overflow control condition, described overflow control condition refers to: r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and.
4., in the color enhancement method in picture signal as claimed in claim 3, treat in processing region and carry out strengthening the pixel that process meets overflow control condition with default enhancing coefficient Eh1, carry out enhancing process with default enhancing coefficient Eh1; Treat in processing region and carry out strengthening the pixel that process does not meet overflow control condition with default enhancing coefficient Eh1, strengthen coefficient Eh (i, j) with optimum and carry out enhancing process.
5. in the color enhancement method in picture signal as claimed in claim 2 or claim 3, described optimum strengthens coefficient Eh (i, j) for making r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and maximum Eh separate.
6. in the color enhancement method in picture signal as claimed in claim 2 or claim 3, treat all pixels in processing region and all carry out enhancing process with default enhancing coefficient Eh1, or to treat in processing region all pixels and all strengthen coefficient Eh (i, j) with optimum and carry out enhancings and process.
7. the color enhancement device in picture signal, comprises RGB acquiring unit, luminance component acquiring unit, color vector acquiring unit, enhancement unit, computing unit and display unit;
Described RGB acquiring unit is for obtaining the original RGB component set of pending region one pixel;
Described luminance component acquiring unit, color vector acquiring unit, enhancement unit, computing unit are used for, based on the RGB component set of original RGB component set acquisition through strengthening, specifically comprising:
Described luminance component acquiring unit obtains luminance component from described original RGB component set, and described luminance component is for describing the brightness of described pixel; Described color vector acquiring unit removes described luminance component from described original RGB component set, obtains rgb color vector; Described enhancement unit carries out an enhancing process to described rgb color vector; Described luminance component is added the rgb color vector after strengthening process by described computing unit, obtains the RGB component set through strengthening;
Described display unit is used for showing described pixel with the described RGB component set through strengthening.
8. in the color enhancement device in picture signal as claimed in claim 7, described RGB acquiring unit obtains pending region one pixel (i, j) original RGB component set, described original RGB component set comprises R component r (i, j), G component g (i, j) with B component b (i, j); Wherein i, j are respectively abscissa and the ordinate of described pixel;
Described luminance component acquiring unit obtains luminance component and specifically comprises from described original RGB component set: be separated according to predetermined luminance the luminance component br (i, j) that formula obtains described pixel from RGB component set;
The formula obtained through the RGB component set of enhancing based on original RGB component set is:
r’(i,j)=Eh*(r(i,j)-br(i,j))+br(i,j);
g’(i,j)=Eh*(g(i,j)-br(i,j))+br(i,j);
b’(i,j)=Eh*(b(i,j)-br(i,j))+br(i,j);
Eh is for strengthening coefficient, and described enhancing coefficient comprises the default coefficient Eh1 of enhancing or optimum strengthens coefficient Eh (i, j).
9. in the color enhancement device in picture signal as claimed in claim 8, described enhancing coefficient meets overflow control condition, and described overflow control condition refers to: r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and.
10., in the color enhancement device in picture signal as claimed in claim 9, treat in processing region and carry out strengthening the pixel that process meets overflow control condition with default enhancing coefficient Eh1, carry out enhancing process with default enhancing coefficient Eh1; Treat in processing region and carry out strengthening the pixel that process does not meet overflow control condition with default enhancing coefficient Eh1, strengthen coefficient Eh (i, j) with optimum and carry out enhancing process.
In color enhancement device in 11. picture signals as claimed in claim 8 or 9, described optimum strengthens coefficient Eh (i, j) for making r ' (i, j), g ' (i, j), b ' (i, j) all insatiety and the maximum of solution of Eh.
In color enhancement device in 12. picture signals as claimed in claim 8 or 9, treat all pixels in processing region and all carry out enhancing process with default enhancing coefficient Eh1, or to treat in processing region all pixels and all strengthen coefficient Eh (i, j) with optimum and carry out enhancings and process.
CN201510193583.9A 2015-04-22 2015-04-22 Color enhancement method and apparatus in picture signal Active CN104796682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510193583.9A CN104796682B (en) 2015-04-22 2015-04-22 Color enhancement method and apparatus in picture signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510193583.9A CN104796682B (en) 2015-04-22 2015-04-22 Color enhancement method and apparatus in picture signal

Publications (2)

Publication Number Publication Date
CN104796682A true CN104796682A (en) 2015-07-22
CN104796682B CN104796682B (en) 2017-01-04

Family

ID=53561160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510193583.9A Active CN104796682B (en) 2015-04-22 2015-04-22 Color enhancement method and apparatus in picture signal

Country Status (1)

Country Link
CN (1) CN104796682B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631826A (en) * 2015-12-25 2016-06-01 武汉鸿瑞达信息技术有限公司 Color image saturation enhancing method and system
CN107424124A (en) * 2017-03-31 2017-12-01 北京臻迪科技股份有限公司 A kind of image enchancing method and device
CN107527332A (en) * 2017-10-12 2017-12-29 长春理工大学 Enhancement Method is kept based on the low-light (level) image color for improving Retinex
CN109272922A (en) * 2018-11-30 2019-01-25 北京集创北方科技股份有限公司 Show the driving method and driving device of equipment
CN116258644A (en) * 2023-01-13 2023-06-13 格兰菲智能科技有限公司 Image enhancement method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5780891A (en) * 1980-11-07 1982-05-20 Pioneer Electronic Corp Color emphasizing circuit
CN101043634A (en) * 2006-03-24 2007-09-26 精工爱普生株式会社 Video signal processing
US20090237530A1 (en) * 2008-03-20 2009-09-24 Ilia Ovsiannikov Methods and apparatuses for sharpening images
CN102630021A (en) * 2011-02-07 2012-08-08 索尼公司 Signal processing device, signal processing method, imaging apparatus, and imaging processing method
CN102752604A (en) * 2012-06-18 2012-10-24 深圳创维-Rgb电子有限公司 Image display method and intelligent device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5780891A (en) * 1980-11-07 1982-05-20 Pioneer Electronic Corp Color emphasizing circuit
CN101043634A (en) * 2006-03-24 2007-09-26 精工爱普生株式会社 Video signal processing
US20090237530A1 (en) * 2008-03-20 2009-09-24 Ilia Ovsiannikov Methods and apparatuses for sharpening images
CN102630021A (en) * 2011-02-07 2012-08-08 索尼公司 Signal processing device, signal processing method, imaging apparatus, and imaging processing method
CN102752604A (en) * 2012-06-18 2012-10-24 深圳创维-Rgb电子有限公司 Image display method and intelligent device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631826A (en) * 2015-12-25 2016-06-01 武汉鸿瑞达信息技术有限公司 Color image saturation enhancing method and system
CN105631826B (en) * 2015-12-25 2018-12-07 武汉鸿瑞达信息技术有限公司 A kind of color image saturation Enhancement Method and system
CN107424124A (en) * 2017-03-31 2017-12-01 北京臻迪科技股份有限公司 A kind of image enchancing method and device
CN107424124B (en) * 2017-03-31 2020-03-17 北京臻迪科技股份有限公司 Image enhancement method and device
CN107527332A (en) * 2017-10-12 2017-12-29 长春理工大学 Enhancement Method is kept based on the low-light (level) image color for improving Retinex
CN107527332B (en) * 2017-10-12 2020-07-31 长春理工大学 Low-illumination image color retention enhancement method based on improved Retinex
CN109272922A (en) * 2018-11-30 2019-01-25 北京集创北方科技股份有限公司 Show the driving method and driving device of equipment
CN116258644A (en) * 2023-01-13 2023-06-13 格兰菲智能科技有限公司 Image enhancement method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104796682B (en) 2017-01-04

Similar Documents

Publication Publication Date Title
KR102225266B1 (en) Image processing methods and devices, electronic devices and computer storage media
CN104796682A (en) Image signal color enhancement method and image signal color enhancement device
CN102761766B (en) Method for depth map generation
KR102662177B1 (en) Method and apparatus for color-preserving spectral reshaping
US8724894B1 (en) Colorization of digital imagery
CN102223547B (en) Image color enhancement device and method
KR20100053237A (en) Image processing apparatus and method for enhancing of depth perception
CN103248793A (en) Skin tone optimization method and device for color gamut transformation system
CN104767983A (en) Picture processing method and device
CN102630021A (en) Signal processing device, signal processing method, imaging apparatus, and imaging processing method
CN105493489A (en) Gamut mapping systems and methods
CN101501751B (en) Display device, method for generating four or more primary color signals
Sanders et al. Producing anaglyphs from synthetic images
CN111862888A (en) Method, device and system for displaying four-color low-blue-light wide color gamut
Ganesan et al. A comprehensive review of the impact of color space on image segmentation
CN109636739B (en) Detail processing method and device for enhancing image saturation
Hsin et al. Color to grayscale transform preserving natural order of hues
CN104077794A (en) Picture staining method and device
CN104715454A (en) Anti-aliasing graph overlapping algorithm
CN109461419B (en) Display data processing method and system and display device
US10430932B2 (en) Method and an arrangement for pseudo coloring of a digital image
CN105184746B (en) Color image enhancement processing method based on histogram equalization
US20160247049A1 (en) Monochrome Profile Generation Mechanism
Niranjana et al. RGB to lab transformation using image segmentation
US11557265B2 (en) Perceptual color enhancement based on properties of responses of human vision system to color stimulus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350003 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350003 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant before: Fuzhou Rockchip Semiconductor Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.