CN104112290A - RGB color image processing method and system - Google Patents
RGB color image processing method and system Download PDFInfo
- Publication number
- CN104112290A CN104112290A CN201410277499.0A CN201410277499A CN104112290A CN 104112290 A CN104112290 A CN 104112290A CN 201410277499 A CN201410277499 A CN 201410277499A CN 104112290 A CN104112290 A CN 104112290A
- Authority
- CN
- China
- Prior art keywords
- image
- rgb
- yiq
- component
- color space
- 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
Landscapes
- Processing Of Color Television Signals (AREA)
- Image Processing (AREA)
Abstract
The invention relates to an RGB color image processing method and system. The method comprises the following steps: converting an RGB image into a YIQ color space unit; extracting a Y component expressing the image brightness in the YIQ color space unit; carrying out rain removing processing on the Y component; combining the Y component after rain removing processing with an I component and a Q component and converting the combined YIQ into an RGB color space unit, thereby obtaining an RGB image after rain removing processing. With the RGB color image processing method and system, the RGB image is converted into the YIQ color space unit, the Y component is treated by the rain removing processing; and the Y component that is processed by rain removing is combined with the I component and the Q component to carry out conversion so as to obtain an RGB image. Therefore, rain removing processing of the single color image is realized; the image color distortion is prevented; and the using range of the rain removing algorithm of the single image is improved.
Description
Technical field
The present invention relates to image processing field, particularly relate to a kind of RGB color image processing method and system.
Background technology
Rain has a great impact image imaging, can cause the fuzzy and information of image imaging to cover, and its direct result is that the sharpness of video image declines, and the digitized processing of video image is affected and hydraulic performance decline by this also can.The video image that polluted by raindrop is carried out to the further processing that repair process is conducive to image, comprise target detection, identification based on image, follow the trail of, cut apart and the raising of the technical feature such as monitoring.
Traditional rain algorithm that goes has a lot, as the video image based on methods such as degree of bias calculating, K mean cluster, Kalman filtering, dictionary learning and sparse coding, guiding filtering, interframe luminance differences removes rain algorithm.Wherein, single image goes rain algorithm kind a lot, carry out single image as the method by picture breakdown and remove rain, remove rain etc. by context aware, but, what traditional single image went to obtain after rain algorithm process is all gray level image, cannot process to ensure that image color is undistorted to coloured image.
Summary of the invention
Based on this, be necessary to remove for traditional single width the gray level image that is that rain method obtains, the problem that cannot process coloured image, provides a kind of RGB color image processing method and system, can realize coloured image is gone to rain processing, ensure that image color is undistorted.
A kind of RGB color image processing method, comprises the following steps:
RGB image is converted to YIQ color space;
Extract the Y component of the presentation video brightness in described YIQ color space;
Described Y component is gone to rain processing;
To go Y component after rain in conjunction with I and Q component, and in connection with after YIQ be converted to rgb color space, obtain the RGB image after rain.
Therein in an embodiment, describedly RGB image is converted to YIQ color space adopts matrix conversion.
Therein in an embodiment, describedly RGB image be converted to YIQ color space adopt the formula of matrix conversion to be:
Therein in an embodiment, described in connection with after YIQ be converted to rgb color space and adopt and ask for matrix
Inverse matrix conversion.
Therein in an embodiment, described in connection with after the YIQ formula that is converted to rgb color space be:
A kind of RGB color picture processing system, comprising:
The first modular converter, for being converted to YIQ color space by RGB image;
Extraction module, for extracting the Y component of presentation video brightness of described YIQ color space;
Go rain module, for described Y component is gone to rain processing;
The second modular converter, for going Y component after rain in conjunction with I and Q component, and in connection with after YIQ be converted to rgb color space, obtain the RGB image after rain.
Therein in an embodiment, describedly RGB image is converted to YIQ color space adopts matrix conversion.
Therein in an embodiment, describedly RGB image be converted to YIQ color space adopt the formula of matrix conversion to be:
Therein in an embodiment, described in connection with after YIQ be converted to rgb color space and adopt and ask for matrix
Inverse matrix conversion.
Therein in an embodiment, described in connection with after the YIQ formula that is converted to rgb color space be:
Above-mentioned RGB color image processing method and system, by RGB image is converted to YIQ color space, then only Y component is gone to rain processing, to go rain Y component after treatment and I, Q component combination, be converted to RGB image, that has realized single width coloured image goes rain processing, ensures that image color is undistorted, has improved the usable range that single image removes rain algorithm.
Brief description of the drawings
Fig. 1 is the process flow diagram of RGB color image processing method in an embodiment;
Fig. 2 is the schematic diagram of raindrop impact;
Fig. 3 is the structured flowchart of RGB color picture processing system in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 is the process flow diagram of RGB color image processing method in an embodiment.As shown in Figure 1, this RGB (Red-Green-Blue, R-G-B) color image processing method, comprises the following steps:
Step 102, is converted to YIQ color space by RGB image.
Concrete, YIQ is NTSC (National Television Standards Committee) standard television system.Y is to provide luminance signal, and I represents In-phase, and color is from orange to cyan, and Q represents Quadrature-phase, and color is from purple to yellow green.
Because the brightness of capped pixel is affected by raindrop not only, also can be subject to background influence.Consider that the camera exposure time is T, suppose that the time that raindrop during this period of time cover a certain pixel is τ, and τ is much smaller than camera exposure time T.The rain line brightness I of this pixel in time shutter T on image
brjointly determined by raindrop and background luminance, computing formula is suc as formula (1) and (2):
I
br=I
b+ΔI (2)
Wherein, E
rthe instantaneous raindrop brightness while having raindrop to cover, E
bit is the instantaneous background luminance while covering without raindrop.I
bbe the background luminance that does not have raindrop to cover in the T time, Δ I is the brightness variable quantity that affected by raindrop.The brightness of rain line higher than background luminance be mainly because raindrop in imaging because the light within the scope of Wide-angle has more been converged in the effects such as mirror-reflection, internal reflection, refraction, as shown in Figure 2, mirror-reflection
internal reflection
refraction
the brightness of rain line
Because of ruddiness, green glow close with blue light frequency, the critical angle approximately equal of raindrop to three, and the variation of light intensity directly determines that the brightness of pixel changes, the mirror-reflection of adding three is the same, therefore raindrop cause brightness variation delta R, Δ G, the also approximately equal of Δ B of pixel, belong to the chromatic characteristic of raindrop.
In the present embodiment, this is converted to YIQ color space by RGB image and adopts matrix conversion.
Concrete, this is converted to YIQ color space by RGB image and adopts the formula of matrix conversion to be:
Known according to formula (2), its rgb value of the pixel not affected by raindrop remains unchanged, and the pixel intensity being affected by raindrop can change, and RGB converts to after YIQ, the brightness of Y represent pixel, i.e. and the gray-scale value of gray level image, I and Q are:
I=0.596(R
b+ΔR)-0.274(G
b+ΔG)-0.322(B
b+ΔB) (4)
Q=0.211(R
b+ΔR)-0.523(G
b+ΔG)+0.312(B
b+ΔB) (5)
In formula (4) and (5), R
b, G
b, B
brespectively the background luminance value that red, green, blue triple channel is not affected by raindrop, from the chromatic characteristic of raindrop, Δ R, Δ G, Δ B approximately equal:
I=0.596R
b-0.274G
b-0.322B
b (6)
Q=0.211R
b-0.523G
b+0.312B
b (7)
Therefore the value of I and Q passage is not subject to the impact that raindrop brightness changes, and only has Y passage influenced.
Step 104, extracts the Y component of the presentation video brightness in this YIQ color space.
Step 106, goes rain processing to this Y component.
Concrete, adopt single image to go rain algorithm to go rain processing to this Y component.Single image goes rain algorithm can comprise (the Fu Y H such as Yu-Hsiang Fu, Kang L W, Lin C W, et al.Single-frame-based rain removal via image decomposition.In:Proceeding of 2011IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) .Prague, Czech:IEEE Press, 2011:1453-1456.) and (the Kang L W such as Li-Wei Kang, Lin C W, Fu Y H.Automatic single-image-based rain streaks removal via image decomposition.Image Processing, IEEE Transactions on, 2012, 21 (4): 1742-1755.) proposed to carry out single image by the method for picture breakdown and removed rain, (the Huang D A such as De-An Huang, Kang L W, Yang M C, et al.Context-aware single image rain removal.In:Proceeding of 2012IEEE International Conference on Multimedia and Expo (ICME) .Melbourne, Australia:IEEEPress, 2012:164-169.) propose to remove rain by context aware, (the George J such as Jaina George, Bhavani S, Jaya J.Certain explorations on removal of rain streaks using morphological component analysis.International Journal of Engineering Research & Technology.2013,2 (2) .) propose to use the method for morphology constituent analysis to remove rain, (the Chen D Y such as Duan-Yu Chen, Chen C C, Kang L W.Visual depth guided image rain streaks removal via sparse coding.In:Proceeding of2012International Symposium on Intelligent Signal Processing and Communications Systems.New Taipei, Taiwan:IEEE, 2012:151-156.) remove rain by guiding filtering and sparse coding.
Step 108, will go Y component after rain in conjunction with I and Q component, and in connection with after YIQ be converted to rgb color space, obtain the RGB image after rain.
In one embodiment, should in connection with after YIQ be converted to rgb color space and adopt and ask for matrix
Inverse matrix change, obtain the RGB image after rain, its precision is high.
In one embodiment, should in connection with after the YIQ formula that is converted to rgb color space be:
Above-mentioned RGB color image processing method, by RGB image is converted to YIQ color space, then only Y component is gone to rain processing, to go rain Y component after treatment and I, Q component combination, be converted to RGB image, that has realized single width coloured image goes rain processing, ensures that image color is undistorted, has improved the usable range that single image removes rain algorithm.
Fig. 3 is the structured flowchart of RGB color picture processing system in an embodiment.As shown in Figure 3, this RGB color picture processing system, comprises the first modular converter 320, extraction module 340, removes rain module 360 and the second modular converter 380.Wherein:
The first modular converter 320 is for being converted to YIQ color space by RGB image.
In one embodiment, this is converted to YIQ color space by RGB image and adopts matrix conversion.
This is converted to YIQ color space by RGB image and adopts the formula of matrix conversion to be:
Extraction module 340 is for extracting the Y component of presentation video brightness of this YIQ color space.
Go rain module 360 for this Y component is gone to rain processing.
The second modular converter 380 is for going Y component after rain in conjunction with I and Q component, and in connection with after YIQ be converted to rgb color space, obtain the RGB image after rain.
In one embodiment, should in connection with after YIQ be converted to rgb color space and adopt and ask for matrix
Inverse matrix change.
In one embodiment, should in connection with after the YIQ formula that is converted to rgb color space be:
Above-mentioned RGB color picture processing system, by RGB image is converted to YIQ color space, then only Y component is gone to rain processing, to go rain Y component after treatment and I, Q component combination, be converted to RGB image, that has realized single width coloured image goes rain processing, ensures that image color is undistorted, has improved the usable range that single image removes rain algorithm.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.
Claims (10)
1. a RGB color image processing method, comprises the following steps:
RGB image is converted to YIQ color space;
Extract the Y component of the presentation video brightness in described YIQ color space;
Described Y component is gone to rain processing;
To go Y component after rain in conjunction with I and Q component, and in connection with after YIQ be converted to rgb color space, obtain the RGB image after rain.
2. RGB color image processing method according to claim 1, is characterized in that, described by RGB image be converted to YIQ color space adopt matrix conversion.
3. RGB color image processing method according to claim 2, is characterized in that, describedly RGB image is converted to YIQ color space adopts the formula of matrix conversion to be:
4. RGB color image processing method according to claim 3, is characterized in that, described in connection with after YIQ be converted to rgb color space and adopt and ask for matrix
Inverse matrix conversion.
5. RGB color image processing method according to claim 1, is characterized in that, described in connection with after the YIQ formula that is converted to rgb color space be:
6. a RGB color picture processing system, is characterized in that, comprising:
The first modular converter, for being converted to YIQ color space by RGB image;
Extraction module, for extracting the Y component of presentation video brightness of described YIQ color space;
Go rain module, for described Y component is gone to rain processing;
The second modular converter, for going Y component after rain in conjunction with I and Q component, and in connection with after YIQ be converted to rgb color space, obtain the RGB image after rain.
7. RGB color picture processing system according to claim 6, is characterized in that, described by RGB image be converted to YIQ color space adopt matrix conversion.
8. RGB color picture processing system according to claim 7, is characterized in that, describedly RGB image is converted to YIQ color space adopts the formula of matrix conversion to be:
9. RGB color picture processing system according to claim 8, is characterized in that, described in connection with after YIQ be converted to rgb color space and adopt and ask for matrix
Inverse matrix conversion.
10. RGB color picture processing system according to claim 6, is characterized in that, described in connection with after the YIQ formula that is converted to rgb color space be:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410277499.0A CN104112290A (en) | 2014-06-19 | 2014-06-19 | RGB color image processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410277499.0A CN104112290A (en) | 2014-06-19 | 2014-06-19 | RGB color image processing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104112290A true CN104112290A (en) | 2014-10-22 |
Family
ID=51709067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410277499.0A Pending CN104112290A (en) | 2014-06-19 | 2014-06-19 | RGB color image processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104112290A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080107333A1 (en) * | 2006-11-08 | 2008-05-08 | Amir Mazinani | Method and apparatus for color image correction |
CN102110289A (en) * | 2011-03-29 | 2011-06-29 | 东南大学 | Method for enhancing color image contrast ratio on basis of variation frame |
CN102186089A (en) * | 2011-04-19 | 2011-09-14 | 南京航空航天大学 | Simple-component video image rain field removing method |
CN102231206A (en) * | 2011-07-14 | 2011-11-02 | 浙江理工大学 | Colorized night vision image brightness enhancement method applicable to automotive assisted driving system |
CN103440623A (en) * | 2013-08-02 | 2013-12-11 | 中北大学 | Method for improving image definition in foggy days based on imaging model |
CN103632351A (en) * | 2013-12-16 | 2014-03-12 | 武汉大学 | All-weather traffic image enhancement method based on brightness datum drift |
CN103761714A (en) * | 2014-01-23 | 2014-04-30 | 武汉大学 | Color image enhancement method based on HIS color space |
-
2014
- 2014-06-19 CN CN201410277499.0A patent/CN104112290A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080107333A1 (en) * | 2006-11-08 | 2008-05-08 | Amir Mazinani | Method and apparatus for color image correction |
CN102110289A (en) * | 2011-03-29 | 2011-06-29 | 东南大学 | Method for enhancing color image contrast ratio on basis of variation frame |
CN102186089A (en) * | 2011-04-19 | 2011-09-14 | 南京航空航天大学 | Simple-component video image rain field removing method |
CN102231206A (en) * | 2011-07-14 | 2011-11-02 | 浙江理工大学 | Colorized night vision image brightness enhancement method applicable to automotive assisted driving system |
CN103440623A (en) * | 2013-08-02 | 2013-12-11 | 中北大学 | Method for improving image definition in foggy days based on imaging model |
CN103632351A (en) * | 2013-12-16 | 2014-03-12 | 武汉大学 | All-weather traffic image enhancement method based on brightness datum drift |
CN103761714A (en) * | 2014-01-23 | 2014-04-30 | 武汉大学 | Color image enhancement method based on HIS color space |
Non-Patent Citations (2)
Title |
---|
耿彪等: "《视频图像中雨滴去除技术研究》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
董书莉等: "《视频图像雨场去除仿真研究》", 《计算机仿真》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104112255A (en) | Rain removing method and system for single image | |
Wen et al. | Single underwater image enhancement with a new optical model | |
CN104618700B (en) | Enhanced display method for color high dynamic range image | |
CN106530257A (en) | Remote sensing image de-fogging method based on dark channel prior model | |
CN104112259A (en) | Rain removing method and system for single image | |
CN105205792A (en) | Underwater image enhancement method based on brightness and chrominance separation | |
CN108154492B (en) | A kind of image based on non-local mean filtering goes haze method | |
CN104537634A (en) | Method and system for removing raindrop influences in dynamic image | |
Lee et al. | Color image enhancement using histogram equalization method without changing hue and saturation | |
CN103606134A (en) | Enhancing method of low-light video images | |
CN103327220A (en) | Denoising method oriented by green channel on low illumination Bayer image | |
CN108711160B (en) | Target segmentation method based on HSI (high speed input/output) enhanced model | |
CN102184534A (en) | Method for image fusion by using multi-scale top-hat selective transform | |
CN109003238B (en) | Image haze removal method based on model, histogram and gray level enhancement | |
CN109658367A (en) | Image interfusion method based on Color transfer | |
CN112435184B (en) | Image recognition method for haze days based on Retinex and quaternion | |
CN106340025A (en) | Background replacement visual communication method based on chromatic adaptation transformation | |
CN108960259A (en) | A kind of license plate preprocess method based on HSV | |
CN104318535A (en) | Image defogging method and device and mobile terminal | |
CN103747222B (en) | A kind of method that color artifact of image suppresses and device | |
CN111489333A (en) | No-reference night natural image quality evaluation method | |
CN104299234A (en) | Method and system for removing rain field in video data | |
CN104112254A (en) | Method and system for processing RGB color image | |
CN106846234B (en) | Image video enhancement method, system and equipment based on FPGA | |
CN104112258A (en) | Method and system for realizing RGB color image processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20141022 |