5
EDGE DETECTION IN MEDICAL IMAGES USING THE WAVELET TRANSFORM J. Petrov´ a, E. Ho ˇ s  ˇ  alkov´ a Depar tment of Computing and Cont rol Engine ering Institute of Chemical Technology, Prague, Technick´a 6, 166 28 Prague 6, Czech Republic Abstract Edge detection improves image readability and it is an important part of images preprocessi ng aime d to their segmentat ion and automat ic recogni tion of the ir cont ent s. This paper describes selected methods of edge detecti on in magneti c resonance images , wit h the emphasis on the wavelet tra nsform use. The rst par t bri ey describes the mathematic al bac kgr ound of the wa ve let transf orm, includi ng its propert ies and appl ication in image process ing. Modulus Max- ima Method by Stephane Mallat provides the method for edge detection using wa ve let transf orm. This met hod is based on ndi ng local maxima of horizontal and vertical wav elet coecients in the rst level of wa ve let decompositi on. It is supposed that thi s lev el represents edges. Thi s met hod was tes ted with var- ious wav elet functi ons both on simulat ed and real medi cal images . A complex wavelet function use could help to improve results of edge detection in real im- ages. Presen ted paper con tai ns a compari son of bas ic edge detecti on met hods including simple gradient operators and Canny edge detector, and their combi- nation with wavelet transform use. Mathematical principals were studied, as well as application of these methods. All algorithms wer e developed in the MATLAB environment using Wavelet and Image Processing Toolboxes. 1 2D Discret e W avelet T ransform 2D Discrete Wavelet Transform (2D DWT) [1, 6] is used in image processing as a powerful tool solvin g to image analysi s, denoising , image segme ntati on and other. 2D DWT can be applied as a convolution of a selected wavelet function with an original image or it can be seen as a set of tw o matrices of lters, row and column one. Using a separability property of DWT, the rs t par t of dec ompos iti on consis ts of an applic ati on of ro w lters to the origi nal image. The column lter are used for further processi ng of image resul ting from the rst step. This image decomposition [1] can by mathematically described by Eq. (1) C =  X · I · Y  (1) where  C is the nal matrix of wavelet coecients,  I  represents an original image,  X  is a matrix of row lters and  Y is a matrix of column lters. In the rst level of decomposition of 2D DWT, the image is separated into four parts. Each of them has a quarte r size of the original image [6]. They are called approx imation coecie nts (LowLow or LL), horizontal (LowHigh or LH), vertical (HighLow or HL) and detail coecients (HighHigh or HH) [2, 6], see Fig.1. Approximation coecients obtained in the rst level can be used for the next decomposition level. Inverse 2D Discrete Wavelet Transform used in image reconstruction is dened by Eq. (2) I rec  =  X 1 · C · Y 1 (2) For the orthogonal matrices this formula can be simplied into Eq. (3) I rec  =  X T · C · Y T (3)

078 Petrova

Embed Size (px)

Citation preview

Page 1: 078 Petrova

8/12/2019 078 Petrova

http://slidepdf.com/reader/full/078-petrova 1/5

EDGE DETECTION IN MEDICAL IMAGESUSING THE WAVELET TRANSFORM

J. Petrov´ a, E. Hos ˇ t´ alkov´ a

Department of Computing and Control EngineeringInstitute of Chemical Technology, Prague, Technick´ a 6, 166 28 Prague 6, Czech Republic

Abstract

Edge detection improves image readability and it is an important part of imagespreprocessing aimed to their segmentation and automatic recognition of theircontents. This paper describes selected methods of edge detection in magneticresonance images, with the emphasis on the wavelet transform use. The rstpart briey describes the mathematical background of the wavelet transform,including its properties and application in image processing. Modulus Max-ima Method by Stephane Mallat provides the method for edge detection usingwavelet transform. This method is based on nding local maxima of horizontaland vertical wavelet coefficients in the rst level of wavelet decomposition. It

