CN104469335B - Self-adaptation blue-level extension method and device - Google Patents
Self-adaptation blue-level extension method and device Download PDFInfo
- Publication number
- CN104469335B CN104469335B CN201410836367.7A CN201410836367A CN104469335B CN 104469335 B CN104469335 B CN 104469335B CN 201410836367 A CN201410836367 A CN 201410836367A CN 104469335 B CN104469335 B CN 104469335B
- Authority
- CN
- China
- Prior art keywords
- pixel
- gain coefficient
- blue
- value
- extended
- 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
Abstract
The invention provides a self-adaptation blue-level extension method and device. The method comprises the steps of reading brightness value and chromatic value data of each pixel in an image, and judging whether a chromatic value of each pixel is in an extension region of a blue extension template or not; if it is determined that the chromatic value of the pixel is in the extension region, obtaining a corresponding gain coefficient according to the position of the chromatic value of the pixel in the blue extension template, and applying the gain coefficient for calculating a brightness value and a chromatic value obtained after pixel extension. The device comprises a pixel judging module, a gain coefficient obtaining module and a pixel extending module, wherein the pixel judging module judges whether the chromatic value of each pixel is in the extension region of the blue extension template or not, the gain coefficient obtaining module obtains the corresponding gain coefficient according to the position of the chromatic value of the pixel in the extension region, and the pixel extension module applies the gain coefficient for calculating the brightness value and the chromatic value obtained after pixel extension. By the application of the method, the chromaticity of the image is adjusted so that colors of the image can be effectively enhanced, and the image processing speed is high.
Description
Technical field
The present invention relates to image real time transfer field, specifically carrying out self adaptation to the image shown by display device
Blue level extended method and realize the device of this method.
Background technology
Mostly by display screen display image, video etc., electronic equipment shows electronic equipment with image display function
Image, video for showing etc. be receive image, the digital signal of video, then digital signal is decoded, change after formed
Chrominance signal, and export to display circuit, show finally by display screen.
Due to being just transmitted after existing image, the most encoded, compression of video signal, image-receptive termination is received
After data, the data that original image is obtained after the decoding data that will be received, decompression are needed.However, due to electronic equipment
The situation of missing color information is susceptible in image acquisition, view data transmitting procedure, causes electronic equipment finally to show
Image color distortion.
In order to improve the colorfulness of image, it is common practice to the blue day higher to color sensitivity to human vision
Empty region carries out color enhancement.When carrying out color enhancement to blue sky region, it is necessary first to which area in image identified
Pixel in domain is the pixel in blue sky region, and color enhancement is carried out to the pixel in blue sky region, this
Way is commonly referred to blue level extended method.
A kind of existing straightforward procedure is directly to increase blue B component on the basis of the rgb color value of all pixels
Numerical value, but this method often occurs colour cast or excessively enhanced problem, affects the effect of image.
Another common method is that the direct pixel to blue color phase carries out saturation in the spaces such as HSV or HSL
The enhancing of degree, it is non-linear due to hue distribution, easily make enhanced pixel produce colour cast, such as purple, for close white
Or gray area strengthens dynamics not enough, even without effect.
Existing the third blue level extended method is calculated by the color-values to picture signal or video signal, is such as existed
The segmentation of colourity is done in a fixed Convex Polygon Domain in the UV planes of yuv space, and transition region is set to cut zone
Domain, the gain coefficient of transition region arranges gain system by calculating certain point to the distance on convex polygon border according to the distance
Number, segmentation overall brightness fixed on luminance threshold.
However, above-mentioned blue level extension exists to colour cast, crosses enhancing, blue region divides not accurate enough problem, special
It is not that for the color adaptive ability under different brightness not enough, white or grey parts enhancing and transition easily occurred not
Uniform problem, or calculating process is complex, memory space is big, is not easy to being realized with a low cost etc. for software and hardware and asks
Topic.
The content of the invention
The main object of the present invention is to provide a kind of effectively to the enhanced self adaptation indigo plant level extension side of image blue color
Method.
It is a further object of the present invention to provide a kind of easily realize, the less self adaptation indigo plant level extension dress of operand is processed
Put.
In order to realize above-mentioned main purpose, the self adaptation indigo plant level extended method that the present invention is provided includes reading in image
Whether the brightness value and colourity Value Data of each pixel, judge the brightness value and chromatic value of each pixel in blue extended template
In extended area;Such as judge the brightness value and chromatic value of pixel in extended area, according to the brightness value and chromatic value of pixel from
Corresponding gain coefficient is obtained in blue extended template, brightness value and chromatic value after pixel-expansion are calculated using gain coefficient.
From such scheme, extract the brightness value and color-values of image each pixel and carry out with blue extended template
Compare, and the pixel in the extended area carried out into gain process, so as to obtain pixel gain after brightness value and color
Color Value Data.Due to being compared by the brightness value and color-values of pixel and with blue extended template, in three-dimensional brightness color
Degree is spatially by the more accurate of blue pixel division, and the image color after gain process is more true.
Further scheme is that gain coefficient includes luminance gain coefficient and cHroma gain coefficient, bright after pixel-expansion
Angle value is the product of pixel original luminance value and luminance gain coefficient, the chromatic value after pixel-expansion be pixel original chrominance with
The product of cHroma gain coefficient.
As can be seen here, brightness value and colourity respectively after luminance gain coefficient and the calculating gain of cHroma gain coefficient
Value, brightness value and the chromatic value gain of pixel calculate more accurate.
Further scheme is that each data point is to there is gain coefficient in the extended area of blue extended template.
As can be seen here, the gain coefficient that pixel is located under expansion templates diverse location is differed, that is, the expansion to pixel
Exhibition degree is different, and color is truer after image color correction.
Further scheme is, the data of blue extended template are encoded and/or compression after store;Judge pixel
Chromatic value whether in the extended area before, the decoding data and/or decompression to blue extended template is obtaining gain system
Number.
It can be seen that, the data of blue extended template are encoded and/or compression after, the memory space that data take is less, from
And reduce electronic equipment carrying cost.
To realize above-mentioned another object, the self adaptation indigo plant level expanding unit that the present invention is provided judges mould including pixel
Whether block, judge the chromatic value of each pixel in the extended area of blue extended template;Gain coefficient acquisition module, according to picture
Position acquisition corresponding gain coefficient of the chromatic value of element in extended area;Pixel-expansion module, calculates using gain coefficient
Brightness value and chromatic value after pixel-expansion.
From such scheme, each pixel of image and blue extended template are compared, judge that pixel is located at
Gain process, and then the brightness value and chromatic value of regulation pixel are carried out to pixel when in extended area, image can be improved
Colour vividness.Because the pixel that blue level extended method needs only to be pointed in extended area carries out gain lookup and gain
Process, operand is less, improve the processing speed of image.
Description of the drawings
Fig. 1 is the structured flowchart of self adaptation indigo plant level expanding unit embodiment of the present invention.
Fig. 2 is the flow chart of self adaptation indigo plant level extended method embodiment of the present invention.
Fig. 3 is the schematic diagram of blue extended template in self adaptation indigo plant level extended method embodiment of the present invention.
Below in conjunction with drawings and Examples, the invention will be further described.
Specific embodiment
The self adaptation indigo plant level extended method of the present invention is used for the image shown by the electronic equipment with display function
Color be adjusted, especially brightness and the regulation of colourity are carried out to blue pixel, to improve the vividness of image.This
The self adaptation indigo plant level expanding unit of invention is run on an electronic device and for realizing self adaptation indigo plant level extended method
Software program.
Referring to Fig. 1, the self adaptation indigo plant level expanding unit of the present invention has pixel acquisition module 10, pixel judge module
11st, gain coefficient acquisition module 12, pixel-expansion module 13, compression module 14, decompression module 15 and blue extended template
20。
The present invention passes through to obtain the brightness value L of each pixel of image and the data of chromatic value C, with blueness set in advance
Expansion templates are compared, and judge whether to need the brightness value L to pixel and chromatic value C to be adjusted, if desired, then calculating
The data of brightness value L and chromatic value C after adjustment.
Blue extended template 20 used in the present invention is template set in advance, be by multitude of video scene or
Real effect of the image in existing different video product is compared, while for the blue region appeared in different scenes
Domain is split, is tested, is counted, and analyzes the rule of blue level distribution, so as to calculate blue level distribution model.Due to this
The bright brightness value L for using pixel and chromatic value C are used as basis for estimation, therefore blue level expansion templates 20 are one with brightness value
The two values of L and chromatic value C as coordinate axess spatial coordinate model, as shown in figure 3, model pixel brightness be certain
There is a convex polygon in the projection of colorimetric plane under numerical value L, with different L numerical value, this Convex Polygon Domain is to become
Change, the region within the convex polygon frame is extended area, such as judges the brightness value of pixel for L, and chromatic value falls convex
In polygonal frame, i.e., pixel is located in extended area, then judge that the pixel needs to carry out Gain tuning, that is, needs to adjust
The brightness value and chromatic value of the pixel are saved, the such as chromatic value of pixel is not in the frame of convex polygon, that is, pixel is not expanding
In the domain of exhibition section, then the brightness value and chromatic value of pixel do not processed.
Because blue extended template 20 is comprising irregular convex polygon figure under different brightness numbers L, such as set in electronics
Graph data as standby upper storage, the memory space larger by electronic equipment is taken, accordingly, it would be desirable to blue extended template 20
Encoded or compression is processed, so as to reduce the memory space of blue extended template 20.The compression module 14 of the present embodiment is used
In encoding and compressing blue extended template 20, to reduce the memory space of blue extended template 20.
Because the data of blue extended template 20 are the data through compression, coding, therefore using blue extended template 20
Before, it is necessary first to the process for the data of blue extended template 20 being decompressed with decompression module 15 or being decoded, obtain
The initial data of blue extended template 20, could be processed pixel.
The pixel acquisition module 10 of the present invention is used to obtain each pixel data related to colorfulness from view data,
Including data such as the brightness value Ls and chromatic value C for obtaining pixel.Certainly, because present view data is mostly YUV color-values
Data or YIQ color values, the Y value in the color value YUV of pixel is brightness value L, and UV/IQ values correspond to colourity
Value C, therefore chromatic value C is a 2-D data.
Certainly, the color value such as pixel is RGB data, then need by RGB data be converted to YUV or other brightness/
After colourity Value Data, the present invention is equally applicable.
Pixel judge module 11 is used for after the brightness value L and chromatic value C data that pixel acquisition module 10 obtains pixel,
With reference to the data of the extended area of blue extended template 20, pixel is judged whether in extended area, if not in extended area,
Then the chromatic value C process of pixel is not otherwise needed to be adjusted the chromatic value of pixel.
Once judgement needs the brightness value L to pixel and chromatic value C to be adjusted, the basis of gain coefficient acquisition module 12
Blue extended template 20 obtains the gain coefficient of pixel.Brightness value L and chromatic value in the present embodiment, due to needing to read pixel
C carries out gain-adjusted, therefore acquired gain coefficient includes luminance gain coefficient Gain0 and cHroma gain coefficient Gain1.
In the present embodiment, luminance gain coefficient Gain0 and cHroma gain coefficient Gain1 are stored in advance in electronic equipment, and
As a part of data of blue extended template 20.
As shown in figure 3, because the chromatic value C of each pixel is 2-D data, i.e., including CO values and C1 values, therefore often
The chromatic value C of one pixel both corresponds to a point under the coordinate of blue extended template 20.Also, the data of blue extended template 20
Also include each corresponding gain coefficient of point, including luminance gain coefficient brightness Gain0 and cHroma gain coefficient Gain1.
Therefore, the gain coefficient of the position acquisition pixel of the gain coefficient acquisition module 12 according to pixel in blue extended template 20.
After obtaining the gain coefficient of pixel, pixel-expansion module 13 according to the original luminance value L and chromatic value C of pixel,
And pixel brightness value L1 and color after adjusting are calculated according to luminance gain coefficient Gain0 and cHroma gain coefficient Gain1
Angle value C1, so as to change brightness and the colourity of pixel, and then changes the colorfulness of pixel.
The flow process of blue level extended method is illustrated with reference to Fig. 2.First, blue extended template 20 is preset, that is, is held
Row step S1, blue extended template 20 is the template obtained by the analytical calculation to great amount of images, video data, such as Fig. 3 institutes
Show.Coordinate axess of the blue extended template 20 using two parameters CO and C1 of the chromatic value C of pixel as coordinate system, and expansion is set
Exhibition section domain, as shown in the convex polygon frame in Fig. 3.Additionally, also setting up the corresponding gain coefficient of every bit in extended area, wrap
Include luminance gain coefficient Gain0 and cHroma gain coefficient Gain1.After generating blue extended template 20, by blue extended template
20 are stored in the memorizer of electronic equipment after compression or coding, to reduce the memory space for taking electronic equipment.
Then, by execution step S2 of pixel acquisition module 10, the brightness value L and chromatic value of each pixel in image is obtained
The data of C.Certainly, for video data, then the data of the pixel of each image in video data are obtained.Such as the pixel of image
Can be directly suitable for using YUV or YIQ, if be suitable for the color values such as RGB represented, need to be converted into color value
The data in YC space.For example, using the Y value in YUV color values as brightness value L data, the data of chromatic value C
As data of UV.
Then, execution step S3 of decompression module 15, the data of blue extended template 20 are decompressed, so as to obtain
The data such as corresponding gain coefficient of every bit in the extended area of blue extended template 20, extended area.Certainly, the present invention not
Limit coding, the compression method of blue extended template 20, correspondingly, blue extended template 20 also can be using various decodings,
Decompression method reduction is obtained.
Then, execution step S4 of pixel judge module 11, according to the brightness value L and the data of chromatic value C of pixel, searches
Go out pixel corresponding position in blue extended template 20.Because the chromatic value C of pixel is 2-D data, i.e., comprising CO and C1
Two parameters, the position of pixel, and execution step S5 are searched according to the two parameters in blue extended template 20, judge pixel
Whether fall in extended area, such as pixel does not fall in extended area, then it represents that the brightness value L and chromatic value C of the pixel is equal
Without the need for adjusting.Such as judge that pixel is located in extended area, then it represents that the brightness value L and chromatic value C of pixel needs to adjust.
Now, gain coefficient acquisition module 12 and execution step S6 of pixel-expansion module 13, by gain coefficient acquisition module
The 12 corresponding gain coefficients of position acquisition pixel according to pixel in blue extended template 20, including luminance gain coefficient
Gain0 and cHroma gain coefficient Gain1.Then, original luminance value L and luminance gain of the pixel-expansion module 13 according to pixel
Coefficient Gain0 calculates the brightness value L 1 after pixel-expansion, and according to the original chromatic value C of pixel and cHroma gain coefficient Gain1
Calculate the chromatic value C1 after pixel-expansion.
Specifically, the brightness value L 1 after extension is the product of pixel original luminance value L and luminance gain coefficient Gain0, i.e.,
L1=L×Gain0;Chromatic value C1 after extension is pixel original chrominance C and the product of cHroma gain coefficient Gain1, i.e. C1=C
×Gain1.Therefore, luminance gain coefficient Gain0 and cHroma gain coefficient Gain1 at least one are numerical value not for 1.
Certainly, the brightness value L 1 after extension can also be calculated by other means with chromatic value C1, such as use original brightness
Value L and luminance gain coefficient Gain0 carry out logical operationss or the brightness value L 1 after computing is expanded such as are added, using original
Chromatic value C and cHroma gain coefficient Gain1 carry out logical operationss or the chromatic value C1 after computing is expanded such as are added.
After calculating the new brightness value L 1 of pixel and new chromatic value C1, replace the original brightness value L of pixel and colourity
Value C, the image color shown by electronic equipment is more bright-coloured.
The present invention is by pre-setting blue extended template and judging whether each pixel of image falls in blueness
Pixel is adjusted in the extended area of expansion templates, due to be by the brightness value and color-values of pixel and and blue extended
Template is compared, in three-dimensional YC spatially by the more accurate of blue pixel division.Further, since only need to it is right
The brightness value and chromatic value of pixel carries out gain lookup and gain is calculated, less to image-processing operations amount, can improve image
Display speed.
Further, since blue extended template is stored in electronic equipment beforehand through coding or the mode compressed,
Using, just by the decoding of blue extended template, the storage that can so reduce blue extended template occupancy is empty during blue extended template
Between.
Certainly, above-described embodiment is only the preferred embodiment of the present invention, can also there is more changes during practical application,
For example in template the brightness value and chromatic value of pixel can also pass through the color value in other kinds of YC space
Obtain;Or, the data of blue extended template are stored directly in electronic equipment without overcompression, coding, such to change
Change has no effect on the enforcement of the present invention.
Finally it is emphasized that the invention is not restricted to above-mentioned embodiment, such as extended area in blue extended template
The change such as change of gain coefficient of pixel of diverse location in change, extended area should also be included in the claims in the present invention
Protection domain in.
Claims (8)
1. self adaptation indigo plant level extended method, it is characterised in that include;
The brightness value and colourity Value Data of each pixel in image are read, judging the brightness value and chromatic value of each pixel is
It is no in the extended area of blue extended template;
The pixel is such as judged in the extended area, mould is expanded in the blueness according to the brightness value and chromatic value of the pixel
The corresponding gain coefficient of position acquisition in plate, brightness value and colourity after the pixel-expansion are calculated using the gain coefficient
Value;Such as judge that the pixel not in the extended area, is not processed the brightness value and chromatic value of the pixel;
The blue extended template is the set of the enhancing coefficient for belonging to blue pixel in a description YC three dimensions,
Each data point is corresponded in the extended area the gain coefficient, and pixel is located at the blue extended template diverse location
Under gain coefficient differ.
2. self adaptation according to claim 1 indigo plant level extended method, it is characterised in that:
The gain coefficient includes luminance gain coefficient and cHroma gain coefficient.
3. self adaptation according to claim 2 indigo plant level extended method, it is characterised in that:
Brightness value after the pixel-expansion is the product of the pixel original luminance value and the luminance gain coefficient;
Chromatic value after the pixel-expansion is the product of the pixel original chrominance and the cHroma gain coefficient.
4. the blue level extended method of self adaptation according to any one of claims 1 to 3, it is characterised in that:
The data of the blue extended template are encoded and/or compression after store;
Before judging the chromatic value of the pixel whether in the extended area, the data of the blue extended template are solved
Code and/or decompression are obtaining the gain coefficient.
5. the blue level extended method of self adaptation according to any one of claims 1 to 3, it is characterised in that:
The brightness value of the pixel and the data of chromatic value are calculated by the color value of the pixel and obtained.
6. self adaptation indigo plant level expanding unit, it is characterised in that include:
Pixel acquisition module, reads the brightness value and colourity Value Data of each pixel in image;
Whether pixel judge module, judge the brightness value and chromatic value of each pixel in the extended area of blue extended template
It is interior;
Gain coefficient acquisition module, judge as described in pixel in the extended area, according to the brightness value and color of the pixel
Angle value is in the blue corresponding gain coefficient of position acquisition expanded in template;Such as judge the pixel not in the extended area
It is interior, the brightness value and chromatic value of the pixel are not processed;
Pixel-expansion module, brightness value and chromatic value after the pixel-expansion are calculated using the gain coefficient;
Each data point is corresponded in the extended area of the blue extended template the gain coefficient, and pixel is located at institute
The gain coefficient stated under blue extended template diverse location is differed.
7. self adaptation according to claim 6 indigo plant level expanding unit, it is characterised in that:
The gain coefficient includes luminance gain coefficient and cHroma gain coefficient.
8. the blue level expanding unit of self adaptation according to claim 6 or 7, it is characterised in that:
The self adaptation indigo plant level expanding unit also includes
Compression module, by the data of the blue extended template it is encoded and/or compression after store;
Decompression module, before judging the chromatic value of the pixel whether in the extended area, to the blue extended template
Decoding data and/or decompression obtaining the gain coefficient.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410836367.7A CN104469335B (en) | 2014-12-28 | 2014-12-28 | Self-adaptation blue-level extension method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410836367.7A CN104469335B (en) | 2014-12-28 | 2014-12-28 | Self-adaptation blue-level extension method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104469335A CN104469335A (en) | 2015-03-25 |
CN104469335B true CN104469335B (en) | 2017-05-17 |
Family
ID=52914610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410836367.7A Active CN104469335B (en) | 2014-12-28 | 2014-12-28 | Self-adaptation blue-level extension method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104469335B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5712691A (en) * | 1995-12-05 | 1998-01-27 | Philips Electronics North America Corporation | Method and apparatus for area dependent dynamic blue de-focusing |
US7460181B2 (en) * | 2004-10-15 | 2008-12-02 | Genesis Microchip Inc. | Blue stretch using restricted color range and soft transition boundary |
US8493514B2 (en) * | 2007-07-16 | 2013-07-23 | Lg Electronics Inc. | Apparatus for controlling color temperature |
CN101796848A (en) * | 2007-09-03 | 2010-08-04 | Nxp股份有限公司 | Color enhancement |
-
2014
- 2014-12-28 CN CN201410836367.7A patent/CN104469335B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104469335A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6362793B2 (en) | Display management for high dynamic range video | |
KR101954851B1 (en) | Metadata-based image processing method and apparatus | |
KR100453038B1 (en) | An apparatus and method for saturation correction in color image | |
CN107154059A (en) | A kind of high dynamic range video processing method | |
CN111899182B (en) | Color enhancement method and device | |
KR20070090224A (en) | Method of electronic color image saturation processing | |
US8064693B2 (en) | Methods of and apparatus for adjusting colour saturation in an input image | |
CN108769804A (en) | A kind of format conversion method of high dynamic range video | |
WO2020007166A1 (en) | Video signal processing method and apparatus | |
EP2953340B1 (en) | Image processing device, image processing method, program, and recording medium | |
CN1655626B (en) | System and method for clipping values of pixels | |
CN104935902A (en) | Image color enhancement method and device, and electronic equipment | |
CN104581103A (en) | Image processing method and device | |
JP5253047B2 (en) | Color processing apparatus and method | |
US8861850B2 (en) | Digital image color correction | |
CN110298812B (en) | Image fusion processing method and device | |
CN112911366A (en) | Saturation adjusting method and device and display equipment | |
CN104469335B (en) | Self-adaptation blue-level extension method and device | |
US20190079930A1 (en) | Systems and methods for rendering graphical assets | |
CN114999363A (en) | Color shift correction method, device, equipment, storage medium and program product | |
EP1895781B1 (en) | Method of and apparatus for adjusting colour saturation | |
CN105631812B (en) | Control method and control device for color enhancement of display image | |
CN113507572A (en) | Video picture display method, device, terminal and storage medium | |
KR20160025876A (en) | Method and apparatus for intensificating contrast in image | |
US20080226165A1 (en) | Apparatus and Method of Creating Composite Lookup Table |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |