This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2008-35357 filed on Feb. 15, 2008, the entire contents of which are incorporated herein by reference.
The embodiments discussed herein are directed to a noise filter for suppressing noise in an image signal.
Each signal obtained by photoelectric conversion and amplification performed for each pixel during every horizontal scanning is taken as an image signal through a column CDS (Correlated Double Sampling) circuit 704. The CDS circuit 704 has a structure wherein a number of pixels equal to the number of columns are arranged in parallel. The obtained signals are further processed by a column amplifier circuit 705, a column ADC (analog-digital conversion) circuit 706, and a column counter 707, and are stored in a line memory 708 in which several lines of image signals are accumulated.
A logic circuit 709 performs signal processing on the image signal stored in the line memory 708. A timing generation circuit 710 supplies various timing signals to each section of an image sensor system. A reference voltage generation circuit 711 supplies a reference voltage to the column CDS circuit 704 and a lamp waveform generation circuit 712. The lamp waveform generation circuit 712 supplies a lamp waveform for AD conversion to the column ADC circuit 706.
In a register 713, for example, a threshold value in defect correction and Bayer noise suppression is set by a user, and the register 713 controls various operations of the image sensor system.
An auto gain control/flicker cancel part 806 controls each analog circuit part in
An example of pixel arrangement in the image array 701 which is an image sensor of
The noise suppression in a notice pixel p0 in the Bayer arrangement (
For example, in
The threshold values including th_w, th_b, and th_n1 may be set by a user in the register 713 of
Several problems are associated with the prior art techniques described above. The problems are illustrated and described in relation to
Here, as a matter of convenience, an image should to be constituted of only pixels of the same color. Images of R, G, and B can be thought the same way.
In reality, noise is superposed on that image due to various factors, as shown in
For example, when th_n1=10, the conditions of noise suppression are as follows:
Noise is suppressed in a portion where the brightness of an image is uniform; however, in such a portion where the difference is originally large, such as a brightness boundary portion, the difference value exceeds the threshold value th_n1, and thus the noise suppression is not applied (the difference value is within a dead band shown in
Thus, as shown in
When the threshold value th_n1 is rendered large to remove noise in the brightness boundary portion, a suppression processing is applied to the entire image more than necessary, leading to a loss of sharpness of an original image. Thus, the prior art has a problem that noise generated in the brightness boundary portion cannot be effectively suppressed.
According to an aspect of the invention, a noise removal circuit in an image signal, includes a boundary determination unit configured to determine a position of a light-dark boundary on the basis of, or as a function of, a pixel value of a plurality of surrounding pixels and a selection filter configured to perform filtering in a range of the plurality of surrounding pixels, which belong to a range which does not cross a boundary determined by the boundary determination unit.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention, as claimed.
The basic configurations of the first and second embodiments to be hereinafter described are generally the same as the configurations in
However, the present embodiments are different from the prior art in the functions of the defect correction/Bayer noise suppression/color interpolation part 804 of
This operation flow chart may be realized using firmware logic circuit, or may be realized as an operation where a computer constituted of a general central processing unit, a main storage device, an external storage device, a bus, and other known components executes a control program stored in the main storage device and the external storage device.
As depicted in
avg=(p1+p2+p3+p4+p5+p6+p7+p8)/8 (1)
Next, a difference between a notice pixel p0 and the average value avg is calculated by the following formula (2) (step S102):
sub=p0−avg (2)
Next, the difference value sub is compared with the threshold value th_w (see,
When the difference value sub is larger than the threshold value th_w, the notice pixel p0 is judged to be a white defect pixel (see,
When the difference value sub is not more than the threshold value th_w, the difference value sub is then compared with the threshold value th_b (see,
When the difference value sub is smaller than the threshold value th_b, the notice pixel p0 is judged to be a black defect pixel (see,
When the difference value sub is not less than the threshold value th_b, the absolute value |sub| of the difference value sub is then compared with the threshold value th_n1 (see,
When the absolute value |sub| is smaller than the threshold value th_n1, the notice pixel p0 is judged to be a Bayer noise pixel (see,
Next, a determination is made as to whether or not correction/suppression processing in steps S104, S106, or S108 has been executed. If the YES, the defect correction/Bayer noise suppression function processing applied to the present notice pixel p0 is terminated.
If the correction/suppression processing in step S104, S106, or S108 is not executed, and when the judgment in step S109 is NO, the following processing is executed.
First, vertical, horizontal, and diagonal average values avg1 to avg4 of the 8 surrounding pixels to the notice pixel p0 are calculated by the following formulae (3) (step S110):
avg1=(p1+p8)/2
avg2=(p2+p7)/2
avg3=(p3+p6)/2
avg4=(p4+p5)/2 (3)
Next, the absolute value of the difference between the notice pixel p0 and each of the average values avg1 to avg4 is calculated by the following formulae (4) (step S111):
sub1=|p0−avg1|
sub2=|p0−avg2|
sub3=|p0−avg3|
sub4=|p0−avg4| (4)
Subsequently, the value subm that is the minimum of the difference absolute values sub1 to sub 4 and the average value avgm corresponding to the value subm are detected (step S112). That is, the average value subm with the largest correlation with the notice pixel value p0 is calculated.
The value subm is then compared with a threshold value th_n2, set in the register 713 by a user (step S113).
When the value subm is smaller than the threshold value th_n2, the notice pixel p0 is judged to be the Bayer noise pixel, and the notice pixel p0 is replaced by the average value avgm calculated in step S112 (step S115).
Meanwhile, when the value subm is not less than the threshold value th_n2, the notice pixel p0 is judged to be a normal pixel and thus to be output as it is (step S116).
Specifically, in
avg1=(p1+p8)/2=(50+100)/2=75
avg2=(p2+p7)/2=(50+50)/2=50
avg3=(p3+p6)/2=(100+50)/2=75
avg4=(p4+p5)/2=(50+105)/2=77.5
Further, the following formulae are calculated in step S111:
sub1=|p0−avg1|=|45−75|=30
sub2=|p0−avg2|=|45−50|=5
sub3=|p0−avg3|=|45−75|=30
sub4=|p0−avg4|=|45−77.5|=32.5
The value subm is judged as follows in steps 5112 and S113, and the Bayer noise suppression is executed in step S114:
subm=min (sub1 to sub4)=sub2<th—n2
noise is suppressed
p0=avg2=50
As a result, an ideal image, such as the image as shown in
In the first embodiment described above, the processed objects are not limited to the notice pixel p0 and the 8 surrounding pixels of the same color, but the surrounding pixels may be expanded from 8 to 24 (see,
avg1=(p1+p7+p18+p24)/4
avg2=(p3+p8+p17+p22)/4
avg3=(p5+p9+p16+p20)/4
avg4=(p11+p12+p13+p14)/4 (5)
In the first embodiment described above, the difference absolute values sub1 to sub4 between the average values avg1 to avg4 generated only from two pixels and the notice pixel p0 are generated based on the formulae (3) and (4), and the difference absolute value subm with the largest correlation and the average value avgm corresponding to the difference absolute value subm are detected. In accordance with the second embodiment, in order to increase the stability of judgment, difference absolute values sub1 to sub8 between 8 average values avg1 to avg8 calculated from the 8 pixels of the same color surrounding notice pixel p0 are generated, and the difference absolute value subm with the largest correlation and the average value avgm corresponding to the difference absolute value subm are detected.
The operation flow chart of
In
First, with respect to the notice pixel p0, the average value avg of brightness values of 8 surrounding pixels p7 to p9, p12, p13, and p16 to p18 represented by a reference numeral 401 of
avg=(p7+p8+p9+p12+p13+p16+p17+p18)/8 (6)
The following steps S102 to S109 are the same as those of
When the correction/suppression processing in step S104, S106, or S108 is not executed, and when the judgment in step S109 is NO, the following processing is executed.
First, with respect to the notice pixel p0, as shown in
avg1=(p13+p14+p17+p18+p19+p22+p23+p24)/8
avg2=(p12+p13+p16+p17+p18+p21+p22+p23)/8
avg3=(p11+p12+p15+p16+p17+p20+p21+p22)/8
avg4=(p8+p9+p10+p13+p14+p17+p18+p19)/8
avg5=(p6+p7+p8+p11+p12+p15+p16+p17)/8
avg6=(p3+p4+p5+p8+p9+p10+p13+p14)/8
avg7=(p2+p3+p4+p7+p8+p9+p12+p13)/8
avg8=(p1+p2+p3+p6+p7+p8+p11+p12)/8 (7)
Next, the absolute value of the difference between the notice pixel p0 and each of the average value avg1 to avg8 is calculated by the following formulae (8) (step S303):
sub1=|p0−avg1|
sub2=|p0−avg2|
sub3=|p0−avg3|
sub4=|p0−avg4|
sub5=|p0−avg5|
sub6=|p0−avg6|
sub7=|p0−avg7|
sub8=|p0−avg8| (8)
The value subm which is the minimum of the difference absolute values sub1 to sub8 calculated by the formulae (8) and the average value avgm corresponding to the value subm are detected (step S304).
Using the largest correlation difference absolute value subm calculated as above, comparison judgment with the threshold value th_n2 and the Bayer noise suppression process are executed in steps S113 to S115 as in the case of
The constitution of the first embodiment realizes the effective detection and suppression of not only noise generated in a portion where the brightness of an image is uniform, but also noise generated in a boundary portion of an image with a large difference in brightness, whereby the correction effect of a pixel signal can be enhanced. The constitution of the second embodiment realizes more stable detection of the boundary portion and the noise suppression based on the detection.
In each embodiment described above, although this invention is described in relation to a logic circuit of an image sensor system, a digital camera, a cell phone, a PC, and so on in which this image sensor system may be incorporated are included in the scope of the claims of this invention.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiment(s) of the present inventions have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2008-35357 | Feb 2008 | JP | national |