Impulse noise reduction apparatus and method

Abstract: An apparatus and method for reducing impulse noise using a median filter (340) are provided. The method includes the steps of selecting a pixel of median_value from a plurality of pixels, comparing a reference range, determined by adding or subtracting an offset value to or from the selected median_value, with a mid_pixel among the plurality of pixels, to determine whether the input image signal has impulse noise and generate a noise coefficient depending on the presence of impulse noise, calculating a correlation between the luminance component of a pixel and the color component thereof depending on the noise coefficient, and cross-fading the pixel of median_value and the mid_pixel depending on the correlation.

Description: The present invention relates to an apparatus for reducing impulse noise, and more particularly, to an apparatus for reducing impulse noise using a median filter, and a method thereof. In general, an image signal includes impulse noise, the amplitude of which changes irregularly according to external or internal conditions. Thus, an image reproducing apparatus must remove the impulse noise to obtain an image of high quality. Figure 1 is a block diagram showing a typical impulse noise reduction apparatus. An image signal consists of pixels. The mean of the image signal is obtained by determining a window of n pixels, e.g., five pixels a1, a2, a3, a4 and a5 in Figure 1. Here, a5 is a mid_value. A subtractor 120 subtracts the mid_value 114 from the mean 112 and transmits the value to a comparator 130. The comparator 130 compares the value obtained from the subtractor 120 with a reference value. If the value is higher than the reference value, a first level, e.g., logic high, which indicates noise, is output, and if not, a second level, e.g, logic low, which indicates normal pixel data, is output. A multiplexer 140 selects either the mid_pixel 114 or the mean 112 according to the level applied by the comparator 130, and outputs the selected value. When the first level is applied, the mean 112 is selected and output. However, the apparatus of Figure 1 interprets high-frequency components 210 of the image signal as impulse noise, and thus selects the mean of the pixels corresponding thereto as shown in Figure 2A, outputting an image signal having a deteriorated high-frequency component 220 as shown in Figure 2B. Accordingly, the image signal obtained by the apparatus of Figure 1 has deteriorated frequency characteristics, and therefore lower resolution. JP-A-5251998 discloses a method and apparatus for reducing impulse noise of an image signal as set out in the pre-characterising portion of claims 1 and 2 hereto. The method and apparatus of JP-A-5251998 selects a pixel of a median value from a plurality of pixels, comparing said pixel with a mid_pixel to generate a coefficient and cross-fading said pixel and mid_pixel according to said coefficient. It is an aim of preferred embodiments of the present invention to provide a method of selecting a pixel of median_value to reduce noise impulse without removing high-frequency components. It is another aim of preferred embodiments of the present invention to provide an apparatus for selecting a pixel of median_value to reduce noise impulse without removing high-frequency components. According to a first aspect of the invention, there is provided a method of reducing impulse noise of an input image signal including luminance and colour components, comprising the steps of: selecting through median filtering a pixel of median_value from a plurality of pixels of said input image signal; cross-fading said pixel of median_value with a mid_pixel, said mid_pixel being the middle pixel among the plurality of pixels; characterised by comparing a reference range, determined by adding or subtracting an offset value to or from the selected median_value, with the value of the mid_pixel to determine whether the input image signal has impulse noise and generate a noise coefficient depending on the presence of said impulse noise; calculating a correlation value between the luminance component of the mid_pixel and the colour component thereof depending on the noise coefficient; and said cross-fading of the pixel of median_value and the mid_pixel depending on the correlation value. According to a second aspect of the invention, there is provided an apparatus for reducing impulse noise of an input image signal including luminance and colour components, comprising: a median filter for selecting a pixel of median_value from a plurality of pixels of said input image signal; a cross-fading unit for cross-fading said pixel of median_value with a mid_pixel, said mid_pixel being the middle pixel among the plurality of pixels; characterised by a comparator for comparing a reference range, determined by adding or subtracting an offset value to or from the selected median_value, with the value of the mid_pixel to determine whether impulse noise exists in the input image signal and generate a noise coefficient depending on the presence of said impulse noise; a correlation calculator for calculating a correlation value between the luminance component of the mid_pixel and the colour component thereof depending on the noise coefficient generated by the comparator; and said cross-fading unit for cross-fading the pixel of median_value and the mid_pixel depending on the correlation value calculated by the correlation calculator. Preferably, the median filter is a comparator. If the mid_pixel exists between (the median_value + the offset) and (the median_value - the offset), then the comparator preferably determines the mid_pixel to be normal pixel data, and otherwise, the comparator determines the mid_pixel to be impulse noise. If the mid_pixel is more than (the median_value + the offset), the comparator preferably outputs a noise coefficient equal to {the mid_pixel -(the median_value + the offset)}; if the mid_pixel is less than (the median_value - the offset), the comparator preferably outputs a noise coefficient of {(the median_value - the offset) - the mid_pixel}; and if the mid_pixel is between (the median_value + the offset) and (the median_value - the offset), the comparator preferably outputs a noise coefficient of 0. The correlation calculated by the correlation calculator is preferably a higher one of the values obtained by multiplying a noise coefficient of a luminance component Y by that of a color component R-Y and by that of a color component B-Y . A data output of the cross-fading unit is preferably equal to the mid_pixel (1 - the correlation value) + the correlation value*the median_value. For a better understanding of the invention, and to show how embodiments of the same may be carried into effect, reference will now be made, by way of example, to the accompanying diagrammatic drawings, in which: Figure 1 is a block diagram showing a typical impulse noise reduction apparatus; Figure 2A is a waveform of an image signal having a high-frequency component; Figure 2B is a waveform of the image signal after impulse noise has been reduced by the apparatus of Figure 1; Figure 3 is a block diagram showing an impulse noise reduction apparatus according to an embodiment of the present invention; Figure 4 shows windowing image data arranged in the median filter 340 of Figure 3; and Figure 5 shows signals compared by the comparator 370 of Figure 3. Referring to Figure 3, the impulse noise reduction apparatus includes a buffer 310 for arranging image data, a first line memory 320 for delaying the image data output by the buffer 310, a second line memory 330 for delaying the image data delayed by the first line memory 320, a median filter 340 for receiving the image data from the buffer 310 and the first and second line memories 320 and 330 to select a pixel of a median_value, a comparator 370 for comparing the mid_pixel with a value obtained by adding or subtracting the offset to or from the median_value, to generate a noise coefficient 'ka', a correlation calculator 360 for generating a first correlation value 'kxfade1' and a second correlation value 'kxfade 2' according to the noise coefficient, and a cross fading unit 350 for generating image data in which the mid_pixel and a pixel of the median_value are cross-faded according to the first and second correlation values kxfade1 and kxfade2. In Figure 4, 'U' indicates an R-Y chrominance component, 'V' indicates, a B-Y chrominance component, and 'Y' indicates luminance. The operation and effects of embodiments of the present invention will be described with reference to Figures 3 through 5. The image data includes pixels each of which is composed of a luminance component 'Y' and a color component 'C'. As shown in Figure 4, the buffer 310 arranges the input image data. The median filter 340 is comprised of a D-flipflop (not shown), a multiplexer (not shown) and a comparator (not shown) and selects a pixel of the median_value from the image data. That is, the median filter 340 receives an (n-1)th line pixel, an nth line pixel and an (n+1)th line pixel, and windows five pixels, e.g., U1, U3, U5, U7 and U9 of the three lines n, n-1 and n+1 as shown in Figure 4. Here, the (n-1)th line pixels p1, p2 and p3 are currently input image data, and the nth line pixels p4, p5 and p6 and the (n+1)th line pixels p7, p8 and p9 are image data which have passed through the first and second line memories 320 and 330, respectively. Here, a pixel output from the first line memory 320 is a mid_pixel. In Figure 4, the mid_pixels are U5, Y9, V5 and Y10. In the median filter 340, five pixels are windowed in order to remove the impulse noise of the mid_pixels. That is, the windowed mid_pixels U5, Y9, V5 and Y10 are defined as follows. In the median filter 340, the median_value instead of the mean is selected from the window of U5. For instance, if U1 = 0, U3 = 100, U5 = 100, U7 = 150 and U8 = 200, the median_value is U5. Thus, the high-frequency component is not removed from the median filter 340. Here, it is determined according to the offset in the comparator 370 whether the pixel of median_value and the mid-sample have noise. The comparator 370 compares the mid_pixel with a reference range predetermined by the median_value and the offset, to determine noise. The comparator 370 outputs the noise coefficient 'ka' which indicates normal pixel data if the mid_pixel exists within a reference range corresponding to (the median_value ± the offset) and indicates noise if not, to the correlation calculator 360. That is, if the mid_pixel is more than (the median_value + the offset), the output noise coefficient ka is {the mid_pixel - (the median_value + the offset)}; if the mid_pixel is less than (the median_value - the offset), the output noise coefficient ka is {(the median_value - the offset) - the mid_pixel}; and if the mid_pixel exists between (the median_value + the offset) and (the median_value - the offset), the output noise coefficient ka is 0. Here, a noise coefficient ka of zero indicates normal data, and a higher noise coefficient ka indicates higher, impulse noise. The correlation calculator 360 receives the noise coefficient 'ka' and calculates the correlation between Y and C(U, V) to output the first and second correlation values kxfade1 and kxfade2 to the cross-fading unit 350. That is, the higher one of the values obtained by multiplying a noise coefficient of Y9 by that of U and by that of V is the first correlation value kxfade1, and the higher one of the values obtained by multiplying a noise coefficient of Y10 by that of U and that of V is the second correlation value kxfade2. For instance, when the mid_pixel is U5, Y9, V5 or Y10, the noise coefficients ka of U5, Y9, V5 and Y10 are k2, k, k3 and k1, respectively, and the first and second correlation values kxfade1 and kxfade2 of Y and C are as follows (Note: * used herein denotes the multiplication operation). If kxfade1 = (k*k2)/256 and (k*k3)/256 > kxfade1, then kxfade1 = (k*k3)/256, and otherwise, kxfade1 = (k*k2)/256. Also, if (k1*k2)/256 and (k1*k3)/256 > kxfade2, then kxfade2 = (k1*k3)/256, and otherwise, kxfade2 = (k1*k2)/256. That is, the first correlation value kxfade1 is obtained by calculating noise coefficients of Y9, V5 and U5, and the second correlation value kxfade2 is obtained by calculating noise coefficients of Y10, V5 and U5. The cross-fading unit 350 cross-fades the received mid_pixel and the pixel of the median_value using the first and second correlation values kxfade1 and kxfade2 to output the cross-faded pixels. Thus, in the cross-fading unit 350, the output given by data U5 is equal to (the mid_pixel (1-kxfade1) + the kxfade1*the median_value), the output given by data Y9 is equal to (the mid_pixel (1-kxfade1) + kxfade1*the median_value), the output given by data V5 is equal to (the mid_pixel (1-kxfade) + kxfade1*the median_value), and the output given by data Y10 is equal to (the mid_pixel (1-kxfade2) + the kxfade2*the median_value). For instance, if no impulse noise exists, the noise coefficient of the luminance and color is zero and thus kxfade1 is zero, so that the data U5 is output as the mid_pixel, and if the impulse noise exists, kxfade1 is an integer, to thereby output data in which the mid_pixel and the pixel of the median_value are cross-faded. According to the above, the impulse noise of the image signal is removed but the high-frequency component still remains, giving high resolution and no deterioration of image quality.