is supposed that this level represents edges. This method was tested with var-ious wavelet functions both on simulated and real medical images. A complexwavelet function use could help to improve results of edge detection in real im-ages. Presented paper contains a comparison of basic edge detection methodsincluding simple gradient operators and Canny edge detector, and their combi-nation with wavelet transform use. Mathematical principals were studied, as wellas application of these methods. All algorithms were developed in the MATLABenvironment using Wavelet and Image Processing Toolboxes.

1 2D Discrete Wavelet Transform

2D Discrete Wavelet Transform (2D DWT) [1, 6] is used in image processing as a powerful toolsolving to image analysis, denoising, image segmentation and other. 2D DWT can be appliedas a convolution of a selected wavelet function with an original image or it can be seen as aset of two matrices of lters, row and column one. Using a separability property of DWT, therst part of decomposition consists of an application of row lters to the original image. Thecolumn lter are used for further processing of image resulting from the rst step. This imagedecomposition [1] can by mathematically described by Eq. (1)

C = X · I · Y (1)

where C is the nal matrix of wavelet coefficients, I represents an original image, X is a matrixof row lters and Y is a matrix of column lters.

In the rst level of decomposition of 2D DWT, the image is separated into four parts. Eachof them has a quarter size of the original image [6]. They are called approximation coefficients(LowLow or LL), horizontal (LowHigh or LH), vertical (HighLow or HL) and detail coefficients(HighHigh or HH) [2, 6], see Fig.1. Approximation coefficients obtained in the rst level can beused for the next decomposition level.

Inverse 2D Discrete Wavelet Transform used in image reconstruction is dened by Eq. (2)

I rec = X − 1 · C · Y − 1 (2)

For the orthogonal matrices this formula can be simplied into Eq. (3)I rec = X T · C · Y T (3)

Page 2: 078 Petrova

8/12/2019 078 Petrova

http://slidepdf.com/reader/full/078-petrova 2/5

original

LL1

LH1

HL1

HH1

LL2

LH2

HL2

HH2reconstruction

LL1

LH1

HL1

HH1

LL2

LH2

HL2

HH2

(a) (b)

Original Image

L1

H1

LL1 LH1

HL1 HH1

LLL1

HLL1

LL2 LH2

HL2 HH2

LH1 LH1

HL1 HL1HH1 HH1

(c)

Figure 1: 2D DWT decomposition into two levels: (a) Image decomposition, (b) Image recon-struction, (c) Scheme of decomposition up to the second level

2 Edge Detection Methods Using Wavelet Transform

This paper deals with several methods of edge detection using wavelet transform. MRI imageswere processed by mentioned methods. Image thresholding and median ltering were used forimages preprocessing. Daubechies, Symlet and Coiet function families were studied in thetreatment of real images.

2.1 Simple Method Using Modication of Approximation Coefficients

2D DWT decomposition separates an image into the four parts, each of them contains differentinformation of the original image. Detail coefficients represent edges in the image, approximationcoefficients are supposed to be a noise. A proper modication of approximation coefficients isthe easiest way for edge detection.

2.1.1 Approximation coefficients replaced by zeros

The principle of the simplest method of edge detection is based on replacing of all approximationcoefficients by zeros. This modication removes low frequencies from the image. The image isreconstructed using only the remaining wavelet coefficients. By means of this method the mostexpressive edges are found.

Page 3: 078 Petrova

8/12/2019 078 Petrova

http://slidepdf.com/reader/full/078-petrova 3/5

Figure 2: MR image – an area with a brain tumor: (a) Original image, (b) Edges found byreplacing approximation coefficients by zeros (using Haar wavelet function), (c) Edges projectioninto the original image

2.1.2 Modication of approximation coefficients by simple edge detectors

Another method of edge detection is a modication of approximation coefficients by other simpleedge detector such as Canny, Sobel, Prewitt, etc. [3]. The simple detector is applied to the ap-proximation coefficients obtained in the rst level of decomposition. The image is reconstructedfrom remaining coefficients and from modied approximation coefficients. This method providessufficient results, especially with Canny detector use.

Figure 3: MR image - an area with a tumor: (a) Original image, (b) Edges found by Cannydetector applied to the approximation coefficients, (c) Edges projection into the original image

