CN104349148B - A kind of method of real-time change image green scene effect - Google Patents
A kind of method of real-time change image green scene effect Download PDFInfo
- Publication number
- CN104349148B CN104349148B CN201410676103.XA CN201410676103A CN104349148B CN 104349148 B CN104349148 B CN 104349148B CN 201410676103 A CN201410676103 A CN 201410676103A CN 104349148 B CN104349148 B CN 104349148B
- Authority
- CN
- China
- Prior art keywords
- passage
- difference
- green
- diff
- current pixel
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000000694 effects Effects 0.000 title claims abstract description 9
- 230000002708 enhancing effect Effects 0.000 claims abstract description 17
- 230000001965 increasing effect Effects 0.000 claims description 6
- NNBFNNNWANBMTI-UHFFFAOYSA-M brilliant green Chemical compound OS([O-])(=O)=O.C1=CC(N(CC)CC)=CC=C1C(C=1C=CC=CC=1)=C1C=CC(=[N+](CC)CC)C=C1 NNBFNNNWANBMTI-UHFFFAOYSA-M 0.000 abstract description 5
- 238000004364 calculation method Methods 0.000 abstract description 4
- 241001464837 Viridiplantae Species 0.000 abstract description 3
- 206010010356 Congenital anomaly Diseases 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
Abstract
A kind of method that the invention discloses real-time change image green scene effect, the method includes: calculate in image the difference between each two passage in current pixel RGB channel;By calculating to difference and threshold value set in advance be compared to judge that current pixel is the need of carrying out green enhancing;The most then according to described calculating to difference current pixel carried out green enhancing.Method disclosed by the invention solves the problem that image green object (especially green plants) is partially yellow, makes the emerald green tone of yellow green tuning rotate, makes image Green more bright-coloured;And the method amount of calculation is little, and speed is fast.
Description
Technical field
The present invention relates to technical field of image processing, a kind of method particularly relating to real-time change image green scene effect.
Background technology
Along with the development of the digital image processing techniques of the technology of semiconductor chips, nowadays people can pass through digital camera
High-resolution video or picture can be obtained easily with mobile phone, yet with cmos image sensor congenital firmly
Part limits, and the defect of ISP algorithm, makes the green object (especially green plants) in image partially yellow, and green is people
The color that eye is more sensitive, the visual experience of green bright-coloured degree direct influence to people, so green in enhancing color
Colour content is particularly important.
Summary of the invention
A kind of method that it is an object of the invention to provide real-time change image green scene effect, it is intended to solve image green object
The problem that (especially green plants) is partially yellow, makes the emerald green tone of yellow green tuning rotate, makes image Green fresher
Gorgeous;And the method amount of calculation is little, and speed is fast.
It is an object of the invention to be achieved through the following technical solutions:
A kind of method of real-time change image green scene effect, the method includes:
Calculate in image the difference between each two passage in current pixel RGB channel;
By calculating to difference and threshold value set in advance be compared to judge that current pixel is the need of carrying out green increasing
By force;
The most then according to described calculating to difference current pixel carried out green enhancing.
Further, in described calculating image, in current pixel RGB channel, difference between each two passage includes:
Calculate difference Diff_GR:Diff_GR=G-R of G passage and R passage;
Calculate difference Diff_GB:Diff_GB=G-B of G passage and channel B;
Calculate difference Diff_RB of R passage and channel B;Diff_RB=R-B.
Further, described by calculating to difference be compared to judge whether current pixel needs with threshold value set in advance
Carry out green enhancing to include:
If the difference Diff_GR > T1 of G passage and R passage, and the difference of G passage and channel B
Diff_GB > T2, then current pixel needs to carry out green enhancing;Otherwise, current pixel is made without green increasing
By force;
Wherein, T1 Yu T2 is judgment threshold set in advance.
Further, described according to described calculating to difference current pixel carried out green enhancing include:
G passage is strengthened, is expressed as: G_new=k G+b;Wherein, G_new is that enhanced G leads to
Road, k is that G passage strengthens coefficient, and b is side-play amount;
R passage is decayed, is expressed as: R_new=R+n Diff_RB;Wherein, after R_new is for decay
R passage, n is R channel attenuation coefficient.
As seen from the above technical solution provided by the invention, according to channel difference values, the method judges whether that needs carry out green
Strengthen, meanwhile, when image is carried out green enhancing, emerald green for yellow green tuning tone is rotated, makes image Green more
Bright-coloured;And algorithm is simple, and amount of calculation is little, and speed is fast.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, required use in embodiment being described below
Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the present invention, for
From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain according to these accompanying drawings
Other accompanying drawings.
The flow chart of the method for a kind of real-time change image green scene effect that Fig. 1 provides for the embodiment of the present invention one.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly and completely
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on
Embodiments of the invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into protection scope of the present invention.
Embodiment one
The flow chart of the method for a kind of real-time change image green scene effect that Fig. 1 provides for the embodiment of the present invention one.Such as figure
Shown in 1, the method mainly comprises the steps:
Step 11, calculate in image the difference between each two passage in current pixel RGB channel.
In described calculating image, in current pixel RGB channel, difference between each two passage includes:
Calculate difference Diff_GR:Diff_GR=G-R of G passage and R passage;
Calculate difference Diff_GB:Diff_GB=G-B of G passage and channel B;
Calculate difference Diff_RB of R passage and channel B;Diff_RB=R-B.
Wherein, R, G, B triple channel is respectively red, green, blue channel.
Step 12, by calculating to difference be compared to judge that current pixel is the need of carrying out with threshold value set in advance
Green enhancing, the most then proceed to step 13.
Judgment threshold T1 and T2 set in advance in the embodiment of the present invention;If G passage and the difference of R passage
Diff_GR > T1, and the difference Diff_GB > T2 of G passage and channel B, then current pixel needs to carry out green increasing
By force;Otherwise, current pixel is made without green enhancing.
Step 13, according to described calculating to difference current pixel carried out green enhancing.
In the embodiment of the present invention, when image is carried out green enhancing, emerald green for yellow green tuning tone is rotated, makes in image
Green is more bright-coloured, specifically:
G passage is strengthened, is expressed as: G_new=k G+b;Wherein, G_new is that enhanced G leads to
Road, k is that G passage strengthens coefficient, and b is side-play amount;
R passage is decayed, is expressed as: R_new=R+n Diff_RB;Wherein, after R_new is for decay
R passage, n is R channel attenuation coefficient.
According to channel difference values, the scheme of the embodiment of the present invention judges whether that needs carry out green enhancing, carry out image meanwhile
During green enhancing, emerald green for yellow green tuning tone is rotated, makes image Green more bright-coloured;And algorithm is simple, meter
Calculation amount is little, and speed is fast.
Through the above description of the embodiments, those skilled in the art it can be understood that to above-described embodiment permissible
Realized by software, it is also possible to the mode adding necessary general hardware platform by software realizes.Based on such reason
Solving, the technical scheme of above-described embodiment can embody with the form of software product, and this software product can be stored in one
In individual non-volatile memory medium (can be CD-ROM, USB flash disk, portable hard drive etc.), including some instructions with so that
One computer equipment (can be personal computer, server, or the network equipment etc.) performs the present invention, and each is implemented
Method described in example.
The above, the only present invention preferably detailed description of the invention, but protection scope of the present invention is not limited thereto,
Any those familiar with the art in the technical scope of present disclosure, the change that can readily occur in or replace
Change, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should be with claims
Protection domain is as the criterion.
Claims (3)
1. the method for a real-time change image green scene effect, it is characterised in that the method includes:
Calculate in image the difference between each two passage in current pixel RGB channel;
By calculating to difference and threshold value set in advance be compared to judge that current pixel is the need of carrying out green increasing
By force;
The most then according to described calculating to difference current pixel carried out green enhancing, comprising: G passage is increased
By force, it is expressed as: G_new=k G+b;Wherein, G_new is enhanced G passage, and k is that G passage strengthens system
Number, b is side-play amount;
R passage is decayed, is expressed as: R_new=R+n Diff_RB;Wherein, after R_new is for decay
R passage, n is R channel attenuation coefficient, and Diff_RB is the difference of R passage and channel B.
Method the most according to claim 1, it is characterised in that in described calculating image in current pixel RGB channel
Difference between each two passage includes:
Calculate difference Diff_GR:Diff_GR=G-R of G passage and R passage;
Calculate difference Diff_GB:Diff_GB=G-B of G passage and channel B;
Calculate difference Diff_RB of R passage and channel B;Diff_RB=R-B.
Method the most according to claim 1 and 2, it is characterised in that described difference calculating arrived is with set in advance
Threshold value is compared to judge that current pixel includes the need of carrying out green enhancing:
If the difference Diff_GR > T1 of G passage and R passage, and the difference of G passage and channel B
Diff_GB > T2, then current pixel needs to carry out green enhancing;Otherwise, current pixel is made without green increasing
By force;
Wherein, T1 Yu T2 is judgment threshold set in advance.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410676103.XA CN104349148B (en) | 2014-11-21 | 2014-11-21 | A kind of method of real-time change image green scene effect |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410676103.XA CN104349148B (en) | 2014-11-21 | 2014-11-21 | A kind of method of real-time change image green scene effect |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104349148A CN104349148A (en) | 2015-02-11 |
| CN104349148B true CN104349148B (en) | 2016-08-17 |
Family
ID=52503838
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410676103.XA Active CN104349148B (en) | 2014-11-21 | 2014-11-21 | A kind of method of real-time change image green scene effect |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104349148B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106933015B (en) * | 2017-04-17 | 2019-04-26 | 苏州佳世达光电有限公司 | The control method of projection arrangement and projection arrangement |
| CN113947553B (en) * | 2021-12-20 | 2022-03-18 | 山东信通电子股份有限公司 | Image brightness enhancement method and device |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100391247C (en) * | 2002-11-29 | 2008-05-28 | Tcl王牌电子(深圳)有限公司 | Picture tone adjusting method for picture display device |
| CN101472187B (en) * | 2007-12-29 | 2012-11-21 | 深圳艾科创新微电子有限公司 | System and method for enhancing green of video signal |
| CN102300100B (en) * | 2010-06-28 | 2015-03-04 | 比亚迪股份有限公司 | White balance control device and method |
| CN102622727A (en) * | 2011-01-27 | 2012-08-01 | 常州芯奇微电子科技有限公司 | Multiple-display-mode-supporting green enhancement processing |
| US9361822B2 (en) * | 2011-11-09 | 2016-06-07 | Apple Inc. | Color adjustment techniques for displays |
-
2014
- 2014-11-21 CN CN201410676103.XA patent/CN104349148B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN104349148A (en) | 2015-02-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8164649B2 (en) | White balance adjusting device, imaging apparatus, and recording medium storing white balance adjusting program | |
| WO2016127883A1 (en) | Image area detection method and device | |
| US20160080626A1 (en) | Computational Camera Using Fusion of Image Sensors | |
| RU2015143935A (en) | MIXING THE INFRARED DATA POINT CLOUD AND THE COLOR COMPONENT DATA POINT CLOUD | |
| CN106251286B (en) | Image processing method, device and equipment | |
| MY186061A (en) | A method and apparatus of encoding and decoding a color picture | |
| CN107948627B (en) | Video broadcasting method, calculates equipment and storage medium at device | |
| CN111385640B (en) | Video cover determining method, device, equipment and storage medium | |
| CN103366364A (en) | Color difference-based image matting method | |
| CN106454256B (en) | A kind of real-time joining method of more videos and device | |
| CN107622504A (en) | Method and device for processing pictures | |
| CN105681775A (en) | White balance method and device | |
| CN102752607B (en) | A kind of realize when image moves trail specially good effect method and apparatus | |
| KR20140035273A (en) | Image processing device, image processing program, computer-readable recording medium storing image processing program, and image processing method | |
| CN105913460A (en) | Skin color detection method and device | |
| CN104680518A (en) | Blue screen image matting method based on chroma overflowing processing | |
| CN104349148B (en) | A kind of method of real-time change image green scene effect | |
| US10915996B2 (en) | Enhancement of edges in images using depth information | |
| CN104811631B (en) | A kind of image processing method and image processor | |
| CN108230275A (en) | The method of image defogging | |
| CN105679277A (en) | Color adjusting method of display screen and mobile terminal | |
| CN104376540A (en) | Bayer image denoising method | |
| WO2022179012A1 (en) | Defect detection method and apparatus, and electronic device | |
| CN105005966B (en) | A kind of single image based on yellow haze physical characteristic goes haze method | |
| CN103871035B (en) | Image denoising method and device |
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 |