The priority application Number JP2004-015045 upon which this patent application is based is hereby incorporated by reference.
The present invention relates to an image signal processing apparatus for performing a gradation correction of an image signal, particularly, to a suppression of noise caused in the gradation correction processing based on a nonlinear characteristic.
Gradation is one of image qualities in an image pickup apparatus such as a digital camera, and, generally, the image pickup apparatus is provided with a gradation correction circuit for correcting the gradation. The gradation correction circuit converts a level of an image signal input thereto and outputs the converted image signal according to the prescribed conversion characteristic function. For example, a gamma correction circuit is one of the circuits for the gradation correction.
The conventional gradation correction processing has a problem of enlarging a noise component (random noise, horizontal trailing noise) contained in an image signal when an image signal level has the sharp slope of the conversion characteristic shown in
The present invention has been accomplished in the aim of solving the above problem, and an object thereof is to suppress image quality degradation caused by a noise component in an image signal processing apparatus which performs gradation correction processing based on a nonlinear conversion characteristic.
The image signal processing apparatus according to this invention comprises: a filter circuit which is disposed serially with a gradation correction circuit and attenuates a noise component contained in an image signal, a noise component attenuation characteristic of the filter circuit being variable; and a filter control circuit which judges a signal level of the image signal corresponding to a pixel and changes the noise component attenuation characteristic of the filter circuit for the pixel in accordance with the signal level.
To start with, a brief description of a basic constitution of an image signal processing apparatus according to one preferred embodiment of this invention will be given below.
The basic constitution is such that the image signal processing apparatus according to the embodiment of this invention has a filter circuit and a filter control circuit. The filter circuit is disposed serially with a gradation correction circuit and attenuates a noise component contained in an image signal, and a noise component attenuation characteristic of the filter circuit is variable. The filter control circuit judges a signal level of the image signal corresponding to a pixel and changes the noise component attenuation characteristic of the filter circuit for the pixel in accordance with the signal level.
For instance, a plurality of signal level ranges are set based on expansions of gradations by the gradation correction circuit, and the filter control circuit sets an attenuation characteristic having a high noise component attenuation degree when a degree of the expansion of the signal level range to which the detected signal level belongs is high.
In one example of the image signal processing apparatus, the filter circuit is a low pass filter including a digital filter, and the filter control circuit changes tap coefficients of the digital filter to change a cutoff frequency of the low pass filter.
In another example of the image signal processing apparatus, the filter circuit has a median filter processing function, and the filter control circuit switches between performance and non-performance of the median filter processing function or between median filter sizes.
In response to a change in slope of a conversion characteristic of gradation correction processing in accordance with the signal level, the image signal processing apparatus changes the attenuation characteristic of the filter circuit which attenuates the noise component in accordance with the signal level. More specifically, a filter detection circuit detects a signal level of an image signal changing in a screen, and, in the case where the signal level is the one whose noise component is enlarged by the conversion characteristic, the filter control circuit changes the attenuation characteristic of the filter circuit to that enhances an ability of attenuating the noise component. With such constitution, in the case where a noise component of a signal level is acceptable, a suitable resolution is maintained by setting an attenuation characteristic having a relatively low noise component attenuation ability. On the other hand, in the case of a signal level at which a noise component is enlarged, image quality degradation is sufficiently suppressed by setting an attenuation characteristic having a relatively high noise component attenuation ability.
Foregoing is the brief description of the basic constitution of the image signal processing apparatus according to the preferred embodiment of this invention. Hereinafter, specific constitutions of the embodiment will be described with reference to the drawings.
The VLPF of each of the LPFs 40 and 42 traps a frequency component including a frequency that is ½ of a vertical sampling frequency fv and nearby frequencies.
The filter control circuit 32 includes a comparator 60, a plurality of serially connected DFFs (Delay Flip Flops) 62, and an AND circuit 64. The image signal is input to the comparator 60, and the comparator 60 compares the image data D0(n) with threshold value data R and, for instance, outputs a logical value “H” when D0(n)≧R or a logical value “L” when D0(n)<R. The threshold value R is defined as a signal level which divides the input signal levels into a range I including the low signal levels having the relatively sharp slope and a range II including the high signal levels having the relatively gentle slope. The output data of the comparator 60 are input to the DFF 62-1 and then transferred to the serially connected DFFs 62-1, 62-2, 62-3, and 62-4 sequentially in synchronization with a clock of a horizontal sampling. Outputs from the comparator 60 and the DFFs 62-1 to 62-4 are input to the AND circuit 64. The AND circuit 64 outputs the logical value “H” when signal levels of five adjacent pixels in the horizontal direction are equal to or higher than the threshold value R and outputs the logical value “L” when any one of the signal levels of the five pixels is lower than the threshold value R.
In the case where the output from the AND circuit 64 is H, the selector 44 selects the LPF 40 which is capable of maintaining the resolution thanks to the relatively low noise component attenuation degree as the LPF for performing filtering on the central pixel of the five pixels based on which the output has been executed and sends the output to the gamma correction circuit 30. In the case where the output from the AND circuit 64 is L, the selector 44 selects the LPF 42 which has the relatively high noise component attenuation degree as the LPF for performing filtering on the central pixel of the five pixels based on which the output has been executed and sends the output to the gamma correction circuit 30.
In this apparatus, the selector 44 performs the switching based on the result of the comparison of the signal levels of adjacent pixels with the threshold value R performed by the DFFs 62 and the AND circuit 64. With such constitution, an image quality is prevented from being degraded due to frequent switching between the LPFs 40 and 42 in a pixel region having signal levels close to R. An OR circuit can be used in place of the AND circuit 64 for the purpose of the prevention of image quality degradation. Also, the number of the pixels used in the AND processing (OR processing) can be changed. Further, the circuit may be simplified by performing the switching of the selector 44 based on a result of comparison of image data of one pixel at a filtering object position with the threshold value R.
A filter size of the median filter is 3×3 pixels, and the line memories 70-1 to 70-3 for retaining image data for three adjacent lines are used corresponding to the filter size. The line memories 70-1 to 70-3 are serially connected, and image data for one line input to the line memory 70-1 are transferred to the line memories 70-2 and 70-3 sequentially and interlockingly with inputs for the subsequent lines. The median value calculation circuit 72 acquires image data for 9 pixels constituting a pixel region of the 3×3 pixels from the line memories 70-1 to 70-3 and outputs a median value of the image data as a value of a central pixel of the pixel region to the selector 74. Original image data of the central pixel is also input to the selector 74 from the line memory 70-2.
The filter control circuit 32 acquires the image data of the central pixel, the two preceding pixels and the two following pixels from the line memory 70-2. In the case where the image data of the five pixels are equal to or higher than R, the filter control circuit 32 controls the selector 74 so that the selector 74 outputs the original image data of the central pixel to the gamma correction circuit 30. In the case where any one of the image data of the five pixels are lower than R, the filter control circuit 32 controls the selector 74 so that the selector 74 outputs the output value of the median value calculation circuit 72.
In the filter control circuit 32 shown in
Also, the filter circuit 28 may have a constitution which can be achieved by combining the constitutions of
Though one threshold value R is set depending on a slope of the conversion characteristic of the gamma correction circuit 30 to divide the signal levels of the input image signals into the two signal level ranges in the above-described constitution, the number of signal level ranges may be increased. In the case of increasing the number of the signal level ranges, filters varying in noise component attenuation degree are provided depending on slopes of conversion characteristic of the ranges, so that the selector selects one of the outputs from the filters as the output to be sent to the gamma correction circuit 30.
Though the foregoing description has been made on the assumption of using a monochrome CCD image sensor, the image signal processing apparatus of this invention is applicable to image signals output from a CCD image sensor having a color filter of plural colors. For instance, in the case of processing image signals input from an image sensor having a mosaic color filter, the signal level judgment in the filter control circuit 32, the filtering in the LPFs 40 and 42, and the median filter processing in the median value calculation circuit 72 can be performed on a luminance signal or pixels one of the same color that are arranged periodically in the vertical and horizontal directions.
Number | Date | Country | Kind |
---|---|---|---|
2004-015045 | Jan 2004 | JP | national |