This application claims the benefit of Taiwan application Serial No. 98108831, filed Mar. 18, 2009, the subject matter of which is incorporated herein by reference.
1. Field of the Invention
The invention relates in general to a method and an apparatus for reducing spatial noise of images, and more particularly to a method and an apparatus capable of effectively reducing spatial noise of images.
2. Description of the Related Art
The invention is directed to a method and an apparatus for reducing spatial noise of images, wherein the characteristic pixels are cut in a statistical manner and the corresponding processing is performed so that the spatial noise of the images may be effectively reduced, and the detailed portions of the images may be reserved.
According to a first aspect of the present invention, a method for reducing spatial noise of images is provided. The method includes the steps of: obtaining a target pixel and building an operating block accordingly; operating pixel values of the target pixel and a plurality of neighboring pixels in the operating block to obtain a variance corresponding to the operating block; judging whether the target pixel is characteristic according to the variance; filtering the pixels in the operating block to obtain a modulated pixel value if the target pixel is not characteristic; and updating the pixel value of the target pixel to the modulated pixel value.
According to a second aspect of the present invention, an apparatus for reducing spatial noise of images is provided. The apparatus includes a statistics unit, an analysis unit, a subtracter, a filter and an adder. The statistics unit receives an image frame and operates a plurality of pixels of the image frame to obtain a plurality of variances. The analysis unit judges whether the pixels are characteristic according to the variances, respectively. The subtracter receives the image frame and outputs the pixels, which are not characteristic, according to judgement results of the analysis unit. The filter filters the pixels, which are not characteristic, to obtain a plurality of modulated pixel values. The adder outputs a modulated image frame according to pixel values of the pixels, which are characteristic, and the modulated pixel values.
The invention will become apparent from the following detailed description of the preferred but non-limiting embodiments. The following description is made with reference to the accompanying drawings.
The invention provides a method and an apparatus for reducing spatial noise of images, wherein a statistics process is performed on the pixels in an image frame to cut the characteristic pixels and the corresponding process is performed to effectively reduce the spatial noise of the images and reserve the detailed portions of the images.
If the image frame only contains one field, then the operating block includes an M×N rectangular region, wherein M and N are positive integers.
If the image frame includes multiple interlaced fields, then the operating block includes multiple rows of pixels, which do not neighbor on one another.
If a discrete operating range is generated after the image frame is operated, then the target pixel and multiple neighboring pixels contained in the operating block may not neighbor on one another.
In step S210, the pixel values of the target pixel and the neighboring pixels in the operating block are operated to obtain a variance corresponding to the operating block. In practice, an average of the pixel values of all pixels in the operating block is first calculated in the step S210, and then the variance is calculated according to the average and the pixel values of all the pixels in the operating block. In step S220, it is judged whether the target pixel is characteristic according to the variance. The steps S210 and S220 are substantially for comparing the target pixel with other pixels in the operating block to determine the differences therebetween.
In the step S220, it is possible to preset a threshold, and then compare the variance with the threshold to determine whether the target pixel is characteristic. If the variance is greater than the threshold, then the target pixel is judged to be characteristic. If the variance is smaller than the threshold, then the target pixel is judged to be not characteristic. The characteristic target pixel is the pixel having edge information, for example, or the pixel having the dotted characteristic. That is, the pixel judged to be characteristic may be regarded as the detailed portion in the image frame. If the target pixel is judged to be characteristic, the pixel value of the target pixel is not updated in the step S230. Consequently, the detailed portions in the image frame may be reserved and cannot be damaged.
If the target pixel is judged to be not characteristic, all pixels in the operating block are filtered to obtain a modulated pixel value in the step S240. If the target pixel is judged to be not characteristic, then the target pixel may be regarded as the smoother portion in the image frame. So, the filtering operation is performed to remove the spatial noise that may be taken. The filtering operation may be performed by a low-pass filter, a median filter, an adaptive filter, a sigma filter or other filters according to the user's requirements.
Thereafter, in step S250, the pixel value of the target pixel is updated to the modulated pixel value. Then, in step S260, it is checked whether all the pixels contained in the image frame have been detected to be characteristic or not. If not, the procedure returns to the step S200 to repeat the overall flow until all the pixels in the image frame have been detected.
Thereafter, the analysis unit 420 respectively judges whether the pixels in the image frame Fi are characteristic according to many variances, obtained by the statistics unit 410. The analysis unit 420 may set a threshold, such as 2000. If the variance is greater than the threshold, then the analysis unit 420 judges that the corresponding pixel is characteristic. If the variance is smaller than the threshold, then the analysis unit 420 judges that the corresponding pixel is not characteristic. However, the analysis unit 420 is not substantially limited and may be a Sobel filter, a Canny edge detector, a Prewitt mask or the like as long as the characteristic portions in the image frame may be separated. The subtracter 430 receives the image frame Fi and outputs the pixels, which are not characteristic, according to the judgement results of the analysis unit 420.
The subtracter 430 substantially cuts the pixels, which are characteristic, from the image frame Fi, and leaves the pixels, which are not characteristic.
The detailed principles and structures of the apparatus 400 for reducing the spatial noise of the images have been described in the method of reducing the spatial noise of the images disclosed in
The method and apparatus for reducing the spatial noise of the images according to the embodiment of the invention have many advantages, and some of which are described in the following.
The invention provides the method and the apparatus for reducing the spatial noise of the images by operating the pixels in the image frame in a statistical manner, and determining the zone, where the filter may be used, according to the threshold. Thus, the characteristic portion, such as the portion with the edge information or the dotted characteristic, may be cut out, and the noise is removed from the other smooth portions indeed interfered by the noise. Consequently, the spatial noise of the images can be effectively reduced, and the edge portion in the image cannot be blurred or the portion with the dotted characteristic cannot be influenced. Thus, the detailed portions of the image can be kept more completely, and the image sharpness may be maintained.
While the invention has been described by way of example and in terms of a preferred embodiment, it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
98108831 A | Mar 2009 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5086484 | Katayama et al. | Feb 1992 | A |
6771793 | Yamada | Aug 2004 | B1 |
6904169 | Kalevo et al. | Jun 2005 | B2 |
7486837 | Motomura et al. | Feb 2009 | B2 |
7929798 | Subbotin | Apr 2011 | B2 |
8145005 | Incesu et al. | Mar 2012 | B2 |
20010055428 | Hayashi | Dec 2001 | A1 |
20050100237 | Kong et al. | May 2005 | A1 |
20050100241 | Kong et al. | May 2005 | A1 |
20050135700 | Anderson | Jun 2005 | A1 |
20050163380 | Wang et al. | Jul 2005 | A1 |
20060039624 | Kong et al. | Feb 2006 | A1 |
20060233456 | Ahn et al. | Oct 2006 | A1 |
20060284989 | Kang et al. | Dec 2006 | A1 |
20080043124 | Subbotin | Feb 2008 | A1 |
20090041373 | Incesu et al. | Feb 2009 | A1 |
20100215267 | Aldrich et al. | Aug 2010 | A1 |
20110149122 | Subbotin | Jun 2011 | A1 |
Number | Date | Country |
---|---|---|
101326808 | Dec 2008 | CN |
Entry |
---|
Taiwan Office Action dated Nov. 27, 2013. |
Number | Date | Country | |
---|---|---|---|
20100239164 A1 | Sep 2010 | US |