(a) Field of the Invention
The invention relates to an image detection method and device, particularly to a false color reduction system and method for color interpolation.
(b) Description of the Related Art
In general, consumer electronics using a single sensor for image acquisition such as digital cameras, video recorders, multimedia mobile phones, surveillance systems, video phones usually use a Bayer color filter array (Bayer CFA) covered on a single sensor to record red, green, and blue color information simultaneously to achieved the purpose of cost reduction. As shown in
It should be noted that the color interpolation calculation method needs to analysis image structure and color so that the calculation result has critical impact on the final output image quality.
In the color interpolation calculation method, when a step of sampling the RGB array image is processed, color noises such as color aliasing and false color often occur at edges and texture areas of an image to result in lowering image display quality.
One object of the invention is to provide a false color reduction system and method to reduce color noises such as color aliasing and false color occurring at edges and texture areas.
One embodiment of the invention provides a false color reduction system, including a red/blue color interpolation signal reference level estimator, a red/blue color interpolation signal noise analyzer and a red/blue color interpolation signal noise regulator. The red/blue color interpolation signal reference level estimator receives a RGB image array and a red/blue color interpolation signal of the RGB image array, and calculates a difference value between a green target pixel or a green interpolation pixel corresponding to a red/blue target pixel of the RGB image array and an average value of a plurality of green pixels nearby the green target pixel or the green interpolation pixel to generate a green difference signal. The red/blue color interpolation signal reference level estimator further calculates an average signal of the red/blue color interpolation signal and a plurality of the same color pixels around the red/blue color interpolation signal, and generates a red/blue reference level according to the green difference signal and the average signal. The red/blue color interpolation signal noise analyzer is coupled to the red/blue color interpolation signal reference level estimator and receives the red/blue reference level. The red/blue color interpolation signal noise analyzer determines if a value of the red/blue color interpolation signal is larger than a sum of the red/blue reference level and a correlation value, and determines the value of the red/blue color interpolation signal is smaller than a difference between the red/blue reference level and the correlation value so as to generate an analysis result. The red/blue color interpolation signal noise regulator is coupled to the red/blue color interpolation signal noise analyzer and receives the analysis result to generate a corrected red/blue color interpolation signal.
Another embodiment of the invention provides a false color reduction method, including the following steps: receiving a RGB image array and a red/blue color interpolation signal of the RGB image array; calculating a difference value between a green target pixel or a green interpolation pixel corresponding to a red/blue target pixel of the RGB image array and an average value of a plurality of green pixels nearby the green target pixel or the green interpolation pixel to generate a green difference signal; calculating an average signal of the red/blue color interpolation signal and a plurality of the same color pixels around the red/blue color interpolation signal and generating a red/blue reference level according to the green difference signal and the average signal; receiving the red/blue reference level, determining if a value of the red/blue color interpolation signal is larger than a sum of the red/blue reference level and a correlation value, and determining the value of the red/blue color interpolation signal is smaller than a difference between the red/blue reference level and the correlation value so as to generate an analysis result; and receiving the analysis result to generate a corrected red/blue color interpolation signal.
The false color reduction system and method according to the embodiments of the present invention properly adjust a value of red or blue color interpolation signal according to original image array information without additional buffer memory so as to real-time correctly reconstruct an image to enhance image quality for solving the problems in the prior art.
The red/blue color interpolation signal reference level estimator 201 receives a RGB image array and a red/blue color interpolation signal R/B of the RGB image array and then calculates a difference value between a green target pixel G(i,j) and an average value
Then, the red/blue color interpolation signal reference level estimator 201 further calculates an average signal
The red/blue color interpolation signal noise analyzer 202 is coupled to the red/blue color interpolation signal reference level estimator 201 and receives the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j). The red/blue color interpolation signal noise analyzer 202 determines if a value of the red/blue color interpolation signal R/B is larger than a sum ({circumflex over (R)}Target(i,j)+C/{circumflex over (B)}Target(i,j)+C) of the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j) and a correlation value C, and determines the value of the red/blue color interpolation signal R/B is smaller than a difference ({circumflex over (R)}Target(i,j)−C/{circumflex over (B)}Target(i,j)−C) between the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j) and the correlation value C so as to generate an analysis result ru.
The red/blue color interpolation signal noise regulator 203 is coupled to the red/blue color interpolation signal noise analyzer 202 and generates a corrected red/blue color interpolation signal {tilde over (R)}(i,j)/{tilde over (B)}(i,j) according to the analysis result ru.
The red/blue color interpolation signal noise analyzer 202 performs analysis on the analysis result ru. If the analysis result ru is that the value of the red/blue color interpolation signal R/B is larger than a sum ({circumflex over (R)}Target(i,j)+C/{circumflex over (B)}Target(i,j)+C) of the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j) and a correlation value C, it means an estimating value of the red/blue color interpolation signal R/B is relatively high and the red/blue color interpolation signal noise regulator 203 sets the corrected red/blue color interpolation signal {tilde over (R)}(i,j)/{tilde over (B)}(i,j) equivalent to the difference ({circumflex over (R)}Target(i,j)−C/{circumflex over (B)}Target(i,j)−C) between the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j) and the correlation value C so as to lower the estimating value.
On the other hand, the red/blue color interpolation signal noise analyzer 202 performs analysis on the analysis result ru. If the analysis result ru is that the value of the red/blue color interpolation signal R/B is smaller than the difference ({circumflex over (R)}Target(i,j)−C/{circumflex over (B)}Target(i,j)−C) between the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j) and the correlation value C, it means an estimating value of the red/blue color interpolation signal R/B is relatively low and the red/blue color interpolation signal noise regulator 203 sets the corrected red/blue color interpolation signal {tilde over (R)}(i,j)/{tilde over (B)}(i,j) equivalent to the sum ({circumflex over (R)}Target(i,j)+C/{circumflex over (B)}Target(i,j)+C) of the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j) and the correlation value C so as to raise the estimating value.
Moreover, the red/blue color interpolation signal noise analyzer 202 performs analysis on the analysis result ru. If the analysis result ru is that the value of the red/blue color interpolation signal R/B is not larger than the sum ({circumflex over (R)}Target(i,j)+C/{circumflex over (B)}Target(i,j)+C) of the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j) and the correlation value C and is also not smaller than the difference ({circumflex over (R)}Target(i,j)−C/{circumflex over (B)}Target(i,j)−C) between the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j) and the correlation value C, it means an estimating value of the red/blue color interpolation signal R/B is relatively neither high nor low and the red/blue color interpolation signal noise regulator 203 sets the corrected red/blue color interpolation signal {tilde over (R)}Target(i,j)/{tilde over (B)}Target(i,j) to equal to the red/blue reference level {circumflex over (R)}Target(i,j)/{circumflex over (B)}Target(i,j). Further the reason for being set to the red reference level {circumflex over (R)}Target(i,j)=
In this way, the false color reduction system 200 properly adjust a value of red or blue color interpolation signal R/B according to original image array information so as to real-time correctly reconstruct an image to enhance image quality for solving the color noise problems like color aliasing and false color in the prior art.
It should be noted that the false color reduction system 200 may be applied to any current existed interpolation device or any interpolation device to be developed in the future, for example, the interpolation device 201 shown in
Step S302: start.
Step S304: receiving a RGB image array. As shown in
Step S306: calculating a difference value
If the target pixel is a blue pixel B(i,j), shown by line TB of
Step S308: calculating an average signal
Step S310: receiving the red/blue reference level, determining if a value of the red/blue color interpolation signal is larger than a sum of the red/blue reference level and a correlation value, and determining if the value of the red/blue color interpolation signal is smaller than a difference between the red/blue reference level and the correlation value so as to generate an analysis result.
Step S3101: determining if a value of the red/blue color interpolation signal R/B is larger than a sum ({circumflex over (R)}Target(i,j)+C) of the red/blue reference level and a correlation value C; go to step S3102 if yes; go to step S3103 if no.
Step S3102: setting the corrected red/blue color interpolation {tilde over (R)}(i,j) signal equivalent to a difference ({circumflex over (R)}Target(i,j)−C) between the red/blue reference level and the correlation value C.
Step S3103: determining if a value of the red/blue color interpolation signal R/B is smaller than a difference ({circumflex over (R)}Target(i,j)−C) between the red/blue reference level and the correlation value C; go to step S3104 if yes; go to step S3105 if no.
Step S3104: setting the corrected red/blue color interpolation {tilde over (R)}(i,j) signal equivalent to a sum ({circumflex over (R)}Target(i,j)+C) of the red/blue reference level and the correlation value C.
Step S3105: setting the corrected red/blue color interpolation {tilde over (R)}(i,j) signal equivalent to the red/blue reference level {circumflex over (R)}Target(i,j) when the value of the red/blue color interpolation signal R/B is not larger than a sum ({circumflex over (R)}Target(i,j)+C) of the red/blue reference level and the correlation value C and is not smaller than the difference ({circumflex over (R)}Target(i,j)−C) of the red/blue reference level and the correlation value C at the time.
Step S312: receiving the analysis result ru to generate a corrected red/blue color interpolation signal {tilde over (R)}(i,j)/{tilde over (B)}(i,j).
Step S314: end.
It should be noted that the false color reduction system and method according to the embodiments of the present invention can be applied to, for example, a Bayer color filter array shown in
The false color reduction system and method according to the embodiments of the present invention properly adjust a value of red or blue color interpolation signal R/B according to original image array information to real-time correctly reconstruct an image to enhance image quality for solving the color noise problems like color aliasing and false color in the prior art. Moreover, the false color reduction system and method according to the embodiments of the present invention do not need additional buffer memory and do not need to complete all-color interpolation stored in the image array in the buffer memory in advance to process correction but can achieve the purpose of false color reduction.
Although the present invention has been fully described by the above embodiments, the embodiments should not constitute the limitation of the scope of the invention. Various modifications or changes can be made by those who are skilled in the art without deviating from the spirit of the invention.
Number | Date | Country | Kind |
---|---|---|---|
102141997 A | Nov 2013 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
4724395 | Freeman | Feb 1988 | A |
6795586 | Gindele | Sep 2004 | B1 |
7683948 | Yanof | Mar 2010 | B2 |
7755682 | Lin | Jul 2010 | B2 |
8294781 | Cote | Oct 2012 | B2 |
8305458 | Hara | Nov 2012 | B2 |
Number | Date | Country |
---|---|---|
I272016 | Jan 2007 | TW |
Number | Date | Country | |
---|---|---|---|
20150138439 A1 | May 2015 | US |