generalized reaction–diffusion equations · this letter proposes generalized reaction–diffusion...

6
16 April 1999 Ž . Chemical Physics Letters 303 1999 531–536 Generalized reaction–diffusion equations G.W. Wei ) Department of Computational Science, National UniÕersity of Singapore, Singapore 119260, Singapore Received 18 December 1998; in final form 28 January 1999 Abstract This Letter proposes generalized reaction–diffusion equations for treating noisy magnetic resonance images. An edge-enhancing functional is introduced for image enhancement. A number of super-diffusion operators are introduced for fast and effective smoothing. Statistical information is utilized for robust edge-stopping and diffusion-rate estimation. A quasi-interpolating wavelet algorithm is utilized for numerical computations. Computer experiments indicate that the present algorithm is efficient for edge detecting and noise removing. The generalized reaction–diffusion equations have potential applications in modeling boundary-restricted diffusion, multiphase chemical reactions and reaction–diffusion in porous media. q 1999 Elsevier Science B.V. All rights reserved. It is well known that the evolution of an image Ž . under certain partial differential equation PDE op- w x erators is an image processing operation 1–3 . Cor- respondingly, an image processing operation, under appropriate restrictions, can be regarded as action of wx a PDE operator 4 . This link between PDEs and image processing has stimulated much interest in Ž . both fields. The use of linear PDE operators in image processing began with the diffusion operator and has its roots in the theory of multiscale analysis and Gaussian smoothing initiated by Rosenfeld and wx w x Thurston 1 and others 2,3 . It can be proved that the heat equation satisfies the maximum and mini- mum principles, which means the maximum and minimum can only be attained for the initial image wx data or at the boundary of an image 5 . Hence, the ) Corresponding author. Fax: q65 774 6756; e-mail: [email protected] edges of an image may lose definition under the action of the diffusion operator. wx Perona and Malik 6 addressed the edge loss Ž . problem by introducing a non-linear anisotropic wx diffusion operator 6 . Such a formalism has stimu- w x lated a great deal of interest 7–20 . It is commonly believed that the Perona–Malik algorithm provides a potential means for noise removing, edge detection, image segmentation and enhancement. The basic idea behind the Perona–Malik algorithm is to regard Ž. an original image I r as evolving under an edge- stopping diffusion operator E u r , t Ž . < < s = P d =u r , t =u r , t , Ž . Ž . Ž . E t u r ,0 s I r , 1 Ž . Ž . Ž. Ž < <. where d =u is a generalized diffusion coefficient which is so designed that it limits the diffusion near edges while allowing lots of diffusion in regions where the noise is to be suppressed. The edges of an 0009-2614r99r$ - see front matter q 1999 Elsevier Science B.V. All rights reserved. Ž . PII: S0009-2614 99 00270-5

Upload: others

Post on 22-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Generalized reaction–diffusion equations · This Letter proposes generalized reaction–diffusion equations for treating noisy magnetic resonance images. An edge-enhancing functional

16 April 1999

Ž .Chemical Physics Letters 303 1999 531–536

Generalized reaction–diffusion equations

G.W. Wei )

Department of Computational Science, National UniÕersity of Singapore, Singapore 119260, Singapore

Received 18 December 1998; in final form 28 January 1999

Abstract

This Letter proposes generalized reaction–diffusion equations for treating noisy magnetic resonance images. Anedge-enhancing functional is introduced for image enhancement. A number of super-diffusion operators are introduced forfast and effective smoothing. Statistical information is utilized for robust edge-stopping and diffusion-rate estimation. Aquasi-interpolating wavelet algorithm is utilized for numerical computations. Computer experiments indicate that the presentalgorithm is efficient for edge detecting and noise removing. The generalized reaction–diffusion equations have potentialapplications in modeling boundary-restricted diffusion, multiphase chemical reactions and reaction–diffusion in porousmedia. q 1999 Elsevier Science B.V. All rights reserved.

It is well known that the evolution of an imageŽ .under certain partial differential equation PDE op-

w xerators is an image processing operation 1–3 . Cor-respondingly, an image processing operation, underappropriate restrictions, can be regarded as action of

w xa PDE operator 4 . This link between PDEs andimage processing has stimulated much interest in

Ž .both fields. The use of linear PDE operators inimage processing began with the diffusion operatorand has its roots in the theory of multiscale analysisand Gaussian smoothing initiated by Rosenfeld and

w x w xThurston 1 and others 2,3 . It can be proved thatthe heat equation satisfies the maximum and mini-mum principles, which means the maximum andminimum can only be attained for the initial image

