Professional Documents
Culture Documents
Aqtr 2010 5520666
Aqtr 2010 5520666
Abstract-We present a new approach based on Partial Differen- tive given by the imaginary part of the image function. In order
tial Equations (PDEs) and shock filter theory for image enhance- to accomplish this, the image definition domain needs to be
ment in “Gaussian Blur (GB) + Additive White Gaussian Noise changed from the real one to the more general domain, the
(AWGN)” scenarios. The main disadvantage of classic shock fil- complex one, thus adding a new dimension to the work space.
ters, inability of successfully filtering noisy images, is overcome by
The major improvement brought by this edge detector consists
the introduction of a complex domain shock filter framework.
Furthermore, the proposed method allows for better control and in its robustness to noise, even when dealing with low signal-
anisotropic, contour-driven shock filtering, via its control func- to-noise ratio (SNR) images. On the other hand, this edge de-
tions f1 and f2. The main advantages of our method consist in the tector presents, as well, a noticeable drawback due to the fact
ability of successfully enhancing GB+AWGN images while pre- that the edge detector will continuously evolve over time, lead-
serving a stable-convergent time behavior. ing to a divergent effect of the filtered result instead of reach-
ing a steady-state solution (as in the case of the classic shock
I. INTRODUCTION filter).
Our hybrid shock filter model aims at combining the stability
The reasoning behind our approach is based on the limita- and image enhancement properties (in GB scenarios) of the
tions presented by the classic shock filter described in [1] as classic shock filter described in [1] with the image enhance-
well as on its later developments, such as the one presented in
ment properties (in GB, AWGN or GB+AWGN scenarios) of
[5]. The main shortcoming of the classic model consists in the
the complex shock filter described in [5].
fact that in the presence of AWGN the filtering is at best mi-
nimal - this minimal filtering effect is mainly due to the numer- II. THEORETICAL BACKGROUND
ical scheme employed in its implementation. The aforemen-
As previously stated, the main weakness of traditional shock
tioned numerical scheme is based on the minmod function, de-
filters is the presence of AWGN as contamination source of the
fined in [1] and used in computing the gradient norm in each
useful signal. Since traditional shock filters were initially de-
point of the image function, restricting large value variations in
signed to deal exclusively with GB signal corruption, the more
neighboring pixels (such being the case of noise-corrupted im-
general scenario GB+AWGN proves to be too complex for a
ages). Another important shortcoming of the classic shock fil-
classic shock filter, such as the one described in [1]. The
ter resides in its edge detector, based on the 2nd order direction-
GB+AWGN scenario represents a complex perturbation with
al derivative that, in GB+AWGN scenarios, fails to correctly
multiple characteristics, difficult to filter by simple means, re-
detect edges and contours, thus blocking the shock filter’s natu-
quiring either complex processing models or successive filter-
ral time evolution.
ing for removing each distortion at a time.
By knowing these a priori limitations of the classic model, a
The qualitative level of the filtering also depends to a great
series of steps towards improving its overall performance were
extent on the discretization method used for the mathematical
taken over time. Noteworthy results were described in [2], [4]
model. An alternative discretization scheme to the classic ones,
and [6], where the edge detector and its robustness were their
described in [4], allows the classic shock filter to perform well
main focus, somehow neglecting the global GB+AWGN scena-
even in AWGN scenarios, but only for large SNR values, i.e.
rio. This generalized scenario was approached in [3] and [5]
small AWGN signal corruption.
where the useful signal, affected by both GB and AWGN, was
When dealing with just AWGN perturbations, the usual ap-
part of the problem’s statement.
proach using the PDEs formalism is the use of diffusion filters;
The starting point of our approach is represented by the work
this type of filters performs a controlled GB filtering based on
described in [5] that contains a series of innovative ideas at the
the principle of heat dissipation described in Physics. The con-
level of contour detection as well as image definition domain.
trolled GB filtering is behaviorally similar to the GB distortion,
Nevertheless, handling both contamination sources at the same
hence it can be inferred that the noise removal GB filtering in
time implies a series of compromises either processing quality
the AWGN scenario can be approximated to the GB distortion
wise, noise removal wise or edge enhancement wise. In the
in the GB perturbation scenario. Therefore, in the case of the
case of the method described in [5], in order to surpass the in-
generalized GB+AWGN scenario, the separate filtering of each
herent classic edge detector’s limitations, a new approach is
distortion is performed with filters opposite in nature, leading
proposed: an approximation of the 2nd order directional deriva-
to a complex problem. This problem is discussed in [3] and [5] Another way to address the AWGN problem is to consider a
leading to an elegant solution by defining a series of connect- more complex approach to the shock filter formalism. Such an
ing terms between the filtered image and the input image in approach would combine a deblurring method with a noise
order to preserve coherency and avoid the filtered image’s di- removal method: for the isotropic regions of the image a noise
vergence (absence of a steady-state solution), induced by the removal will take care of the AWGN distortion as for the ani-
opposite nature of the two filtering processes. sotropic regions, such as edges and contours, a local, image
The novelty of the idea described in [5] arises from the pur- geometry-driven deblurring will take care of the GB distortion.
pose of the method: to use a shock filter for processing AWGN Such an approach is presented in [2] and proposes coupling a
corrupted images not just for GB corrupted ones. In order to diffusion filter with a shock filter:
attain this desideratum the edge detector needs to be rethought,
since the classic edge detector is not adequate in handling I t = − sign (Gσ ∗ Iηη ) ⋅ ∇I + cI ξξ . (5)
AWGN corrupted signals, as previously stated. The solution
given in [5] consists in redefining the definition domain of the
σ is the standard deviation of the Gaussian kernel G and c is a
image function, from the real one to the complex one. By doing
positive constant; ξ defines the direction orthogonal to the gra-
so, the use of the imaginary part of the image function as an
dient vector. A more complex mathematical model is described
edge detector proves to be an elegant and efficient solution in
in [3]:
overcoming the classic edge detector’s problem.
The general 1D shock filter equation is the following:
I t = α r ⋅ ( hτ Iηη + I ξξ ) − α e ⋅ (1 − hτ ) ⋅ sign (Gσ ∗ Iηη ) ⋅ ∇I . (6)
I t = − I x ⋅ F ( I xx ) . (1)
Where:
With F satisfying the following constraints: hτ = hτ ( Gσ ∗ ∇I ) = 1 if Gσ ∗ ∇I < τ and 0 otherwise.
In order to improve the filtering capacity, [5] firstly proposes
⎧ F ( 0) = 0 . changing the sign function F (2) to allow taking into account
⎨ (2) not only the 2nd order derivative’s direction but also its magni-
⎩ F ( s ) ⋅ sign ( s ) ≥ 0 . tude. This way the inflexion points (the regions close to con-
tours where the 2nd order derivative has a higher magnitude)
By choosing F ( s ) = sign( s ) one obtains the classic shock filter will not have equal weights, which translates into a higher deb-
expression: lurring speed near edges and contours than in the isotropic re-
gions of the image.
I t = − sign ( I xx ) ⋅ I x . (3)
2
F (s ) = arctan(as ) . (7)
When dealing with images, we usually work in a 2D or higher π
framework. For the 2D case, (3) becomes:
In (7) a is the parameter that controls the steepness of the 2nd
I t = − sign ( Iηη ) ⋅ ∇I . (4) order derivative’s slope near 0.
Finally, [5] proposes a complex shock filter model that em-
ploys the sign function (7), having the following expression:
η represents the gradient vector’s direction.
An important role in the discretization of (4) is played by the
2 ~ (8)
way in which the gradient norm | ∇I | is computed in order to It = − arctan(a ⋅ Im(I θ )) ⋅ ∇I + λIηη + λ I ξξ .
avoid the algorithm’s instability - caused by the approximation π
of the 1st order derivatives, when computing the gradient vec- ~
tor. A way around this problem is proposed in [1] where the Where λ = reiθ is a complex scalar, λ is a real scalar
gradient norm | ∇I | is computed using a slope limiter minmod and θ ∈ (− π 2 , π 2) .
function in order to minimize the sudden signal variations. For small values of θ ( θ → 0 ), the imaginary part can be re-
The classic shock filter from (4) combined with its discreti- garded as a smoothed 2nd order derivative of the initial signal
zation using the minmod function is extremely sensitive to factored by θ and the time t as was mathematically proven in
AWGN perturbations as also stated in [1]. The filtering of a [15]. The implementation of (8) is done by the same standard
GB corrupted signal with overlaid AWGN or just of an AWGN discrete approximations used in [1], except that all computa-
corrupted one using the shock filter (4) will amplify the tions are performed in the complex domain.
AWGN instead of successfully processing it. If we consider the
image function over a continuous domain, the noise amplifica- III. HYBRID SHOCK FILTERS
tion can lead to an infinite number of inflexion points, thus Although the complex shock filter described in [5] proves to
leading to the image function’s rapid divergence from a steady- be a viable alternative to the classic one in circumventing the
state solution. noise problem in the generalized scenario of GB+AWGN inter-
ference, it presents at the same time a series of shortcomings,
the most important of them being its numerical implementa- ⎧ 1, i < TI1
tion, which becomes unstable after a sufficiently large number ⎪⎪ i − T i = 0....N −1,
of iterations. This translates into the method’s dependency on f1(TI1,TS1) = ⎨1− I1
, TI1 ≤ i < TS1,
⎪ TS1 − TI1 TI1,TS1 ∈(0; N −1)
the human supervised control, the algorithm’s stopping crite-
⎪⎩ 0, i ≥ TS1 (11)
rion being tied to its input parameters and sensitive to the na-
ture of the input image. ⎧ 0, i < TI 2
These shortcomings along with the ones presented by the ⎪⎪ i − T i = 0....N −1,
classic model represent the premises of our hybrid shock filter. f2 (TI 2 ,TS 2 ) = ⎨ I2
, TI 2 ≤ i < TS 2 ,
⎪TS 2 − TI 2 TI 2 ,TS 2 ∈(0; N −1)
Our goal is to combine the advantages of both models without
preserving their disadvantages. So far our hybrid model solves ⎩⎪ 1, i ≥ TS 2
the inability to efficiently process AWGN of the classic shock
filter as well as the divergent character of the complex one, Where TI 1 , TS1 , TI 2 , TS 2 are threshold parameters used to define
thus resulting a shock filter capable of image enhancement in the complementary behavior of f1 and f2; f1,f2 : [0;N-1]→[0;1]
GB+AWGN scenarios that is both efficient and stable. Another as exemplified in Fig. 1:
advantage of this method resides in its modularity, allowing the
use of multiple sets of functions, useful in the filter’s behavior-
al analysis over a large variety of input images.
The mathematical expression of the hybrid shock filter is the
following:
2
Re( I t ) = − arctan(a ⋅ Im(I ) θ ) ⋅ f1 ⋅ ∇I − sign (Re( Iηη )) ⋅ f 2 ⋅ ∇I
π
~
+ f1 ⋅ (Re(λ ) ⋅ Re( Iηη ) − Im(λ ) ⋅ Im(Iηη ) + λ Re( I ξξ )) .
(9)
~
Im(I t ) = Im(λ ) ⋅ Re(Iηη ) − Re(λ ) ⋅ Im(Iηη ) + λ Im(Iξξ ) .
c) d)
Figure 6. Complex shock filter’s and hybrid shock filter’s time evolution.
~
The test parameters are the following: θ = 0.00001, λ = 0.5 ,
a = 0.55, λ = 0.5 dt = 0.1 TI 1 = TS 1 = 60 TI 2 = 60; TS 2 = 500
and N = 10000 with a GB (σ = 5) and an AWGN (A = 40).
As a further development of the hybrid model, our next test
scenario will compare the results yielded with three filters hav-
ing as input a strongly oriented image, presenting elongated
structures. To suit this purpose, we have chosen as input a fin-
gerprint image (Fig. 7a). The input was distorted using the ge-
neralized GB+AWGN scenario with σ = 10 and A = 25 and the
Figure 5. Influence of the control functions f1 and f2 (11) over the hybrid
shock filter’s time evolution. hybrid shock filter was modified to accommodate the use of the
sign function described in (12), thus acquiring the coherence
The test parameters are the following: GB with σ = 5 and enhancing property introduced in [6].
~
AWGN of amplitude A = 40, θ = 0.00001, λ = 0.5 , a = 0.55,
λ = 0.5 dt = 0.1 and N = 1000 while the parameters for f1 and
f2 in each of the four test scenarios are presented in Table 1:
TABLE I
f1 AND f2 TEST PARAMETERS
Param. TI1 TS1 TI2 TS2
Test #
Test 1 150 250 200 1000
Test 2 50 100 100 900
Test 3 300 400 300 900
Test 4 300 320 300 1000