CN109510974A - A kind of white balancing treatment method based on the domain HSV - Google Patents
A kind of white balancing treatment method based on the domain HSV Download PDFInfo
- Publication number
- CN109510974A CN109510974A CN201811578063.XA CN201811578063A CN109510974A CN 109510974 A CN109510974 A CN 109510974A CN 201811578063 A CN201811578063 A CN 201811578063A CN 109510974 A CN109510974 A CN 109510974A
- Authority
- CN
- China
- Prior art keywords
- domain
- rgb
- treatment method
- saturation degree
- lightness
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
The present invention provides a kind of white balancing treatment methods based on the domain HSV, comprising: S1, is converted to the RGB data in video data on the domain HSV;S2, judge lightness whether in the reasonable scope;S3, each color weight is determined according to lightness and saturation degree;S4, summing determines each channel gain of RGB.White balancing treatment method of the present invention based on the domain HSV is able to solve white balance instability problem under large area pure color scene and highlight color.
Description
Technical field
The invention belongs to technical field of video monitoring, more particularly, to a kind of white balancing treatment method based on the domain HSV.
Background technique
In field of video monitoring, white balance is an important function, mainly by point white in reality any
White is all reduced under scene.The white balance processing technique of mainstream is broadly divided into gray world and total reflection technology at present.It is based on
The summation of all channel colors is equal in the artificial picture of the processing method of gray world, when scene is abundant in picture
Treatment effect is relatively good, but this is to will appear colour cast problem under large area pure color scene with a kind of "ball-park" estimate.And it is all-trans
Penetrating the highest color of brightness in artificial picture is exactly light source colour, this is relatively applicable under irreflexive scene, but when in picture
There are when overexposure and highlight color, colour cast problem is also resulted in.
Summary of the invention
In view of this, the present invention is directed to propose a kind of white balancing treatment method based on the domain HSV, existing white to solve
There is the problem of colour cast in balance care method.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
A kind of white balancing treatment method based on the domain HSV, comprising:
S1, the RGB data in video data is converted on the domain HSV;
S2, judge lightness whether in the reasonable scope;
S3, each color weight is determined according to lightness and saturation degree;
S4, summing determines each channel gain of RGB.
Further, in the step S2, in order to prevent in picture overexposure pair graph picture influence, need to adjust lightness
Into zone of reasonableness.
Further, it needs to adjust lightness between 0.2 times to 0.8 times of maximum value.
It further, further include the value of saturation degree in the step S1, the saturation degree if the maximum value of saturation degree is 0
Value is 0, otherwise saturation degree S=(max-min)/max;Wherein, max is the maximum value in RGB, and min is the minimum in RGB
Value.
Further, the step S3 determines that the method for each color weight is as follows:
In order to exclude the influence of pure color and bright color to picture, by saturation degree S multiplied by certain weight k-factor again with lightness H
It is weighted summation and determines this final weight W=H+K*S;Wherein K takes negative value, because saturation degree is lower, bright under normal scene
Degree is higher, then white point probability is bigger.
Further, in the step S4, each point weight calculated on the domain HSV is applied to be weighted on the domain RGB and is asked
With acquire the data in each channel total RGB, calculate final red Lan Zengyi.
Compared with the existing technology, the white balancing treatment method of the present invention based on the domain HSV has the advantage that
White balancing treatment method of the present invention based on the domain HSV is able to solve large area pure color scene and highlighted face
White balance instability problem under color.
Detailed description of the invention
The attached drawing for constituting a part of the invention is used to provide further understanding of the present invention, schematic reality of the invention
It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is described in the embodiment of the present invention based on the white balancing treatment method flow chart on the domain HSV.
Specific embodiment
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", "upper", "lower",
The orientation or positional relationship of the instructions such as "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside" is
It is based on the orientation or positional relationship shown in the drawings, is merely for convenience of description of the present invention and simplification of the description, rather than instruction or dark
Show that signified device or element must have a particular orientation, be constructed and operated in a specific orientation, therefore should not be understood as pair
Limitation of the invention.In addition, term " first ", " second " etc. are used for description purposes only, it is not understood to indicate or imply phase
To importance or implicitly indicate the quantity of indicated technical characteristic.The feature for defining " first ", " second " etc. as a result, can
To explicitly or implicitly include one or more of the features.In the description of the present invention, unless otherwise indicated, " multiple "
It is meant that two or more.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary
Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood by concrete condition
Concrete meaning in the present invention.
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
As shown in Figure 1, a kind of white balancing treatment method based on the domain HSV, comprising:
S1, the RGB data in video data is converted on the domain HSV;
S2, judge lightness whether in the reasonable scope;
S3, each color weight is determined according to lightness and saturation degree;
S4, summing determines each channel gain of RGB.
In the step S2, in order to prevent in picture overexposure pair graph picture influence, need to adjust lightness to reasonable model
In enclosing.It needs to adjust lightness between 0.2 times to 0.8 times of maximum value.
It further include the value of saturation degree in the step S1, saturation degree value is 0 if the maximum value of saturation degree is 0,
Otherwise saturation degree S=(max-min)/max;Wherein, max is the maximum value in RGB, and min is the minimum value in RGB.
The step S3 determines that the method for each color weight is as follows:
In order to exclude the influence of pure color and bright color to picture, by saturation degree S multiplied by certain weight k-factor again with lightness H
It is weighted summation and determines this final weight W=H+K*S;Wherein K takes negative value, because saturation degree is lower, bright under normal scene
Degree is higher, then white point probability is bigger.
Because white balance is usually to be realized on the domain RGB by adjusting red blue gain, it is therefore desirable to will be counted on the domain HSV
The each point weight (i.e. the probability of white point) of calculation, which is applied on the domain RGB, carries out weighted sum, acquires the data R_ in each channel total RGB
sum,G_sum,B_sun.Calculate final red blue gain R_gain=G_sum/R_sum, B_gain=G_sum/B_sum.
Each channel value of RGB of white point is equal in reality after then adjusting, that is, is reduced into white.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (6)
1. based on the white balancing treatment method on the domain HSV characterized by comprising
S1, the RGB data in video data is converted on the domain HSV;
S2, judge lightness whether in the reasonable scope;
S3, each color weight is determined according to lightness and saturation degree;
S4, summing determines each channel gain of RGB.
2. the white balancing treatment method according to claim 1 based on the domain HSV, it is characterised in that: in the step S2,
In order to prevent in picture overexposure pair graph picture influence, need to adjust lightness in zone of reasonableness.
3. the white balancing treatment method according to claim 2 based on the domain HSV, it is characterised in that: need lightness tune
It saves between 0.2 times to 0.8 times of maximum value.
4. the white balancing treatment method according to claim 1 based on the domain HSV, it is characterised in that: in the step S1
It further include the value of saturation degree, saturation degree value is 0 if the maximum value of saturation degree is 0, otherwise saturation degree S=(max-
min)/max;Wherein, max is the maximum value in RGB, and min is the minimum value in RGB.
5. the white balancing treatment method according to claim 1 based on the domain HSV, it is characterised in that: the step S3 is true
The method of fixed each color weight is as follows:
In order to exclude the influence of pure color and bright color to picture, saturation degree S is carried out with lightness H again multiplied by certain weight k-factor
Weighted sum determines this final weight W=H+K*S;Wherein K takes negative value, because saturation degree is lower, and lightness is got under normal scene
Height, then white point probability is bigger.
6. the white balancing treatment method according to claim 1 based on the domain HSV, it is characterised in that: in the step S4,
The each point weight calculated on the domain HSV is applied on the domain RGB and carries out weighted sum, acquires the data in each channel total RGB, is calculated
Final red Lan Zengyi out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811578063.XA CN109510974A (en) | 2018-12-20 | 2018-12-20 | A kind of white balancing treatment method based on the domain HSV |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811578063.XA CN109510974A (en) | 2018-12-20 | 2018-12-20 | A kind of white balancing treatment method based on the domain HSV |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109510974A true CN109510974A (en) | 2019-03-22 |
Family
ID=65755092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811578063.XA Pending CN109510974A (en) | 2018-12-20 | 2018-12-20 | A kind of white balancing treatment method based on the domain HSV |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109510974A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113989227A (en) * | 2021-10-27 | 2022-01-28 | 北京市水产科学研究所(国家淡水渔业工程技术研究中心) | Quantitative evaluation method, device and system for color of Danding red white koi |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103533316A (en) * | 2012-07-05 | 2014-01-22 | 索尼公司 | Image processing apparatus, method, and program |
EP2749199A2 (en) * | 2012-12-31 | 2014-07-02 | Karl Storz Imaging Inc. | Video imaging system with multiple camera white balance capability |
CN108737797A (en) * | 2018-08-17 | 2018-11-02 | Oppo广东移动通信有限公司 | White balancing treatment method, device and electronic equipment |
-
2018
- 2018-12-20 CN CN201811578063.XA patent/CN109510974A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103533316A (en) * | 2012-07-05 | 2014-01-22 | 索尼公司 | Image processing apparatus, method, and program |
EP2749199A2 (en) * | 2012-12-31 | 2014-07-02 | Karl Storz Imaging Inc. | Video imaging system with multiple camera white balance capability |
CN108737797A (en) * | 2018-08-17 | 2018-11-02 | Oppo广东移动通信有限公司 | White balancing treatment method, device and electronic equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113989227A (en) * | 2021-10-27 | 2022-01-28 | 北京市水产科学研究所(国家淡水渔业工程技术研究中心) | Quantitative evaluation method, device and system for color of Danding red white koi |
CN113989227B (en) * | 2021-10-27 | 2022-09-02 | 北京市水产科学研究所(国家淡水渔业工程技术研究中心) | Quantitative evaluation method, device and system for color of Danding red white koi |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI642049B (en) | Image processing device, display device, image processing method and image processing program | |
CN103281544B (en) | Image and the brightness of video, color and contrast combine enhancing | |
CN107483906B (en) | White balancing treatment method, device and the terminal device of image | |
CN104618700B (en) | Enhanced display method for color high dynamic range image | |
CN102752604B (en) | Image display method and intelligent device | |
CN105096273A (en) | Automatic adjustment method of color image brightness | |
US20190253683A1 (en) | White balance parameter determination method and white balance adjustment method, device, and storage medium thereof | |
CN107820069A (en) | A kind of video monitoring equipment ISP adjustment methods | |
US7421121B2 (en) | Spectral normalization using illuminant exposure estimation | |
CN102858072A (en) | Lighting control method and system | |
CN105869577A (en) | Display device image processing method and system | |
CN102340673A (en) | White balance method for video camera aiming at traffic scene | |
CN108289173A (en) | A kind of camera shooting control method, device, terminal device and storage medium | |
CN110009588A (en) | A kind of portrait image color enhancement method and device | |
US7355611B2 (en) | Method and arrangement for improving image quality on a display of an imaging device | |
CN105916056A (en) | Backlight adaptive regulation method and device | |
CN109510974A (en) | A kind of white balancing treatment method based on the domain HSV | |
CN103841337A (en) | Backlight compensation method and device | |
CN102164290A (en) | Method and device for automatically compensating white balance dark area | |
CN103729624A (en) | Photometry method and system based on skin color recognition | |
CN106954055B (en) | A kind of luminance video adjusting method and electronic equipment | |
CN110060308A (en) | A kind of color constancy method based on light source colour distribution limitation | |
KR101131109B1 (en) | Auto white balance setting method by white detection considering sensor characteristic | |
US20120032970A1 (en) | Setting the white balance of a video frame | |
EP1895781B1 (en) | Method of and apparatus for adjusting colour saturation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190322 |