CN106507066B - Suppress the method, apparatus of false color of image - Google Patents
Suppress the method, apparatus of false color of image Download PDFInfo
- Publication number
- CN106507066B CN106507066B CN201611032149.3A CN201611032149A CN106507066B CN 106507066 B CN106507066 B CN 106507066B CN 201611032149 A CN201611032149 A CN 201611032149A CN 106507066 B CN106507066 B CN 106507066B
- Authority
- CN
- China
- Prior art keywords
- rgb image
- pixel
- aberration
- component
- image
- 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
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/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
- H04N25/00—Circuitry of solid-state image sensors [SSIS]; Control thereof
- H04N25/60—Noise processing, e.g. detecting, correcting, reducing or removing noise
Abstract
The invention belongs to technical field of image processing, there is provided a kind of method, apparatus for suppressing false color of image, method include:The first RGB image of input is received, the first RGB image is the RGB image of a secondary rgb color space handled by demosaicing based on Bayer array;Calculate the aberration of each pixel in the first RGB image, the aberration includes each blue component of pixel and the aberration of green component in each red component of pixel in the first RGB image and the aberration of green component and the first RGB image, and the aberration forms colour difference signal;Select the neighborhood window centered on current pixel point to be filtered colour difference signal, obtain filtered colour difference signal;The red component and blue component of each pixel in the first RGB image are corrected according to filtered colour difference signal, exports the second RGB image.By the present invention, the problem of method that the suppression false color of image of prior art offer can be provided, resource consumption is larger.
Description
Technical field
The invention belongs to technical field of image processing, more particularly to a kind of method, apparatus for suppressing false color of image.
Background technology
The one each pixel of width coloured image is required for obtaining tri- color component values of R, G, B.For cost etc.
Consider, most of camera is all using single CCD or cmos sensor, by adding a color filter before sensor
Array, only represents color image with a matrix.A color value can only be got on so each pixel, two other
Color value is then needed using its neighborhood information come interpolation.The color filter array of generally use is Bayer bayer patterns, i.e., one
In the picture element matrix of a 2x2, there is pixel on a diagonal all there was only green value, two pixels are then on another diagonal
There was only red value or blue valve respectively.
However, demosaicing technology is easy to cause the appearance of pseudo-colours, especially because red and blue component accounting is small,
Thus when application demosaicing technology recovers image full color, easily there is error in red and blue component recovery value, shadow
Sound arrives picture quality.
The general method for suppressing false color of image, typically goes to the color spaces such as YUV by image from rgb color space,
Purpose is separation brightness and carrier chrominance signal, and then carrier chrominance signal is filtered, and suppresses pseudo-colours.But the conversion of color space needs
Multiplier quite a lot etc. is wanted, is expended in vast resources, especially image processing process, often many figures after demosaicing
Carried out as Processing Algorithm still needs continuation in rgb color space, convert color spaces, resource consumption are larger back and forth.
The content of the invention
In consideration of it, the embodiment of the present invention provides a kind of method, apparatus for suppressing false color of image, carried with solving the prior art
The problem of method of the suppression false color of image of confession, resource consumption is larger.
The first aspect of the embodiment of the present invention, there is provided a kind of method for suppressing false color of image, the described method includes:
The first RGB image of input is received, first RGB image is that a pair passes through demosaicing based on Bayer array
The RGB image of the rgb color space of processing;
The aberration of each pixel in first RGB image is calculated, the aberration includes every in first RGB image
The blue component B of each pixel in the aberration and first RGB image of the red component R and green component G of a pixel
With the aberration of green component G, the aberration forms colour difference signal;
Select the neighborhood window centered on current pixel point to be filtered the colour difference signal, obtain filtered aberration
Signal;
According to the filtered colour difference signal correct in first RGB image red component R of each pixel and
Blue component B, exports the second RGB image.
Further, the filtered colour difference signal is represented with (R-G) ' and (B-G) ', then
The red component R' of each pixel meets in second RGB image:
R'=G+ (R-G) ';
The blue component B' of each pixel meets in second RGB image:
B'=G+ (B-G) ';
The green component G' of each pixel meets in second RGB image:
G'=G.
Further, the colour difference signal is filtered using noise filter.
Further, the noise filter is median filter or mean filter.
Further, the noise filter is the noise filter of 3*3 templates.
Second aspect, there is provided a kind of device for suppressing false color of image, described device include:
Image input module, for receiving the first RGB image of input, first RGB image is that a pair is based on Bayer
The RGB image of the rgb color space handled by demosaicing of array;
Colour difference signal generation module, for calculating the aberration of each pixel in first RGB image, the aberration bag
Include in first RGB image in the aberration and first RGB image of the red component R and green component G of each pixel
The aberration of the blue component B and green component G of each pixel, the aberration form colour difference signal;
Filter module, for selecting the neighborhood window centered on current pixel point to be filtered the colour difference signal, obtains
To filtered colour difference signal;
Image output module, for correcting each picture in first RGB image according to the filtered colour difference signal
The red component R and blue component B of vegetarian refreshments, export the second RGB image.
Further, filtered colour difference signal (R-G) ' and (B-G) ', then
The red component R' of each pixel meets in second RGB image:
R'=G+ (R-G) ';
The blue component B' of each pixel meets in second RGB image:
B'=G+ (B-G) ';
The green component G' of each pixel meets in second RGB image:
G'=G.
Further, the colour difference signal is filtered using noise filter.
Further, the noise filter is median filter or mean filter.
Further, the noise filter is the noise filter of 3*3 templates.
Existing beneficial effect is the embodiment of the present invention compared with prior art:The embodiment of the present invention, is effectively utilized green
Colouring component accounting in Bayer bayer arrays is high, and pseudo-colours is mainly derived from red and this feelings of the restoration errors of blue component
Condition, it is theoretical with reference to color temperature constant, it is less hard increasing by carrying out filtering and calibration again to the red after recovery and blue component
The obvious effect for suppressing pseudo-colours can be achieved under part expense.The side of the suppression false color of image of prior art offer is provided
The problem of method, resource consumption is larger.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, drawings in the following description be only the present invention some
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the schematic flow diagram of the method for the suppression pseudo-colours that the embodiment of the present invention one provides;
Fig. 2 is the schematic block diagram of the device of suppression pseudo-colours provided by Embodiment 2 of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be special described by the instruction of term " comprising " use in this specification and in the appended claims
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded from one or more of the other feature, entirety, step,
Operation, element, component and/or its presence or addition for gathering.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combinations and all possible combinations of one or more of the associated item listed, and including these combinations.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
It is the schematic flow diagram of the method for the suppression false color of image that the embodiment of the present invention one provides referring to Fig. 1, this method
It can be applied in the device of suppression false color of image, this method may comprise steps of as shown in the figure:
Step S101, receives the first RGB image of input, and first RGB image is a secondary warp based on Bayer array
The RGB image of the rgb color space of past mosaic processing.
In embodiments of the present invention, the rgb color that by demosaicing handles of the width based on Bayer bayer arrays is inputted
It is permissible by follow-up step after receiving the RGB image in the RGB image in space to the device for suppressing false color of image
Effectively suppress the pseudo-colours in the RGB image.
In order to distinguish the RGB image before suppressing pseudo-colours and the RGB image after suppression pseudo-colours, false color of image will be suppressed
The RGB image for not carrying out suppressing Pseudo Col ored Image that receives of device be known as the first RGB image, false color of image will be suppressed
The RGB image obtained after suppression Pseudo Col ored Image of device output is known as the second RGB image.
Step S102, calculates the aberration of each pixel in first RGB image, and the aberration includes described first
Each pixel in the aberration of the red component R and green component G of each pixel and first RGB image in RGB image
Blue component B and green component G aberration, the aberration forms colour difference signal.
In embodiments of the present invention, after receiving the first RGB image, the device for suppressing false color of image calculates described first
The aberration of each pixel in RGB image, the aberration include the red component R of each pixel in first RGB image
With the aberration of the blue component B and green component G of each pixel in the aberration of green component G and first RGB image, institute
State aberration and form colour difference signal.
Specifically, the aberration of each pixel in first RGB image can be calculated by following methods.
Wherein, it is full between the aberration S1 of the red component R and green component G of each pixel in first RGB image
Foot:S1=R-G;It is each in first RGB image to meet between the blue component of pixel and the aberration S2 of green component:S2
=B-G.
Alternatively, it is also possible to be calculated by the method for selecting neighbor point to calculate aberration in first RGB image each
The aberration of pixel, or the aberration of each pixel in first RGB image can also be calculated by other methods,
The embodiment of the present invention is not limited to calculate the color of each pixel in first RGB image above by R-G, B-G is calculated
The method of difference.
Step S103, selects the neighborhood window centered on current pixel point to be filtered the colour difference signal, is filtered
Colour difference signal after ripple.
In embodiments of the present invention, the neighborhood window centered on current pixel point is selected, to being given birth to according to aberration R-G and B-G
Into colour difference signal apply the same filter filtering suitable for noise reduction, such as median filter, mean filter, after obtaining filtering
Colour difference signal (R-G) ' and (B-G) '.
Specifically, the noise filter of other sizes such as 3*3 templates, 5*5 templates can be used.
Preferably, balancing hardware cost and image effect income, using the noise filter of 3*3 templates, cost-effective one
A bit.
Step S104, the red of each pixel in first RGB image is corrected according to the filtered colour difference signal
Colouring component R and blue component B, exports the second RGB image.
In embodiments of the present invention, the filtered color obtained with the green component G of the first RGB image plus step S103
Difference signal (R-G) ' and (B-G) ', so as to fulfill the red component R and blue component B of each pixel in the first RGB image
Correction so that pseudo-colours is inhibited, and exports the second RGB image, second RGB image is the RGB that pseudo-colours is inhibited
Image.
Specifically, the red component R' of the second RGB image meets formula:R'=G+ (R-G) ';The blueness of second RGB image
Component B' meets formula:B'=G+ (B-G) ';The green component G' of each pixel meets formula in second RGB image:G'=
G。
Wherein R' is to correct obtained red component corrected value, and B' is to correct obtained blue component corrected value, the two with
The green component G of input forms R', G, B' component value of the second RGB image together, then exports the second RGB image, and described
Two RGB images are the RGB images suppressed after false color of image.
By the embodiment of the present invention, it is main to be effectively utilized green component accounting height, pseudo-colours in Bayer bayer arrays
It is theoretical with reference to color temperature constant this case that red and blue component restoration errors, by the red after recovery and
Blue component carries out filtering and calibration again, and the obvious effect for suppressing pseudo-colours can be achieved in the case where increasing less hardware spending,
The problem of method that the suppression false color of image of prior art offer is provided, resource consumption is larger.
It is to be understood that in the above-described embodiments, the size of the sequence number of each step is not meant to the priority of execution sequence, each step
Rapid execution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any limit with its function and internal logic
It is fixed.
It is the schematic block diagram of the device of suppression false color of image provided by Embodiment 2 of the present invention referring to Fig. 2, for the ease of
Illustrate, illustrate only and the relevant part of the embodiment of the present invention.
The device 2 for suppressing false color of image includes:Image input module 21, colour difference signal generation module 22, filtering
Module 23 and image output module 24.
Wherein, image input module 21, for receiving the first RGB image of input, first RGB image is a secondary base
In the RGB image of the rgb color space handled by demosaicing of Bayer array;
Colour difference signal generation module 22, for calculating the aberration of each pixel in first RGB image, the aberration
Including the aberration of the red component R and green component G of each pixel and first RGB image in first RGB image
In each pixel blue component B and green component G aberration, the aberration composition colour difference signal;
Filter module 23, for selecting the neighborhood window centered on current pixel point to be filtered the colour difference signal,
Obtain filtered colour difference signal;
Image output module 24, it is each in first RGB image for being corrected according to the filtered colour difference signal
The red component R and blue component B of pixel, export the second RGB image.
Specifically, filtered colour difference signal (R-G) ' and (B-G) ', then
The red component R' of each pixel meets in second RGB image:
R'=G+ (R-G) ';
The blue component B' of each pixel meets in second RGB image:
B'=G+ (B-G) ';
The green component G' of each pixel meets in second RGB image:
G'=G.
Further, the colour difference signal is filtered using noise filter.
Further, the noise filter is median filter or mean filter.
Further, the noise filter is the noise filter of 3*3 templates.
Those of ordinary skill in the art may realize that each exemplary mould described with reference to the embodiments described herein
Block and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical solution.Specially
Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not
It is considered as beyond the scope of this invention.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, can pass through others
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the module or unit,
Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with
With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed
Mutual coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or
Communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality
Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to foregoing each
Technical solution described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed
Or replace, the essence of appropriate technical solution is departed from the spirit and model of each embodiment technical solution of the embodiment of the present invention
Enclose.
Claims (10)
- A kind of 1. method for suppressing false color of image, it is characterised in that the described method includes:The first RGB image of input is received, first RGB image is secondary being handled by demosaicing based on Bayer array Rgb color space RGB image;The aberration of each pixel, the aberration include described first in rgb color space calculates first RGB image Each pixel in the aberration of the red component R and green component G of each pixel and first RGB image in RGB image Blue component B and green component G aberration, the aberration forms colour difference signal;Neighborhood window centered on current pixel point is selected to including the red component of each pixel in first RGB image The aberration of the blue component B and green component G of each pixel in the aberration and first RGB image of R and green component G Colour difference signal is filtered, and obtains filtered colour difference signal;According to the red of each pixel in the first RGB image of the filtered colour difference signal modified R GB color spaces point R and blue component B is measured, exports the second RGB image.
- 2. according to the method described in claim 1, it is characterized in that, filtered colour difference signal (R-G) ' and (B-G) ' Represent, then the red component R' of each pixel meets in second RGB image:R'=G+ (R-G) ';The blue component B' of each pixel meets in second RGB image:B'=G+ (B-G) ';The green component G' of each pixel meets in second RGB image:G'=G.
- 3. according to the method described in claim 1, it is characterized in that, the colour difference signal is filtered using noise filter Ripple.
- 4. according to the method described in claim 3, it is characterized in that, the noise filter is median filter or average filter Ripple device.
- 5. according to the method described in claim 3, it is characterized in that, the noise filter is the noise filter of 3*3 templates.
- 6. a kind of device for suppressing false color of image, it is characterised in that described device includes:Image input module, for receiving the first RGB image of input, first RGB image is that a pair is based on Bayer array By demosaicing handle rgb color space RGB image;Colour difference signal generation module, for the aberration of each pixel in calculating first RGB image in rgb color space, The aberration includes the aberration and described first of the red component R and green component G of each pixel in first RGB image The aberration of the blue component B and green component G of each pixel in RGB image, the aberration form colour difference signal;Filter module, for selecting the neighborhood window centered on current pixel point to including each picture in first RGB image In the aberration and first RGB image of the red component R and green component G of vegetarian refreshments the blue component B of each pixel with it is green The colour difference signal of the aberration of colouring component G is filtered, and obtains filtered colour difference signal;Image output module, for every in the first RGB image according to the filtered colour difference signal modified R GB color spaces The red component R and blue component B of a pixel, export the second RGB image.
- 7. device according to claim 6, it is characterised in that filtered colour difference signal (R-G) ' and (B-G) ' Represent, thenThe red component R' of each pixel meets in second RGB image:R'=G+ (R-G) ';The blue component B' of each pixel meets in second RGB image:B'=G+ (B-G) ';The green component G' of each pixel meets in second RGB image:G'=G.
- 8. device according to claim 6, it is characterised in that filtered using noise filter to the colour difference signal Ripple.
- 9. device according to claim 8, it is characterised in that the noise filter is median filter or average filter Ripple device.
- 10. device according to claim 8, it is characterised in that the noise filter is the noise reduction filtering of 3*3 templates Device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611032149.3A CN106507066B (en) | 2016-11-22 | 2016-11-22 | Suppress the method, apparatus of false color of image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611032149.3A CN106507066B (en) | 2016-11-22 | 2016-11-22 | Suppress the method, apparatus of false color of image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106507066A CN106507066A (en) | 2017-03-15 |
CN106507066B true CN106507066B (en) | 2018-04-17 |
Family
ID=58327710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611032149.3A Active CN106507066B (en) | 2016-11-22 | 2016-11-22 | Suppress the method, apparatus of false color of image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106507066B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109993706B (en) * | 2018-01-02 | 2021-02-26 | 北京紫光展锐通信技术有限公司 | Digital image processing method and device and computer readable storage medium |
WO2019196109A1 (en) * | 2018-04-13 | 2019-10-17 | 深圳市锐明技术股份有限公司 | Method and apparatus for suppressing image pseudo-colour |
CN113038092B (en) * | 2021-03-24 | 2023-06-02 | 成都国科微电子有限公司 | Demosaicing method, device, equipment and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4011861B2 (en) * | 2001-03-29 | 2007-11-21 | キヤノン株式会社 | Signal processing apparatus and method |
US7995840B2 (en) * | 2008-03-28 | 2011-08-09 | Seiko Epson Corporation | Image processing apparatus, image processing method, and program for attaining image processing |
CN104010174B (en) * | 2009-10-13 | 2016-08-31 | 佳能株式会社 | Image processing equipment and image processing method |
JP5677040B2 (en) * | 2010-11-08 | 2015-02-25 | キヤノン株式会社 | Image processing apparatus and control method thereof |
WO2012117584A1 (en) * | 2011-02-28 | 2012-09-07 | 富士フイルム株式会社 | Color imaging device |
CN102630018B (en) * | 2012-03-27 | 2014-07-23 | 上海算芯微电子有限公司 | Method and device for demosaicking |
CN103747222B (en) * | 2013-12-27 | 2016-04-06 | 上海富瀚微电子股份有限公司 | A kind of method that color artifact of image suppresses and device |
-
2016
- 2016-11-22 CN CN201611032149.3A patent/CN106507066B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106507066A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1812592B (en) | Method and apparatus for processing image data of a color filter array | |
WO2018145576A1 (en) | Multi-spectrum-based image fusion apparatus and method, and image sensor | |
EP1371014B1 (en) | System and method for asymmetrically demosaicing raw data images using color discontinuity equalization | |
US6236433B1 (en) | Scaling algorithm for efficient color representation/recovery in video | |
US7872681B2 (en) | System and method for a high performance color filter mosaic array | |
CN106507066B (en) | Suppress the method, apparatus of false color of image | |
CN103905802B (en) | A kind of demosaicing methods based on P pattern colour filter array and device | |
WO2017152402A1 (en) | Image processing method and apparatus for terminal, and terminal | |
WO2011152174A1 (en) | Image processing device, image processing method and program | |
EP2728545B1 (en) | Image processing method and device based on bayer format | |
CN102778201A (en) | Image processing device, image processing method, and program | |
JP2009005232A (en) | Image processor, image processing method, program and image pick-up device | |
US20070292022A1 (en) | Weighted gradient based and color corrected interpolation | |
US20020149687A1 (en) | Green reconstruction for image sensors | |
CN106412542A (en) | Image processing method and system | |
CN110493583A (en) | Image processing method, device, electronic equipment and computer readable storage medium | |
CN101079957B (en) | Image processing system | |
CN103747222B (en) | A kind of method that color artifact of image suppresses and device | |
CN111861964A (en) | Image processing method, apparatus and storage medium | |
CN103780887B (en) | A kind of video signal processing method and device | |
CN101939995A (en) | Image processing device and image processing program | |
CN101815220B (en) | Method for correcting image color distortion | |
CN113052765B (en) | Panoramic image splicing method based on optimal grid density model | |
CN106993175A (en) | Produce the method that the pixel used for realizing auto kine bias function computing screens scope | |
WO2012159586A1 (en) | Color distortion correction method and device for imaging systems and image output systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 518000 Guangdong, Nanshan District high tech Zone, Shenzhen Software Park Phase 1, building 4, room, building 4, 406-421 Applicant after: Shenzhen Shenyang electronic Limited by Share Ltd Address before: 518000 Guangdong, Nanshan District high tech Zone, Shenzhen Software Park Phase 1, building 4, room, building 4, 406-421 Applicant before: Aike Chuangxin Microelectronic Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |