Adaptive noise removal for video images

Abstract: A method of applying noise removal to an image so that the areas having the greatest variance have the least correction. First, the variance between each image pixel and its surrounding pixels is determined. Next, for the neighborhood around each pixel, a density of variance is determined. Finally the density of variance for the neighborhood around each pixel is used to correct the original pixel, the direction of correction being toward the mean value in the surrounding pixels. The result is that relatively uniform areas of the image, within which noise is most obvious, will get the most correction and areas that are textured will get the least.

Description: The present invention relates to adaptive noise removal for video images and is more particularly concerned with a method of filtering noise out of smoothly varying areas of an image, such as the sky, while preserving detail in textured areas, by determining a multi-level neighborhood variance for each pixel, and applying the greatest amount of filtering to the pixels having the smallest variances. Video images may contain noise in the form of occasional pixels with values that are too high or to low in one or more of their color components. A median filter, which determines the median pixel value in a neighborhood, compares each current pixel to the median, and corrects the current pixel by replacing it with the median value, is a well known technique for removing such noise. A threshold can also be provided so that only if the current pixel is strongly different from its surroundings, its value will be replaced by one of its neighbor's values. A median filter is desirable because its nonlinear behavior tends to preserve edges, and it does not blur the image as badly as linear filtering techniques for noise reduction. However, a median filter will still cause some blurning in areas that should be textured since it can not distinguish the texture from the noise. Not only is this blurring undesirable, but the noise removal may be unnecessary in the textured region since the noise may be hidden by the texture. For example, noise in a smooth area such as sky is quite offensive, but noise in a highly textured region such as vegetation may be undetectable. It is therefore an object of the present invention to provide a method that will delete noise from smoothly varying areas of an image while preserving detail in textured areas. European Patent Application EP 398861-A (Polaroid Corp.) published on 22 November 1990, discloses a method for adaptively sharpening a digital image by calculating a high frequency component in a first neighbourhood of a pixel and adding to the original pixel the high frequency component multiplied by a factor c*s, where c is a constant and s is a function of both the noise and the variance of the pixels in a neighborhood of the current pixel. In accordance with one aspect of the present invention, there is provided an adaptive noise removal method for pixels of an original digital image comprising the steps of: generating from each pixel of the original image a first numerical value which is a function of the difference between the current pixel and the other pixels in a first neighborhood surrounding the current pixel, generating for each pixel, from the first numerical value a second numerical value which is a function of the amount of vanation between the first numerical values in a second neighborhood surrounding the current pixel, and using the second numerical value of each pixel to correct the current pixel of the original image by decreasing the difference between the value of the current pixel and the other pixels in the first neighborhood, a higher second numerical value of each pixel resulting in less correction to each pixel in the original image. This method first determines the variance of each current pixel to its surroundings. The noise correction then is applied in accordance with the density of vanance, the highest levels of correction going to the areas having the lowest density of variances. Thus, areas of low variance such as sky will have the greatest amount of noise removal while areas of high variance such as vegetation will have the least. For a better understanding of the present invention, reference will now be made, by way of example only, to the accompanying drawing, the single Figure of which is a set of curves showing how the amount of filtering can be weighted as a function of variance. A printer frequently receives a digital image in the form of multi-bit pixels and prints it on paper using a raster output scanner. If the noise contained in the image is objectionable, a computer in the printer may filter the noise from the image prior to sending the image to the raster output scanner for printing. The noise in textured areas where individual pixels have high variance with respect to neighboring pixels is not likely to be noticed, while noise in areas of low variance tends to be noticeable and should be filtered out. Also, edge detail should be preserved as much as possible. The following is a method of reducing noise in smooth areas of an image while tending to preserve texture and edges. This method can be thought of as having four main steps. The first is to generate from the original image a second image where each pixel in the second image has a value equal to the neighborhood frame variance of the corresponding pixel in the first image. This step is accomplished by proceeding from one pixel to the next. For each original current pixel, determine a neighborhood. This could be a surrounding 3x3 pixel area, a 5x5 pixel area, or any other geometric shape having the current pixel at its center. To compute the variance of the central pixel in the neighborhood, find the sum of the squares of the differences between each pixel in the neighborhood and the average of the pixels in the neighborhood, divided by one less than the number of pixels. The second image thus produced is an image of variances. The second step is to generate from the second image a third image of density values. Assume that the variance values for each pixel are 0 to 256 These are divided into neighborhoods which could be any number of pixels, such as 3x3, 5x5, etc. This time the variance values of the pixels in each neighborhood are averaged, such as root mean squared, which produces an image of density valued pixels. The third step is to form these pixels into regions which vary from low to high density. Again, to use a numerical value, let us assume that there will be 15 regions. Region 1 could be all pixels with density values of 0 - 15, region 2 could have values of 16 - 32, etc. Thus, lower numbered regions would contain pixels having lower density and higher numbered regions would have higher density. As a practical matter, in a system using eight bits per pixel, density values greater than 128 are rarely seen. Most often, there is not that much variation between pixels within a 3x3 or 5x5 neighborhood. Therefore, one simplification to the above system is to limit the density values to a maximum of 128 prior to dividing the image into regions. The fourth step is to use the regions, such as 3x3 or 5x5, to decide how to filter the original image. Regions of low variance would have full noise removal, meaning that the original pixel in each neighborhood would be replaced with a median or average pixel of the neighborhood, and regions of high variance would have no noise removal, meaning that the original pixels would not be corrected at all. A density threshold could be used to decide if there would be a correction. A problem with filtering images is that edge detail, in addition to noise, may be filtered out, leading to a significant loss of image fidelity. This can be minimized by applying noise removal as weighted by a Sigmoid function, shown in Figure 1, or some other similar function. In this Figure, the vertical axis is the amount of original image data that is allowed to remain in the image, and the horizontal axis is the density value of the region containing the current pixel. In other words, at the top of the diagram the final image data would be completely made up of original data, while at the bottom of the diagram, almost none of the data would be original, and almost all would the filtered median or average value of the original neighborhood. Four possible curves are shown, but any other may be used. Generally, uniform areas of the image will fall into the left portion of the graph, and most noise will be removed while areas of the image having high variance will fall toward the right and very little or no filtering will be applied. If an edge is defined as a sharp transition between fairly uniform light and dark areas, then an area containing an edge will have a moderate amount of variance. Therefore, the curve is set so that moderate amounts of variance will result in little filtering to preserve the edge.