w xdata or at the boundary of an image 5 . Hence, the

) Corresponding author. Fax: q65 774 6756; e-mail:[email protected]

edges of an image may lose definition under theaction of the diffusion operator.

w xPerona and Malik 6 addressed the edge lossŽ .problem by introducing a non-linear anisotropic

w xdiffusion operator 6 . Such a formalism has stimu-w xlated a great deal of interest 7–20 . It is commonly

believed that the Perona–Malik algorithm provides apotential means for noise removing, edge detection,image segmentation and enhancement. The basicidea behind the Perona–Malik algorithm is to regard

Ž .an original image I r as evolving under an edge-stopping diffusion operator

Eu r ,tŽ .< <s=P d =u r ,t =u r ,t ,Ž . Ž .Ž .

Et

u r ,0 s I r , 1Ž . Ž . Ž .

Ž < <.where d =u is a generalized diffusion coefficientwhich is so designed that it limits the diffusion nearedges while allowing lots of diffusion in regionswhere the noise is to be suppressed. The edges of an

0009-2614r99r$ - see front matter q 1999 Elsevier Science B.V. All rights reserved.Ž .PII: S0009-2614 99 00270-5

Page 2: Generalized reaction–diffusion equations · This Letter proposes generalized reaction–diffusion equations for treating noisy magnetic resonance images. An edge-enhancing functional

( )G.W. WeirChemical Physics Letters 303 1999 531–536532

image are automatically detected by using a diffu-sion rate based on approximating the norm of thegradient across edges with the norm of the full imagegradient. Examples of such coefficients, as suggestedoriginally by Perona and Malik, include

2< <=u< <d =u sexp y , 2Ž . Ž .22h

and

1< <d =u s , 3Ž . Ž .2< <=u

1q 2h

where h is a threshold value. It is well-knownw x7,9,11,13 that this anisotropic diffusion algorithmmay break down when the gradient generated bynoise is comparable to image edges and features. In

Žmathematical terms, the Perona–Malik equation Eq.Ž ..1 is ill defined. This problem may be alleviated

Ž .through a regularizer R r which serves both as alow-pass filter for removing high-frequency noiseand as a smoother for the possible discontinuity inthe original image function

Eu r ,tŽ .< <s=P d = R r )u r ,t =u r ,t ,� 4Ž . Ž . Ž .Ž .

Et4Ž .

Ž . Ž .where R r )u r,t denotes the convolution. Possi-w xble choices of regularizers are Gaussian 7 ,

Ž .w Ž 2 2 .xLorentzian function 1rp ar a qx , and Shan-Ž . Ž .non’s scaling function sin a x r p x . Mathemati-

cally, this scheme provides a weak solution of theoriginal Perona–Malik equation.

The purpose of this Letter is to introduce general-ized reaction–diffusion equations for treating noisyimages. Such equations can be derived from conser-vation laws and can be regarded as generalizations of

Ž Ž ..the Perona–Malik equation Eq. 1 . Statistical in-formation is used for automatic edge-stopping andnoise-level estimation. A time-dependent threshold isintroduced to handle possible break down due to anoise-generated gradient. A recently developed

w xquasi-interpolating wavelet algorithm 21 is utilizedfor the numerical integration of generalized reac-tion–diffusion equations. The efficiency and robust-

ness of the present algorithm are illustrated by itsŽ .application to magnetic resonance images MRI .

In many physical situations, the edges of an im-age may be degraded for various reasons. In othercases, the resolution of an image can be very low;for example, X-ray breast mammogram images,where the difference in X-ray attenuation betweennormal and cancerous tissues is very small. Similarcases can appear in MRIs. Therefore, a direct featureenhancement is often required. We propose a real-valued edge-enhancing functional