2.2 Wavelet Transform Modulus Maxima Method

This method was developed by Stephane Mallat [4, 5]. Its principle is based on nding local

maxima of wavelet coefficients (Wavelet Transform Modulus Maxima Method), which repre-sent the edges in the image. The method uses only horizontal and vertical coefficients values(LowHigh and HighLow coefficients 1) from each level of wavelet decomposition.

Page 4: 078 Petrova

8/12/2019 078 Petrova

http://slidepdf.com/reader/full/078-petrova 4/5

Wavelet transform modulus is dened by Eq. (4)

Mf (u,v, 2 j ) = |W 1 f (u,v, 2 j )| 2 + |W 2 f (u,v, 2 j )| 2 (4)

for each pair of horizontal and vertical coefficients |W 1 f (u,v, 2 j )| 2 a |W 2 f (u,v, 2 j )| 2 atthe same position in matrices.

A matrix of the gradient angles for the same pairs of coefficients is evaluated according toEq. (5)

α = arctan(W 2 f (u,v, 2 j )W 1 f (u,v, 2 j )

). (5)

Points in the original image for which values of Mf (u,v, 2 j ) are local maxima in one-dimensional neighborhood in the direction of gradient are supposed to be edge pixels. Thesepoints are distributed according the boundary of important structures in the image. To recoveredges, found individual maxima are chained.

Figure 4: MR image: (a) Original image, (b) Edges found by wavelet maxima using Haar waveletfunction, (c) Edges projection into the original image

3 Results

A comparison of edge detection methods is not easy because of difficult edge determination inthe image. Especially in the medical images there is a lot of textures in the image backgroundthat makes this task ambiguous. Rating of each method is attitudinal. Methods mentioned inpart 2 were tested in the set of the MR images using different wavelet functions.

Methods which use a modication of approximation coefficients, provide the simplest wayto edge detection using wavelet transform. A method using approximation coefficients replacingby zeros nds edges well but edges are bad located, see Fig. 2. This method also locates a lotof false edges coming from textures in the image background.

The method that applies simple detector to approximation coefficients provides betterresults; a dependency upon a detector used must be mentioned, as well. Gradient detectors,such as Sobel or Prewitt, return acceptable edges but these edges are bad located, again thebest results are provided by Canny detector, see Fig. 3.

The Wavelet Transform Modulus Maxima Method nds edges in all directions in image.Its results seems to be not sufficient for edge detection. Although the comparison between

Page 5: 078 Petrova

8/12/2019 078 Petrova

http://slidepdf.com/reader/full/078-petrova 5/5

Figure 5: MR image - an area with the tumor: (a) Original image, (b) Edges found by waveletmaxima using Haar wavelet function, (c) Edges projection into the original image

directions of gradient has been set up very leniently, edges found are not connected, see Fig. 4, 5.A complex wavelet function use could help to improve results of edge detection in real images.

4 Acknowledgement

This work has been supported by the Ministry of Education of the Czech Republic (programNo. MSM 6046137306).

References

[1] Mauro Barni. Document and Image Compression . CRS Press, Taylor and Francis Group,2006.

[2] Al Bovik. The Essentuial Guide to Image Processing . Elsevier, Inc., second edition, 2009.

[3] Rafael C. Gonzalez and Richard E. Woods. Digital Image Processing . Pearson Education,Inc., Upper Saddle River, New Jersey, third edition, 2008.

[4] Stephane Mallat. A Wavelet Tour Of Signal Processing . Academic Press, 1998.

[5] Stephane Mallat and Sifen Zhong. Characterization of signals from multiscale edges. IEEE TRANSACTION ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE , 14(7):23,July 1992.

[6] Truong Q.Nguyen. A tutorial on lter banks and wavelets. University of Wisconsin, ECEDepartment, June 1995.

J. Petrov´a, E. Hos t alkovaDepartment of Computing and Control EngineeringInstitute of Chemical Technology, Prague, Technick´ a 6, 166 28 Prague 6, Czech Republicemail: [email protected], [email protected]