Claims: A method of reducing impulse noise of an input image signal including luminance and colour components, comprising the steps of: selecting through median filtering a pixel of median_value from a plurality of pixels of said input image signal; cross-fading said pixel of median_value with a mid_pixel, said mid_pixel being the middle pixel among the plurality of pixels; characterised by comparing a reference range, determined by adding or subtracting an offset value to or from the selected median_value, with the value of the mid_pixel to determine whether the input image signal has impulse noise and generate a noise coefficient depending on the presence of said impulse noise; calculating a correlation value between the luminance component of the mid_pixel and the colour component thereof depending on the noise coefficient; and said cross-fading of the pixel of median_value and the mid_pixel depending on the correlation value. An apparatus for reducing impulse noise of an input image signal including luminance and colour components, comprising: a median filter (340) for selecting a pixel of median_value from a plurality of pixels of said input image signal; a cross-fading unit (350) for cross-fading said pixel of median_value with a mid_pixel, said mid_pixel being the middle pixel among the plurality of pixels; characterised by a comparator (370) for comparing a reference range, determined by adding or subtracting an offset value to or from the selected median_value, with the value of the mid_pixel, to determine whether impulse noise exists in the input image signal and generate a noise coefficient depending on the presence of said impulse noise; a correlation calculator (360) for calculating a correlation value between the luminance component of the mid_pixel and the colour component thereof depending on the noise coefficient generated by the comparator (370); and said cross-fading unit (350) for cross-fading the pixel of median_value and the mid_pixel depending on the correlation value calculated by the correlation calculator (360). The apparatus of claim 2, wherein the median filter (340) is a comparator. The apparatus of claim 2 or 3, wherein if the mid_pixel exists between (the median_value + the offset) and (the median_value - the offset), the comparator determines the mid_pixel to be normal pixel data, and otherwise, the comparator determines the mid_pixel to be impulse noise. The apparatus of claim 2, 3 or 4, wherein if the mid_pixel is more than (the median_value + the offset), the comparator outputs a noise coefficient equal to {the mid_pixel -(the median_value + the offset)}; if the mid_pixel is less than (the median_value - the offset), the comparator outputs a noise coefficient of {(the median_value - the offset) - the mid_pixel}; and if the mid_pixel is between (the median_value + the offset) and (the median_value - the offset), the comparator outputs a noise coefficient of 0. The apparatus of claim 2, 3, 4 or 5, wherein the correlation calculated by the correlation calculator is a higher one of the values obtained by multiplying a noise coefficient of a luminance component Y by that of a color component R-Y and by that of a color component B-Y . The apparatus of claim 2, 3, 4, 5 or 6, wherein a data output of the cross-fading unit is equal to the mid_pixel (1 - the correlation value) + the correlation value*the median_value.

Inventors: PARK SE-WOONG, PARK, SE-WOONG
Applicants: SAMSUNG ELECTRONICS CO LTD, SAMSUNG ELECTRONICS CO., LTD.
Application year: 1998
Main classification: H04N5
IPC codes: H04N9, H04N5, G11B20