< <e u r ,t , =u r ,t , 5Ž . Ž . Ž .where NeN-` is bounded up and below. It isappropriately chosen so that a certain image featureandror the contrast of image edges are enhancedduring the time propagation. This leads to a general-ized reaction–diffusion equation

Eu r ,tŽ .< <s=P d u r ,t , =u r ,t =u r ,t� 4Ž . Ž . Ž .

Et

< <qe u r ,t , =u r ,t ,Ž . Ž .u r ,0 s I r . 6Ž . Ž . Ž .

Ž .For constant d and a simple form of e, Eq. 6reduces to the inhomogeneous diffusion equation.The maximum and minimum principles are impor-tant for proving uniqueness and continuous depen-dence on the initial data for the solution of initial andboundary value problems for the diffusion equation.A strong maximum or minimum principle is knownfor the inhomogeneous diffusion equation and a weakmaximum or minimum principle is known for the

w xhomogeneous diffusion equation 5 . Perona–Malikargued that their anisotropic diffusion equation has

Ž .no additional maxima minima which do not belongto the initial image data. Since the source term in the

Ž Ž ..generalized reaction–diffusion equation Eq. 6 iseffectively non-zero only at image edges or at afeature, it retains the strong maximum or minimumprinciple and thus preserves image features.

ŽThe derivation of the diffusion equation heat.equation is based on Fourier’s law for heat flux

j r ,t syD =u r ,t . 7Ž . Ž . Ž .1 1

Here D is a constant. This, from the point of view1

of kinetic theory, is a simplified approximation to aquasi-homogeneous system which is near equilib-

Page 3: Generalized reaction–diffusion equations · This Letter proposes generalized reaction–diffusion equations for treating noisy magnetic resonance images. An edge-enhancing functional

( )G.W. WeirChemical Physics Letters 303 1999 531–536 533

rium. A better approximation can be expressed as asuper flux term

j r ,t sy D ==2 qu r ,t , 8Ž . Ž . Ž .Ýq q

q

Ž .where D are constants and high order terms q)1q

describe the influence of inhomogeneity in tempera-ture field and flux–flux correlations. Energy conser-vation leads to

Eu r ,tŽ .sy=P j r ,t qs r ,tŽ . Ž .q

Et2 qs =P D == u r ,t qs r ,t , 9Ž . Ž . Ž .Ý q

q

Ž .where s is a productive source term which can be anon-linear function describing chemical reactions.

Ž .Eq. 9 is an interesting reaction–diffusion equationwhich includes not only the usual diffusion andproduction terms, but also a ‘super’-diffusion term.

Ž .The case of second-order super-diffusion, j r,t s2Ž . 2 Ž .yD =u r,t qND N== u r,t , has been used for1 2

the decription of a number of physical phenomena,such as pattern formation in alloys, glasses, polymer,combustion and biological systems.

In image systems, the distribution of image pixelscan be highly inhomogeneous. Hence, the general-

Ž Ž ..ized reaction–diffusion equation Eq. 6 can bemade more efficient for image segmentation andnoise removing by incorporating an edge-sensitivesuper-diffusion term

Eu r ,tŽ .< <s =P d u r ,t , =u r ,tŽ . Ž .�Ý q

Et q

= 2 q < <== u r ,t qe u r ,t , =u r ,t .Ž . Ž . Ž .410Ž .

Ž < <.Here d u, =u are edge-sensitive diffusion func-qŽ .tions. Eq. 10 is a generalized reaction–diffusion

equation and it can also be regarded as a generaliza-Ž Ž ..tion of the Perona–Malik equation Eq. 1 . A

special form used in this Letter for numerical experi-ments is

Eu r ,tŽ .< <s=P d u r ,t , =u r ,t =u r ,t� 4Ž . Ž . Ž .1

Et2< <q=P d u r ,t , =u r ,t ==Ž . Ž .� 2

= < <u r ,t qe u r ,t , =u r ,t .Ž . Ž . Ž .411Ž .

The diffusion functions can be appropriately cho-sen in many different ways. In this Letter, we choose

Ž < <. Ž < <.the Gaussian, for both d u, =u and d u, =u1 2

2< <=u t< <d u , =u sd exp y , 12Ž . Ž .q q0 22s t1 0

where d are automatically determined by the noiseq0

level s and t is a time delay value at which the0 0

edge-stopping becomes more important. Here s0

and s are chosen as local statistical variances of u1

and =u

2 q q 2s r ,t sN= uy= uN , qs0,1 . 13Ž . Ž . Ž .q

Ž .Here X r denotes the local average of X r cen-Ž .tered at point r. The area of local average used inthis Letter is 17=17 pixel2. Obviously, these localstatistical variances can be optimized for a givenproblem. However, we have not implemented thisoptimization in this work. The appropriate use oftime delay t can effectively prevent the noise-break0

down of the original Perona–Malik equation. Cer-tainly, this concept can be implemented in a varietyof ways. In this work, we choose the edge enhancingfunctional as

N=uN 22 2ywŽ tyt . xrŽ2 s .e e< <e u , =u se u e , 14Ž . Ž . Ž .0 2s1

Ž .with e u varying as a function of u. Here,0ywŽ tyte.

2 xrŽ2 se2 .e is designed to turn on the edge-en-

hancing functional for an effective period of the sizeof s centered at t .e 0

Ž Ž ..The Perona–Malik equation Eq. 1 and general-Ž Ž . Ž ..ized reaction–diffusion equations Eqs. 6 and 11

are spatially discretized using a quasi-interpolatingw xwavelet algorithm 21

WWl yxE u x , yŽ .Žm.f F xyxŽ .Ý Ý s , D km lym x xEx E y ksyW jsyWx y

= Ž lym.F yyy u x , y , 15Ž . Ž . Ž .s , D j k jy y

Page 4: Generalized reaction–diffusion equations · This Letter proposes generalized reaction–diffusion equations for treating noisy magnetic resonance images. An edge-enhancing functional

( )G.W. WeirChemical Physics Letters 303 1999 531–536534

Žm. Ž .where F xyx is the mth derivative of thes , D ky y

w xquasi-interpolating wavelet scaling function 21 .Here, s rD ss rD s3.2 and W sW s8 arex x y y x y

used to discretize the variable of the diffusion coeffi-cients for removing noise and accurately detectingedges. Our quasi-interpolating wavelet algorithm is adiscrete singular convolution method which provides

a weak solution to a partial differential equation. Theadditional regularization operation as indicated in

Ž .Eq. 4 is no longer necessary in our approach. Thefourth-order Runge–Kutta method is employed forthe time discretization of the Perona–Malik equationand its generalizations. A reflecting boundary condi-tion is used in time integration.

Ž . Ž . Ž .Fig. 1. Restoration of a noisy magnetic resonance image. a Original image; b noisy image; c restored with the Perona–Malik diffusionŽ . Ž .operator; d restored with the Perona–Malik diffusion operator and the edge-enhancing functional; e restored with the Perona–Malik

diffusion operator, the super-diffusion operator and the edge-enhancing functional.

Page 5: Generalized reaction–diffusion equations · This Letter proposes generalized reaction–diffusion equations for treating noisy magnetic resonance images. An edge-enhancing functional

( )G.W. WeirChemical Physics Letters 303 1999 531–536 535

Ž .Fig. 1 continued .

Ž .We use a 256=256 MRI sample Fig. 1a for ourdemonstration. The MRI sample is degraded withGaussian noise to obtain a peak signal-to-noise ratioŽ . Ž .PSNR of 25 dB Fig. 1b . The PSNR used here iscalculated as

255=255PSNRs , 16Ž .NN yx1 2

I i , j yu i , jŽ . Ž .Ý Ý 0N Nx y is1 js1

Ž . Ž .where I i, j and u i, j are the original image,0

which is assumed to be noise free, and noisy imagesamples, respectively, and N and N are the num-x y

ber of pixels horizontally and vertically, respectively.Ž .The parameters t , t , d , d , and e u are chosen0 e 10 20 0

as 18, 3.5, 0.4s , y0.006s and y0.01u respec-0 0

tively. Fig. 1c shows the restored MRI produced byŽ Ž ..using the Perona–Malik equation Eq. 1 . The in-

Ž .crease in PSNR is quite large 20 dB with the use ofthe autothreshold technique and the quasi-interpolat-ing wavelet algorithm. Fig. 1d is obtained by thecombined use of the edge-enhancing functional and

Žthe Perona–Malik anisotropic diffusion operator Eq.Ž ..6 . Obviously, the edge of the image is effectivelyenhanced by the edge-enhancing functional as indi-cated by an increase of PSNR of 29 dB. The perfor-mance of the full generalized Perona–Malik equation

Ž Ž ..Eq. 11 is given in Fig. 1e. In this case, the PSNRis increased by 35 dB. Comparing them with the

Ž .degraded image Fig. 1b , it is clearly seen that thepresent algorithms can effectively remove noise whilesimultaneously preserving the edges. The imageboundary is also effectively preserved, which showsthe success of the present reflecting boundary treat-

w xment. As pointed out in Ref. 14 , for noisier imagesthe Perona–Malik equation may produce some noiseechoes that are larger than the threshold value andthus cannot be removed. However, increasing thethreshold value leads to edge-blurring. Using thevarious techniques presented in this Letter and in

w xRef. 21 , we can effectively avoid the problem byaccurately detecting the edges using the quasi-or-thogonal wavelets. Since our quasi-interpolatingwavelets are functions of the Schwartz class, thepresent algorithm of time integration automaticallyavoids having to apply an additional smoothing oper-ation to the argument of the diffusion coefficient. Wehave also tested our algorithm for even nosier im-ages and have found that it can increase the PSNRenormously.

In conclusion, we propose generalized reaction–diffusion equations for edge-detected image process-ing. An edge-enhancing functional is introduced fordirect image enhancement. Such a term is very use-ful for enhancing low contrast images and edge-blurred images. We also introduce edge-detected su-per-diffusion operators for highly inhomogeneousimages. The super-diffusion operators are very effi-cient for noise-removing. Statistical information isused for the automatical choice of edge-stoppingthreshold and for determining diffusion amplitudes.A time delay concept is used in edge-stopping coef-ficients for preventing high noise-level breakdown.A newly developed quasi-interpolating wavelet tech-

w xnique 21 is used for the time integration of the PDEsystem. Numerical experiments on a noisy MRI sam-ple show that the present algorithm is very effectivefor noise-removing and simultaneously edge-preserv-ing. While the application addressed in this work isMRI restoration, we note that the present generalizedreaction–diffusion equations have great potential fortheoretical modeling of various physical phenomena,such as boundary-restricted diffusion, multiphasechemical reaction and reaction–diffusion in porousmedia. These aspects are under investigation.

Page 6: Generalized reaction–diffusion equations · This Letter proposes generalized reaction–diffusion equations for treating noisy magnetic resonance images. An edge-enhancing functional

( )G.W. WeirChemical Physics Letters 303 1999 531–536536

Acknowledgements

This work was supported in part by the NationalUniversity of Singapore. The author thanks Drs. E.C.Chang and Y.P. Wang, and Prof. Yingfei Yi foruseful discussions.

References

w x Ž .1 A. Rosenfeld, M. Thurston, IEEE Trans. Comp. C 20 1971562.

w x2 D.H. Ballard, C.M. Brown, Computer Vision, Prentice Hall,Englewood Cliffs, NJ, 1982.

w x Ž .3 D. Marr, T. Poggio, Proc. R. Soc. Lond. B 204 1979 301.w x4 L. Alvarez, F. Guichard, P. Lions, J. Morel, Centre de

Recherche de Mathematiques de la Decision, Number 9254,November 1992.

w x5 E. Zauderer, Partial Differential Equations of Applied mathe-matics, Wiley, New York, 1989.

w x6 P. Perona, J. Malik, IEEE Trans. Pattern Anal. MachineŽ .Intell. 12 1990 629.

w x7 F. Catte, P.-L Lions, J.-M. Morel, T. Coll, SIAM J. Numer.Ž .Anal. 29 1992 182.

w x8 L. Alvarez, P.-L Lions, J.-M. Morel, SIAM J. Numer. Anal.Ž .29 1992 845.

w x9 M. Nitzberg, T. Shiota, IEEE Trans. Pattern Anal. MachineŽ .Intell. 14 1992 826.

w x Ž .10 L. Rudin, S. Osher, E. Fatemi, Physica D 60 1992 259.w x11 R.T. Whitaker, S.M. Pizer, CVGIP: Image Understanding 57

Ž .1993 99.w x12 Y.-L You, M. Kaveh, W.-Y Xu, T. Tannenbaum, in IEEE

Proc. 1st Int. Conf. Image Processing, Austin, TX, Novem-ber, vol. II, 1994, p. 497.

w x13 Y.-L. You, W. Xu, A. Tannenbaum, M. Kaveh, IEEE Trans.Ž .Image Process. 5 1996 1539.

w x14 F. Torkamani-Azar, K.E. Tait, IEEE Trans. Image Process. 5Ž .1996 1573.

w x15 G. Sapiro, in: IEEE Proc. 3rd Int. Conf. Image Processing,Lausanne, Switzerland, vol. I, 1996, p. 477.

w x16 J. Shah, in: IEEE Proc. Conf. Computer Vision and PatternRecognition, San Francisco, CA, 1996, p. 136.

w x17 S.T. Acton, in: IEEE Proc. 3rd Int. Conf. Image Processing,Lausnne, Switzerland, 1996, p. 865.

w x Ž .18 E. Bansch, K. Mikula, Comput. Visual Sci. 1 1997 53.¨w x19 S. Teboul, L. Blanc-Feraud, G. Aubert, M. Barlaud, IEEE

Ž .Trans. Image Process. 7 1998 387.w x20 M.J. Black, G. Sapiro, D.H. Marimont, D. Heeger, IEEE

Ž .Trans. Image Process. 7 1998 421.w x Ž .21 G.W. Wei, Chem. Phys. Lett. 296 1998 215.