Order Statistics Filters are widely used in signal processing and restoration arena. Their favorable ability to preserve signal details and the computational simplicity also adds to their popularity.
The best known and most widely used filter based on order statistics is the Median Filter (MF). To improve the noise suppression and signal preserving capability several modifications of the order statistics filters such as weighted order statistics filters, adaptive order statistics filters, adaptive weighted order statistics filters, decision based order statistics filters, fuzzy weighted order statistics filters, FIR-order statistics hybrid filters and Neural Network-order statistics hybrid filters have been proposed. This list is in no way exhaustive and several more modifications and their variations are present.
A novel modification to the order statistics filters is described that will act as a general framework for the design of adaptive filters in image and signal processing applications. Defining the weighting factor used in this framework as a function of direct/indirect functions of the input signal and the properties of the signal makes the filter adaptive, and can achieve a fine balance between noise filtering and signal preservation.
These and other aspects of this invention are illustrated in the drawings, in which:
For a set of N random observations {p1, p2, . . . , pN} arranged in ascending order of magnitude,
p(1)≦p(2)≦ . . . ≦p(N) (1)
p(k) is called the kth order statistic. The median over the set {pk} is denoted as [1] med {pk} and it is given by:
Consider an operational neighborhood W centered at a location (i, j) on a gray-scale image F, and the <<-level values at the pixel locations within W are represented as {p1, p2, . . . , pN} where N is the total number of pixels within W.
The minimum and maximum gray level values in the set of {pk} are p(1) and p(N). In terms of gray-level mathematical morphology these values represent the output f erosion and dilation operations respectively denoted as F⊖ (i, j), and F⊕ (i, j) they are represented respectively as:
while the MF operator F⊙ (i, j) is given by
Before introducing the modification of the order statistics filters we rewrite the filter formulations presented in equations (3), (4) and (5) as:
Here the filter outputs are defined in terms of sum of the central pixel gray value and corresponding order statistics over gray level differences of the neighborhood pixels with the central pixel.
Here we introduce a weighting function w(•) in the equations 6, 7 and 8 to modify them as
where wk represents the value of weighting function w(•) for kth element in the W.
This modification unlike many other modifications of the order statistics filters enables the modified filter to generate an output that may not be a value from input signal values. Use of weight values between the range [0, 1] limits the output within range [p(1), p(N)]. Here it should be noted that for the set of pixels in W for which
{wk=1|∀pk∈W}
(9), (10), (11) converge to the conventional definitions in (3), (4), (5). Further, defining w as a direct/indirect function of the signal, and spatial relationship of the pixels makes the filter adaptive and can help achieve fine balance between noise filtering and signal perseverance.
In order to demonstrate utility of the framework in design of custom filters to suit specific requirements of an application, we define two adaptive filters whose weighing functions are functions of the image features and geometric relationship amongst the neighboring pixels.
Conventional order statistics filters, although capable of preserving image details, are not conscious and are susceptible to adversely affect them. Since edges and gradients carry most of the visually important information in images we first define Edge Orientation Adaptive Weighted-Local-Difference Median Filter for noise removal while preserving edges and gradients.
For this filter w(•) is defined as a function of relative edge orientation at a neighborhood pixel and its geometrical proximity with the central pixel.
Consider an operational window in an image as illustrated in
w
k(•)=wkg(•)×wkd(•) (12)
where wgk(•) and wdk(•) are further functions of relative orientation of an edge at the neighborhood pixel and the spatial distance between the central pixel and neighborhood pixel respectively. The wgk(•) is defined as:
wkg(•)=sin |θk| (13)
Such definition of the wgk(•) ensures that the weight wk(•) for the pixels across the edge from the central pixel becomes very small and effectively reduces blurring or shifting of the edges. Whereas wdk(•) is defined as:
where dk=|dk→|, β is a constant controlling the flatness of the wdk(•). This definition is based on the assumption that the neighborhood pixels present in close proximity of the center pixel exhibits the highest degree of associativity which decreases with increase in distance.
Thus pixels in the close proximity have higher impact on the outcome. Plot illustrating a sample wdk is presented in
Preserving luminance information is another important performance characteristic for the filters when suppressing noise. Thus in second filter defined here gray level similarity of a neighborhood pixel with mean luminance of the neighborhood is used to define weighting function. The filter thus defined is called Luminance-Similarity Adaptive Weighted-Local-Difference Median Filter. Once again considering the operational neighborhood illustrated in
w
k
=w
k
I(•)×wkd(•) (15)
where wdk is previously defined and wIk is a function of difference between pk and mean luminance Fi,j computed over the neighborhood W. The function wIk is defined as
Such definition of wIk insures that the neighborhood pixel who have luminance less similar to the mean luminance of the neighborhood have small weights and may introduce only a small change in the input values. Plot illustrating a sample wIk(•) is given in
Following section presents the results for noise filtering by EOAWLDMF and LSAWLDMF along with two other nonlinear filters commonly used for noise suppression.
The noise suppression capability of the filters thus designed is evaluated with the help of a photographic image of a self portrait by Vincent van Gogh. The noise suppression capabilities are compared with MF and ADF. For experimentation the gray scale version of the image is corrupted with multiple noises to obtain two set of degraded images. First set of three images corrupted with speckle noise using model as given in Eq. 17
F
1
=F+nF (17)
where F is the noise free image and n is the 0-mean Gaussian noise with variance σ2s={0.01, 0.02, 0.03} over the set. The other set of three corrupted images each obtained by simultaneously corrupting noise free image with three types of noises in the following order 1) Quantum noise (signal dependant Poisson noise), 2) Thermal/Electronic noise (white, 0-mean Gaussian noise with variance σ2={0.01, 0.02, 0.03}) and 3) Impulse noise (salt and pepper noise with density 0.01). Here the three images are corrupted with three different levels of Gaussian noise with similar levels of Quantum and Impulse noise.
In the experiments conducted to verify the noise suppression capability of the filters, both EOAWLDMF and LSAWLDMF consider a 5×5 neighborhood (W) for processing. The parameters in equation (14, 15) have values α=0.2, β=4 and γ=6. The filters are applied iteratively twice. Similarly the ADF is also applied iteratively twice and uses exponential diffusion function c defined in equation 11 and given as
where ck represents the value of the diffusion function at kth pixel location and K(=30) is the gradient modulus threshold that controls conduction. The integration constant δ is set at 1/7. The MF is not implemented iteratively. ADF and MF use a 3×3 neighborhood for processing.
Objective evaluation of noise suppression and image restoration capabilities of a filter can be done using full-reference quality assessment of the filtered images in comparison with the non-corrupted reference image (in our case original gray scale image). We use Structural Similarity Index (SSIM) and Gradient-based Structural Similarity Index (GSSIM) as measures of image restoration. SSIM is used to measure image distortion from the perspective of image formation and is sensitive to changes in structure incorporated due to processing. The value of SSIM varies in the range of −1 for worst match and 1 for best match (similar images). The GSSIM is used to evaluate how well the gradients in an image have been restored or preserved. The value of GSSIM also varies in the range of −1 for worst match and 1 for best match for gradient images of the reference and test image. From the resultant images and findings of the image restoration quality assessment for MF, ADF, EOAWLDMF and LSAWLDMF given in Table 1, it can be observed that LSAWLDMF and EOAWLDF both provide excellent image restoration in both the noise conditions tested here. They outperform both MF and ADF with comparative efficacy that increases with levels of noise. Results also show that with multiple noises present EOAWLDMF performs better than all other filters tested. Whereas LSAWLDMF has better efficacy in restoring speckle noise corrupted images.
This invention describes a novel modification to order statistics filters to define a generic framework that enables quicker customization of the filter to suit specific requirements of an application. This modification, unlike many other modifications of the order statistics filters is able to generate an output that may not be a value from input signal values. Use of weighting function with values between range [0, 1] limits the output within the dynamic range of the input signal. By use of unity weighting function the modified order statistics filters converge to the conventional definitions of order statistics filters.
The generic framework defined here can be used to define more such filters for one dimensional as well as multidimensional signals.
Using the framework of AWLDOS we defined two filters that use weighting functions based on image details such as relative edge orientation in a neighborhood and local luminance similarity along with geometric relationship of the neighborhood pixels. Results of the image restoration quality assessment tests demonstrate that EOAWLDMF and LSAWLDF surpass both MF and ADF in noise suppression and image detail preservation for the tested noise conditions. Results also show that with multiple noises present EOAWLDMF performs best among the filters tested, whereas, LSAWLDMF has best efficacy in restoring speckle noise corrupted images. Further, by combining the weighting functions defined in section IV another custom filter that can be defined that adapts to the relative edge orientation of the edges in the neighborhood Luminance Similarity of pixels in the neighborhood and their spatial relationship.