CN102572449A - Image processing device and image processing method based on three primary colors of RGB (red, green and blue) - Google Patents
Image processing device and image processing method based on three primary colors of RGB (red, green and blue) Download PDFInfo
- Publication number
- CN102572449A CN102572449A CN2012100469481A CN201210046948A CN102572449A CN 102572449 A CN102572449 A CN 102572449A CN 2012100469481 A CN2012100469481 A CN 2012100469481A CN 201210046948 A CN201210046948 A CN 201210046948A CN 102572449 A CN102572449 A CN 102572449A
- Authority
- CN
- China
- Prior art keywords
- image
- rgb
- image processing
- primary colors
- channel value
- 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
Images
Abstract
The invention discloses an image processing device and an image processing method based on three primary colors of RGB (red, green and blue). The processing method comprises the steps that the same color camera is used to respectively shoot the same position of the same object under light rays in two primary colors of RB and light rays in a primary color of G, so as to respectively obtain a first image and a second image; and the first and the second images are synthesized to form a synthesized image. The image processing method has the advantages that according to a mutual interference principle of the light in the three colors of RGB, the same regional position is shot twice, and the images obtained through twice shooting are utilized to be synthesized to form the objective color image, so that mutual interference among the light in the three colors of RGB in the finally synthesized image is small and the image has an obvious layered feeling, thereby optimizing the image quality.
Description
Technical field
The present invention relates to image processing techniques, especially relate to image processing apparatus and corresponding processing method that the mutual principle of interference of a kind of RGB of utilization three primary colors is realized.
Background technology
RGB is the color mode of coloured light, and R represents red, and G represents green, and B represents blue.Because each all has 256 luminance level levels three kinds of colors, so three kinds of colors stacks just can form 1,670 ten thousand kinds of colors (being commonly called as " very coloured silk ").
The RGB pattern is because be to form other colors by the stack of red, green, blue three form and aspect, so this pattern also is the additive color pattern.Under this color mode, each primary colors will form a color channel (Channel) separately, and the brightness of color is respectively 256 rank on each passage, by 0-255.Again by three monochromatic channel group synthetic a composite channel, i.e. RGB passage.Therefore, the color of image each several part determines by the numerical value on three color channels of RGB.
In the process of photographic images; Find following phenomenon: under the green primary light source in the color image shot process; Image is except that green channel, and the value of red channel and blue passage is 0 in theory, and in fact in the image red channel and blue channel all possess certain brightness; Under the blue primary light source, take in the color image process, image is except that blue channel, and red channel is 0 with the value of the passage of green in theory, and the value of red channel very little (being almost 0) in fact, green channel possesses certain brightness; Under the red primary light source, take in the color image process, image is except that red channel, and green channel is 0 with the value of the passage of blueness in theory, and the value of blue channel very little (being almost 0) in fact, green channel possesses certain brightness.Can reach a conclusion thus: in image shoot process; Exist the phenomenon of mutual interference (colour contamination) between redness and the green; Exist mutual interference (colour contamination) phenomenon between green and the blueness; Interfere (colour contamination) phenomenon but very little between redness and the blueness each other, Here it is the mutual principle of interference of RGB three primary colors.
Owing to exist three primary colors to interfere each other, the image level sense that causes taking is relatively poor, influence display effect; Even in the commercial Application process, owing to three primary colors are interfered each other and made image can't reflect the true colors of article or scene really.
Summary of the invention
The present invention proposes image processing apparatus and the corresponding processing method that the mutual principle of interference of a kind of RGB of utilization three primary colors is realized, has the technical problem that the image level sense is relatively poor, can't accurately reflect the defectives such as true colors of article or scene to solve present image because of the mutual interference of three primary colors phase.
The present invention adopts following technical scheme to realize: a kind of image processing method based on the RGB three primary colors, and it comprises step:
Under RB two primary colours light and G primary colours light, the same position of same object is taken respectively, obtain first image and second image respectively by same color camera;
With first image and the synthetic composograph that is treated to of second image.
Wherein, the said synthetic step that is treated to composograph specifically comprises:
With the red color channel value rr and the blue channel value bb of each pixel in first image, calculate the red color channel value R0 and the blue channel value B0 of each pixel in the composograph respectively according to linear programming R0=m * rr+n and B0=m * bb+n;
With the green channel value gg of each pixel in second image, calculate the green channel value G0 of each pixel in the composograph according to linear programming G 0=m * gg+n;
Wherein, m, n are the parameters of linear programming.
Wherein, m is 0.9 ~ 1.1.In a preferred embodiment, m=1, n=0.
In addition, the present invention also discloses a kind of image processing apparatus based on the RGB three primary colors, and it comprises: color camera, RGB three-color light source and be used to control the light-source control system of RGB three-color light source, and the synthetic processing unit that is connected with color camera;
By color camera the same position of same object is taken under RB two primary colours light and G primary colours light respectively, obtain first image and second image respectively;
By synthetic processing unit with the synthetic composograph that is treated to of first image and second image.
Compared with prior art, the present invention has following beneficial effect:
The present invention is according to the mutual principle of interference of RGB three coloured light; Secondary is taken the same area position, and the synthetic width of cloth object color component image of the image that utilizes secondary to take is interfered little each other between each coloured light of RGB in the final composograph; The image level sense is obvious, thereby has optimized picture quality.
Description of drawings
Fig. 1 is the sketch map of filming apparatus;
Fig. 2 is a schematic flow sheet of the present invention.
Embodiment
As shown in Figure 1; The filming apparatus that the present invention is practical; Comprise that (the RGB three-color light source is to have the light source that redgreenblue LED forms, and has no special requirements, for example for a color camera (being generally industrial camera), RGB three-color light source; The annular light source arranged of R, G, B respectively from top to bottom, also can be from outward in be respectively the flat-plate light source of B, G, R arrangement), a light-source control system that is used to control the RGB three-color light source.
The object that is taken is placed on the shooting platform, sends background light at light-source control system control RGB three-color light source, by color camera to the subject photographic images.
In conjunction with shown in Figure 2, the present invention comprises following performing step in order to obtain stereovision more significantly image, optimize image quality:
Step S11, obtain under RB two primary colours light first image of taking.
Because there is mutual interference hardly in red and blueness, the photographic images that RB opens simultaneously exists the mutual interference of red channel and blue channel hardly in the image pixel.Therefore, under the control of light-source control system, make the RGB three-color light source send RB light (send red lamp and open entirely, close), subject is taken first image by color camera and send green lamp with blueness.
Step S12, obtain under G primary colours light second image of taking, wherein second image and first image are by the same color camera image captured to the same position of same object.
Because green and red, green and indigo plant all exists serious mutual interference, so green light can only be taken separately.Under the control of light-source control system, make the RGB three-color light source send G light (send red with blue lamp contract fully, open) and send green lamp, by color camera at same second image to the subject and first image.
Step S13, with the synthetic width of cloth composograph that is treated to of first image and second image.
Wherein composition rule is following:
Y?=?m?*?X?+?n
Wherein m, n are the parameters of linear programming, and m, m be empirical value, and the value of m is 0.9 ~ 1.1, and the m value that different color cameras is corresponding different, m value directly influence the quality that image synthesizes.
Wherein Y representes the channel brightness value of the pixel access in the composograph, and X representes the channel brightness value of photographic images passage brightness.
The channel value B0 of the channel value R0 of the redness of each pixel (R) and blueness (B) is respectively the channel value rr of the redness (R) of corresponding each pixel in first image and the channel value bb of blueness (B) in the composograph; And the channel value G0 of the green of each pixel (G) is the channel value gg of the green (G) of corresponding each pixel in second image in the composograph; Therefore, then above-mentioned linear programming is following:
R0=m * rr+n; Wherein, the scope of R0 (0,255)
G0=m * gg+n; Wherein, the scope of G0 (0,255)
B0=m * bb+n; Wherein, the scope of B0 (0,255)
In a preferred embodiment, m=1, n=0.Convert above-mentioned 3 sub-conversion formulas into through linear programming, individual element point calculates, and through point-to-point image transitions, accomplishes the synthetic conversion of image, obtains composograph at last.
Above-mentioned rule just is meant that the red channel in the composograph is the linear programming variation of red channel in first image; Blue channel in the composograph is that the linear programming of the first image Smalt passage changes, and the green channel in the composograph is that the linear programming of green channel in second image changes.
In addition; Above-mentioned steps S13 can be realized that this synthetic processing unit is the software of computer programing, in the computer that it can be arranged on color camera is connected by synthetic processing unit; Also can be built in the color camera; Behind execution in step S11 and step S12, call synthetic processing unit completing steps S13 by color camera automatically, obtain interfering each other between each coloured light of RGB little, the tangible composograph of image level sense at last.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (8)
1. the image processing method based on the RGB three primary colors is characterized in that, comprises step:
Under RB two primary colours light and G primary colours light, the same position of same object is taken respectively, obtain first image and second image respectively by same color camera;
With first image and the synthetic composograph that is treated to of second image.
2. according to the said image processing method of claim 1, it is characterized in that the said synthetic step that is treated to composograph specifically comprises based on the RGB three primary colors:
With the red color channel value rr and the blue channel value bb of each pixel in first image, calculate the red color channel value R0 and the blue channel value B0 of each pixel in the composograph respectively according to linear programming R0=m * rr+n and B0=m * bb+n;
With the green channel value gg of each pixel in second image, calculate the green channel value G0 of each pixel in the composograph according to linear programming G 0=m * gg+n;
Wherein, m, n are the parameters of linear programming.
3. according to the said image processing method of claim 2, it is characterized in that m is 0.9 ~ 1.1 based on the RGB three primary colors.
4. according to the said image processing method of claim 3, it is characterized in that m=1, n=0 based on the RGB three primary colors.
5. image processing apparatus based on the RGB three primary colors, it comprises: color camera, RGB three-color light source and be used to control the light-source control system of RGB three-color light source, it is characterized in that, also comprise the synthetic processing unit that is connected with color camera;
By color camera the same position of same object is taken under RB two primary colours light and G primary colours light respectively, obtain first image and second image respectively;
By synthetic processing unit with the synthetic composograph that is treated to of first image and second image.
6. according to the said image processing apparatus of claim 5, it is characterized in that said synthetic processing unit is treated to composograph and specifically comprises first image and second image are synthetic based on the RGB three primary colors:
With the red color channel value rr and the blue channel value bb of each pixel in first image, calculate the red color channel value R0 and the blue channel value B0 of each pixel in the composograph respectively according to linear programming R0=m * rr+n and B0=m * bb+n;
With the green channel value gg of each pixel in second image, calculate the green channel value G0 of each pixel in the composograph according to linear programming G 0=m * gg+n;
Wherein, m, n are the parameters of linear programming.
7. according to the said image processing apparatus of claim 6, it is characterized in that m is 0.9 ~ 1.1 based on the RGB three primary colors.
8. according to the said image processing apparatus of claim 7, it is characterized in that m=1, n=0 based on the RGB three primary colors.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100469481A CN102572449A (en) | 2012-02-28 | 2012-02-28 | Image processing device and image processing method based on three primary colors of RGB (red, green and blue) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100469481A CN102572449A (en) | 2012-02-28 | 2012-02-28 | Image processing device and image processing method based on three primary colors of RGB (red, green and blue) |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102572449A true CN102572449A (en) | 2012-07-11 |
Family
ID=46416752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100469481A Pending CN102572449A (en) | 2012-02-28 | 2012-02-28 | Image processing device and image processing method based on three primary colors of RGB (red, green and blue) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102572449A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105812761A (en) * | 2015-08-03 | 2016-07-27 | 维沃移动通信有限公司 | Image color reduction method and terminal |
CN106289099A (en) * | 2016-07-28 | 2017-01-04 | 汕头大学 | A kind of single camera vision system and three-dimensional dimension method for fast measuring based on this system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1747555A (en) * | 2004-09-09 | 2006-03-15 | 麦克奥迪实业集团有限公司 | Method for synthesizing color dynamic image from monochrome CCD/CMOS system |
CN1837949A (en) * | 2006-04-19 | 2006-09-27 | 王锦峰 | Imaging system employing black-and-white camera to photograph colorful images |
CN1979292A (en) * | 2005-11-30 | 2007-06-13 | 奇美电子股份有限公司 | Liquid crystal display of displaying different colours to present image in specific period |
CN101150732A (en) * | 2006-09-20 | 2008-03-26 | 王锦峰 | Imaging method and device for color image shot by black and white camera |
CN102279467A (en) * | 2010-06-13 | 2011-12-14 | 陈小军 | Three-dimensional (3D) imaging system and method |
-
2012
- 2012-02-28 CN CN2012100469481A patent/CN102572449A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1747555A (en) * | 2004-09-09 | 2006-03-15 | 麦克奥迪实业集团有限公司 | Method for synthesizing color dynamic image from monochrome CCD/CMOS system |
CN1979292A (en) * | 2005-11-30 | 2007-06-13 | 奇美电子股份有限公司 | Liquid crystal display of displaying different colours to present image in specific period |
CN1837949A (en) * | 2006-04-19 | 2006-09-27 | 王锦峰 | Imaging system employing black-and-white camera to photograph colorful images |
CN101150732A (en) * | 2006-09-20 | 2008-03-26 | 王锦峰 | Imaging method and device for color image shot by black and white camera |
CN102279467A (en) * | 2010-06-13 | 2011-12-14 | 陈小军 | Three-dimensional (3D) imaging system and method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105812761A (en) * | 2015-08-03 | 2016-07-27 | 维沃移动通信有限公司 | Image color reduction method and terminal |
CN105812761B (en) * | 2015-08-03 | 2018-05-11 | 维沃移动通信有限公司 | The restoring method and terminal of a kind of color of image |
CN106289099A (en) * | 2016-07-28 | 2017-01-04 | 汕头大学 | A kind of single camera vision system and three-dimensional dimension method for fast measuring based on this system |
CN106289099B (en) * | 2016-07-28 | 2018-11-20 | 汕头大学 | A kind of single camera vision system and the three-dimensional dimension method for fast measuring based on the system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107197225B (en) | Color digital camera white balance correcting based on chromatic adaptation model | |
CN104464623B (en) | A kind of method and device for adjusting the low GTG of light emitting diode | |
CN101895770B (en) | Uniformity correcting method for separating brightness and chromaticity of LED display screen | |
CN102026003A (en) | Method and device for correcting colors of multi-screen splicing wall | |
CN102158727B (en) | Method and system for detecting color reducibility of camera of mobile phone | |
RU2013114372A (en) | AUTOMATIC PROCESSING OF WHITE BALANCE WITH FLEXIBLE SELECTION OF COLOR SPACE | |
CN102572448A (en) | Device and method for shooting color image based on red, white and blue (RWB) three-color light | |
CA3001430C (en) | Image processing method and device for led display screen | |
CN104639923A (en) | Method and device for processing image data, and terminal | |
CN103366680A (en) | Led display screen white balance correction technology | |
CN101556758B (en) | Method for realizing displaying of high dynamic luminance range images by a plurality of projecting cameras | |
CN106210687A (en) | Transparent display and image adjusting method thereof | |
CN105872500A (en) | Adjusting method and device for white balance of image | |
CN102426828A (en) | Screen edge color adjusting method and device | |
CN107864369B (en) | The compound display acquisition method of LED display | |
CN104243793A (en) | Image-capturing device having image identification mechanism and method | |
CN103474021A (en) | Method for increasing display color gamut of LED display screen | |
CN105516699A (en) | Image sensor and imaging method thereof, imaging device and electronic device | |
CN102629967A (en) | Correction method for non-uniform illumination of copying device | |
CN102572449A (en) | Image processing device and image processing method based on three primary colors of RGB (red, green and blue) | |
CN202059518U (en) | System for white balance correction by using color plate | |
CN108833875A (en) | A kind of method for correcting automatic white balance | |
CN111052869A (en) | Illumination method and system for improving perspective color perception of images viewed by a user | |
Lam et al. | Automatic white balancing using standard deviation of RGB components | |
CN102355567A (en) | Automatic color cast interference processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120711 |