Professional Documents
Culture Documents
I. INTRODUCTION
RDER statistics filters, including their special case, the
median filter, and its modifications [1][4], have attracted
a great interest in the past few years, due to their usefulness in
several applications of signal processing. In particular, median
filters possess two important properties, namely edge preservation and noise attenuation. The latter mostly refers to the special case of impulsive noise [5]. Other order statistics filters, including the minimum and maximum filters, have been successfully used in morphological image processing as the erosion and
dilation operators, respectively.
The disadvantage of traditional order statistics filters, compared to linear filters, used to be their inflexibility. For instance,
linear smoothers can be implemented as weighted moving averages. Therefore, smoothing filters with different spatial and frequency characteristics can be obtained by choosing appropriate
weights. In order to provide more flexibility in the design of median filters, the weighted median filter (WMF) was introduced
[6][8]. The WMF was proposed as an extension of the traditional median filter, and was designed by assigning a non-negative weight to each position in the filter window. Based on the
same concept, weighted order statistics filters (WOSFs) were
designed [9]. Later, methods for designing WMFs admitting
negative and even complex weights were introduced [19][24].
Another advantage of 2-D linear filters was identified with
the introduction of the steerability concept [10]. Considering
, steerability implies that the output
an input image
Manuscript received February 04, 2009; revised November 12, 2009. First
published December 22, 2009; current version published March 17, 2010. The
associate editor coordinating the review of this manuscript and approving it for
publication was Dr. Michael Elad.
The author is with the Electrical Engineering Department, University of New
Orleans, New Orleans, LA 70148 USA (e-mail: dcharala@uno.edu).
Digital Object Identifier 10.1109/TIP.2009.2038823
883
Equation (6) implies that the median is the input sample value
associated to the bin, , at which the CMF is greater than 0.5,
, is
while the CMF value at the immediately previous bin,
smaller than 0.5. Based on the above discussion, we can draw a
few important conclusions. First, it can be observed that if (5)
and (6) are used for the calculation of the weighted median, then
the weights do not have to be integer-valued. As a result, WMFs
can be allowed to have the same flexibility as their linear filter
counterparts. Second, if the input values are integer valued, as in
the case of images, then sorting of the input values is equivalent
.
to building the empirical PMF, which can be performed in
(1)
B. Steerability and WMFs Admitting Negative Weights
where
(7)
Equation (7) describes a relation between weights, which is
equivalent to the one satisfied by steerable linear filters. The
CMF corresponding to vector is given by
(8)
(5)
The SMFs proposed in this work are WMFs whose associated weight masks can be expressed as a linear combination of
weight masks associated to a fixed set of WMFs. First, consider a set of parameters represented by vector , and a set
corresponding to the sorted inputs
of weights
. Assume that the set of weights parametrized by
an arbitrary vector can be expressed as a linear combinaweights, parametrized by vectors
tion of a set of
. In other words
884
TABLE I
EXAMPLE ILLUSTRATING HOW STEERABILITY IS AFFECTED WHEN THE SORTING OF INPUT SAMPLES DEPENDS ON THE PARAMETRIZATION
(10)
Essentially, the weight signs are transferred to their corresponding input samples. However, the WMF definition
of (10) is not appropriate in this work because the sorting
of input samples depends on the weight values. A simple
example confirms this statement. Consider two sequences
and
, and
two sets of weights
and
. Although vectors
and
are used to distinguish between two different parametrizations,
their actual relationship to the weight values is not relevant
here. The sorted input samples under parametrization with
and , respectively, are presented in Table I(a). Negative input
samples indicate that their associated weights are negative. It
can be observed that the sorting of the input samples depends
on the parametrization. The weights ordered according to their
associated sorted input samples are presented in Table I(b).
The correspondence between weights under the two different
parametrizations is presented in Table I(c) for both sequences.
It can be observed that the weight correspondence differs
for each sequence. If the two sets of weights
and
had to be linearly combined in order to
produce a set of weights under a different parametrization, , as
described in (7), then two different sets of
values would
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:493 UTC from IE Xplore. Restricon aply.
and once
have to be determined, once for sequence
for sequence
. Therefore, the
values would have
to be redetermined for every image window processed.
Another approach for designing WMFs as a linear combinations of other WMFs was introduced in [22]. The technique
in [22] is capable of handling negative weights. For instance,
in the case where a WMF weight mask contains both negative
and positive weights, the WMF could be expressed as a combination of two or more WMFs. In the case where the WMF
is expressed as a linear combination of two WMFs, the first
WMF weight mask would contain the positive weights, while
the negative weights would be substituted by zeros. Similarly,
the second WMF weight mask would contain the absolute value
of the negative weights, while the positive weights would be
substituted by zeros. In other words, the WMF operation would
be expressed as
, where and are positive constants and where
(11)
is the unit step function. The technique is not appliIn (11),
cable in this work since
is a nonlinear function. Therefore,
the linear relationship between weights in (9) does not hold.
C. Proposed WMFs
In this subsection, a new method for handling negative
weights is proposed. First, let us consider a linear filter described by a set of noninteger coefficient weights
.
885
inal weights are used in the subsequent discussion. The corresponding CMF of the first median in (15) is
(16)
(12)
where
are integer-valued weights, and
a large positive constant so that
. The weights
and
the constant
are used in order to be able to express the filtering operation in (12) using the replication operators (since the
are noninteger-valued). This representation
actual weights
and
does not result in a loss of generality since the weights
the constant
can be made arbitrarily large. The filter output
can also be expressed as
(13)
where
is a positive integer sequence used to guarantee that
, are positive. In other words,
all offset weights,
. The noninteger version
of
is defined as
. Moreover,
is defined
as
(18)
which can also be expressed as
(19)
(14)
where
The Sum operators can be converted into Mean operators. For
example,
. A median-based filter associated with the
filter of (13) can be obtained by replacing the Mean by the
Median operator. Then, the WMF output admitting negative
weights is defined as
(20)
The term
in (19) can be itself considered to represent a CMF, namely,
,
where the superscript
has, in this case, been used for consistency in the notation. More specifically, using (16), (19) can
be expressed as
(15)
(21)
In order to obtain the expression of (15), it was assumed that
the Mean and Median operators admitting positive weights are
equivalent when the sum of weights is equal to 1. This assumption was based on the fact that, in this particular case, the median
and mean of a constant input sequence provide the same output,
namely the value of an input sequence sample.
Since the integer weights
are simply propor, a WMF using eitional to the original weights
ther set of weights produces identical results. Thus, the origAuthorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:493 UTC from IE Xplore. Restricon aply.
886
III. APPLICATIONS
In this section, two applications of SMFs are presented,
specifically, edge detection (Section III-A) and orientation
analysis (Section III-B).
A. Edge Detection
Consider a WMF oriented at direction described by the 2-D
of size
. The total number of weights
weight mask
. The parametrized set of weights
is, therefore, equal to
is equal to the 1-D column-wise reshaped version
. The superscript, , is equivalent to the parameter
of
vector that appears in the equations of Section II. However, for
the application presented here, a single parameter is sufficient
for steering the WMF. For the purpose of edge detection, the
can be defined as follows:
function
(22)
where
(23)
is an isotropic Gaussian envelope with standard deviation .
The function
as defined in (22) is commonly used as a
is
linear filter in edge detection applications. Function
steerable, since it can be expressed as
(24)
Therefore, the ordered weights associated to the
samples can be expressed as
sorted input
(25)
, introduced in (13) can be
The positive 1-D sequence,
obtained by rearranging the elements of the following 2-D
isotropic function of size
(26)
. Therefore,
It can be easily shown that
. In this case, (21) can be expressed as
(27)
. By observing (20), and by using
where
the fact that the total sum of weights
is zero regardless of
the angle
(28)
Considering that the function of (22) is a gradient detector, the
output of the SMF provides the gradient at a particular orien-
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:493 UTC from IE Xplore. Restricon aply.
887
(32)
Fig. 2. Edge detection example: (a) original image, (b) using simple difference masks [ 1; 1]; [ 1; 1] , (c) using the function in (22) as a linear filter,
(d) using WMF followed by difference masks [ 1; 1],[ 1; 1] , (e) using the
median filter in [21], (f) using the proposed filter.
, the CMF
, and for
and where
(35)
(33)
The weights
corresponding to the 2-D
function
are obtained by rearranging the elements of
into an 1-D array. Each -dependent weight sequence
can be made non-negative by adding a positive constant se. The weight sequence ordered according to
quence,
the sorted input sequence, associated to direction , is given by
and
(36)
IV. EXPERIMENTAL RESULTS
In this section, experimental results showcase the advantage
of steerable WMFs over their linear counterparts for two applications: edge detection and orientation analysis.
A. Edge Detection
(34)
where the constant sequence
has been included to ensure that the weights
have no excess
positive value (in other words,
). Observing (20)
and using the fact that in this particular case
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:493 UTC from IE Xplore. Restricon aply.
888
889
Fig. 7. Edge detection example (Couple): (a) image corrupted by uniform additive noise, (b) using WMF followed by masks [ 1; 1],[ 1; 1] , (c) using the
median filter in [21], (d) using the proposed filter.
Fig. 6. Edge detection example (Lena): (a) original image, (b) using simple
difference masks [ 1; 1]; [ 1; 1] , (c) using the function in (22) as a linear
filter, (d) using WMF followed by difference masks [ 1; 1],[ 1; 1] , (e) using
the median filter in [21], (f) using the proposed filter.
Fig. 8. Edge detection example (Baboon): (a) original image, (b) using WMF
followed by difference masks [ 1; 1],[ 1; 1] , (c) using the median filter in
[21], (d) using the proposed filter.
890
Fig. 10. Orientation analysis example: (a) Original image, (b) filter used in orientation analysis. Orientation analysis using: (c) linear steerable filter, (d) SMF.
Orientation transition analysis using: (e) linear steerable filter, (f) SMF.
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:493 UTC from IE Xplore. Restricon aply.
891
Fig. 12. Angular transition profiles: (a) steerable linear filter, (b) SMF.
Fig. 13. Angular transition profiles: (a) steerable linear filter, (b) SMF.
Fig. 11. Orientation analysis example: (a) Original image, (b) filter used in orientation analysis. Orientation analysis using: (c) linear steerable filter, (d) SMF.
Orientation transition analysis using: (e) linear steerable filter, (f) SMF.
892
893
Fig. 16. Orientation transition analysis at several points in Butterfly image. The image has been corrupted by impulsive noise.
of orientation analysis presented in Section III-B, the computational efficiency advantage of SMFs over nonsteerable WMFs
may not be so obvious. In order to shed some light into this
issue, assume that it is of interest to obtain the weighted median
for numerous directions. The computational cost necessary for
ordering the input samples may be disregarded as it is only performed once. Consider a single direction out of all directions
of interest for which the weighted median will be computed. If
the number of filter weights is equal to , a nonsteerable imaddition operplementation requires, in average, a total of
ations in order to obtain the CMF from the PMF until the bin
corresponding to the median is reached. Here, it was assumed
that each input sample occupies its own bin in the PMF. If all
equally-valued input samples occupy the same bin, assuming
256 intensity levels in the input image, there are 128 additions
needed in average to obtain the CMF from the PMF. Howaddition operations are needed to popuever, an additional
late the PMF. If each sample occupies its own bin, sorting of the
input samples is more computationally expensive. Yet, as mentioned earlier, the time required for sorting may be ignored if the
number of directions is large. The proposed SMF implementamultiplications and
additions to linearly
tion requires
combine the CMFs for each bin. Since the median is determined
directly from the CMFs, only
bins need to be searched.
Therefore, a total of
operations is needed for
the proposed SMF. In order to evaluate the difference, assume
for a filter of size
.
that
Then, a total of 512 operations is needed, in average, to com-
894
REFERENCES
[1] S.-J. Ko and T. M. Forest, Image sequence enhancement based on
adaptive symmetric order statistics, IEEE Trans. Circuits Syst. II,
Analog Digit. Signal Process., vol. 40, no. 8, pp. 504509, Aug. 1993.
[2] A. Burian and P. Kuosmanen, Tuning the smoothness of the recursive median filter, IEEE Trans. Image Process., vol. 5, no. 7, pp.
16311639, Jul. 2002.
[3] A. Kundu and J. Zhou, Combination median filter, IEEE Trans.
Image Process., vol. 1, no. 3, pp. 422429, Jul. 1992.
Authorized licensd use limted to: IE Xplore. Downlade on May 13,20 at 1:493 UTC from IE Xplore. Restricon aply.
[4] D. G. Karakos and P. E. Trahanias, Generalized multichannel imagefiltering structures, IEEE Trans. Image Process., vol. 6, no. 7, pp.
10381045, Jul. 1997.
[5] T. Chen and H. R. Wu, Adaptive impulse detection using
center-weighted median filters, IEEE Signal Process. Lett., vol.
8, no. 1, pp. 13, Jan. 2001.
[6] L. Yin, R. Yang, and Y. Neuvo, Weighted median filters: A tutorial,
IEEE Trans. Circuits Syst. II, Analog Digit. Signal Process., vol. 43,
no. 3, pp. 157192, Mar. 1996.
[7] D. R. K. Brownrigg, The weighted median filter, Commun. ACM, vol.
27, no. 8, pp. 807818, Aug. 1984.
[8] R. Yang, L. Yin, M. Gabbouj, J. Astola, and Y. Neuvo, Optimal
weighted median filtering under structural constraints, IEEE Trans.
Signal Process., vol. 43, no. 3, pp. 591604, Mar. 1995.
[9] P.-T. Yu and W.-H. Lao, Weighted order statistics filterTheir classification, some properties, and conversion algorithm, IEEE Trans.
Signal Process., vol. 42, no. 10, pp. 24832497, Oct. 1994.
[10] W. T. Freeman and E. H. Andelson, The design and use of steerable filters, IEEE Trans. Pattern Anal. Mach. Intell., vol. 13, no. 9,
pp. 891906, Sep. 1991.
[11] E. Simoncelli and H. Farid, Steerable wedge filters for local orientation analysis, IEEE Trans. Image Process., vol. 5, no. 9, pp.
13771382, Sep. 1996.
[12] A. A. Bharath and J. Ng, A steerable complex wavelet construction
and its application to image denoising, IEEE Trans. Image Process.,
vol. 14, no. 7, pp. 948959, Jul. 2005.
[13] D. Charalampidis and T. Kasparis, Waveletbased rotational invariant segmentation and classification of textural images using
directional roughness features, IEEE Trans. Image Process., vol. 11,
no. 8, pp. 825836, Aug. 2002.
[14] E. Simoncelli, W. Freeman, E. Adelson, and D. Heeger, Shiftable
multiscale transforms, IEEE Trans. Inf. Theory, vol. 38, no. 2, pp.
587607, Mar. 1992.
[15] P. Perona, Deformable kernels for early vision, IEEE Trans. Pattern
Anal. Mach. Intell., vol. 17, no. 5, pp. 488499, May 1995.
[16] P. C. Teo and Y. Hel-Or, Design of multiparameter steerable functions using cascade basis reduction, IEEE Trans. Pattern Anal. Mach.
Intell., vol. 21, no. 6, pp. 552556, Jun. 1999.
[17] Y. Dong and S. Xu, A new directional weighted median filter for removal of random-valued impulse noise, IEEE Signal Process. Lett.,
vol. 14, no. 3, pp. 193196, Mar. 2007.
[18] Y. Li, G. R. Arce, and J. Bacca, Weighted median filters for multichannel signals, IEEE Trans. Signal Process., vol. 54, no. 11, pp.
42714281, Nov. 2006.
[19] G. R. Arce, A general weighted median filter structure admitting
negative weights, IEEE Trans. Signal Process., vol. 46, no. 12, pp.
31953205, Dec. 1998.
[20] G. R. Arce and J. L. Paredes, Recursive weighted median filters admitting negative weights and their optimization, IEEE Trans. Signal
Process., vol. 48, no. 3, pp. 768779, Mar. 2000.
[21] G. R. Arce, Nonlinear Signal Processing: A Statistical Approach.
New York: Wiley, Nov. 2004.
[22] K.-S. Choi, A. W. Morales, and S.-J. Ko, Design of linear combination
of weighted medians, IEEE Trans. Signal Process., vol. 49, no. 9, pp.
19401952, Sep. 2001.
[23] I. Shmulevich and G. R. Arce, Spectral design of weighted median
filters admitting negative weights, IEEE Signal Process. Lett., vol. 8,
no. 12, pp. 313316, Dec. 2001.
[24] S. Hoyos, Y. Li, J. Bacca, and G. R. Arce, Weighted median filters admitting complex-valued weights and their optimization, IEEE Trans.
Signal Process., vol. 52, no. 10, pp. 27762787, Oct. 2004, Part 1.
Dimitrios Charalampidis (S99M01) received
the Diploma degree in electrical engineering and
computer technology from the University of Patras,
Greece, in 1996, and the M.S. and Ph.D. degrees in
electrical engineering from the University of Central
Florida, Orlando, in 1998 and 2001, respectively.
In August 2001, he joined the Electrical Engineering Department, University of New Orleans,
New Orleans, LA, where he is currently an Associate Professor. His research interests include
image processing, pattern recognition, digital signal
processing, neural networks, and applications of signal processing to remote
sensing.