Claims: An adaptive noise removal method for pixels of an original digital image comprising the steps of: generating from each pixel of the original image a first numerical value which is a function of the difference between the current pixel and the other pixels in a first neighborhood surrounding the current pixel, generating, for each pixel, from the first numerical value a second numerical value which is a function of the amount of variation between the first numerical values in a second neighborhood surrounding the current pixel, and using the second numerical value of each pixel to correct the current pixel of the original image by decreasing the difference between the value of the current pixel and the other pixels in the first neighborhood, a higher second numerical value of each pixel resulting in less correction to each pixel in the original image. A method according to Claim 1 wherein the first numerical value of the current pixel is equal to the variance of the current pixel in the original image compared to the other pixels in the first neighborhood. A method according to Claim 1 or 2 wherein the calculated second numerical value of the current pixel is equal to the root mean square of the first numerical values. A method according to Claim 1, 2 or 3 wherein the correction decreases the difference between the value of the current pixel and the median value of the other pixels in the original image.

Inventors: CAMPANELLI MICHAEL R, HARRINGTON STEVEN J, CAMPANELLI, MICHAEL R., HARRINGTON, STEVEN J.
Applicants: XEROX CORP, XEROX CORPORATION
Application year: 1997
Main classification: G06T5
IPC codes: G06T5, H04N1