You are on page 1of 7

SIMULINK MODELLING OF RADON AND WAVELET TRANSFORMS FOR IMAGE FEATURE EXTRACTION

A. Gavlasov a, A. Proch azka Institute of Chemical Technology, Department of Computing and Control Engineering
Abstract Image analysis, de-noising, segmentation, feature extraction and classication form very important research topics of image processing. The paper is devoted to the rotation and translation invariant image transforms analysis and their use for image enhancement and features extraction. A special attention is paid to the two-dimensional Radon and wavelet transforms forming fundamental mathematical tools in these areas. Results are veried in the Simulink environment both for simulated data and for analysis of magnetic resonance biomedical images.

Introduction

The paper is devoted to the designing and creating of systems in the Simulink environment. These systems allow features extraction by blocks of Radon transform, wavelet transform and blocks of image preprocessing. Individual features are obtained by connection of these blocks using a wavelet decomposition block into the second level. Two features obtained by this decomposition are sum of squared image component coecients evaluated in the rst and the second decomposition level by high-pass lters both for image columns and rows. Results of features variance with application of dierent methods are displayed both graphically and in the tables.

Basic Properties and Implementation of Radon Transform

Radon transform forming a very important mathematical tool used in tomography is based upon works of Johann Radon born in 1887 Litom e rice. His doctoral dissertation has been defended in Vienna in 1910 and his most appreciated works were devoted to integral geometry. The Radon transform [1] belonging to this category introduced in 1917 is dened as a collection of 1D projections around an object at angle intervals . The Radon transform of a two-dimensional (2-D) function f (x, y ) is dened as
+ +

R(, r)[f (x, y )] =

f (x, y ) (r x cos y sin )dxdy

(1)

where r is the perpendicular distance of a line from the origin and is the angle formed by the distance vector.
(a)
2

(b)

r perpendicular distance

20

40

60

80

Figure 1: Figure presents (a) an example of a set of parallel lines for a chosen = 45 in the (x, y ) plane and (b) the localization of corresponding points in the (, r) plane in which the discrete Radon transform is evaluated

100

120

140

160

180

For the constant value of the set of parallel lines for dierent values of r are presented in Fig. 1(a). The parallel lines are used for the integration of the given image. The plane (x, y ) is transformed in this way to the plane (, r). The transformation proceeds by integration of the given image along parallel lines in the plane (x, y ) and resulting value is then marked in the graph as a point for a given and r as depicted in Fig. 1(b). Each point has a dierent intensity of color, depending on its value, having value 0 corresponding to black and 1 corresponding to white color presented in Fig. 3(b). A discrete Radon transform called Hough transform has been introduced in 1972 by R. Duda and P. Hart [3] as a tool for image features extraction.

2.1

Simulation of Radon Transform in Simulink Environment

In the Simulink environment there is no block for the Radon transform. A general block called Matlab function can be used instead. This block has a single input and single output. Parameters of this block include: name of existing function of Matlab library or name of the created function as M-le output dimensions specied for returned single value choice to Collapse 2-D results to 1-D The Matlab function or M-le use every Matlab function block for processing of the input value. Fig. 2 presents block diagram of the direct and inverse Radon transform of MR image and visualization of Radon transform image. Input image is loaded as a constant and output variable is frame-based. Input image and images after transformation are visualized in the matrix viewer presented in Fig. 3 and sent to workspace.
DIRECT AND INVERSE RADON TRANSFORM MATLAB Function Radon Transform MATLAB Function Image Transformation from 0 to 1

S Input Image

IR1 Output Image

MATLAB Function

IR

Inverse Output Radon Transform Image1

Figure 2: Block diagram of the proposed technique

(a)
20
Yaxis
Yaxis

20 40

(b)

20 40 60 80 100
50 100 150

(c)

40 60 80 100

60 80 100 120 140

20

40

60

80

100

20

40

60

80

100

Figure 3: Visualization of (a) input MR image rotated by = its (b) Radon transform depicted as points for = 0 180 and for the same r for each , and (c) inverse Radon transform

90 ,

Principles of Image Wavelet Decomposition

Wavelet functions used for signal analysis are derived from the initial function W (t) forming basis for the set of functions 1 1 (2) Wa,b (t) = W ( (t b)) a a for discrete parameters of dilation a = 2m and translation b = k 2m . Wavelet dilation, which is closely related to spectrum compression, enables local and global signal analysis. The principle of signal and image decomposition and reconstruction for resolution enhancement is presented in Fig. 4.
DECOMPOSITION STAGE D
Original signal or image

RECONSTRUCTION STAGE U U
Final Final Final signal signal signal or or or image image image

D D U

[g(n,m)]

[z(n,m)] [z(n,m)] [z(n,m)]

D D D
Column convolution and downsampling Row convolution and downsampling

U U U
Row convolution and upsampling Column convolution and upsampling

D.1

D.2

R.1

R.2

Figure 4: Mallat diagram for image decomposition and reconstruction The decomposition stage results in this way in four images representing all combinations of low-pass and high-pass initial image matrix. The reconstruction stage includes row upsampling at rst and row convolution in stage R.1. The corresponding images are then summed. The nal step R.2 assumes column upsampling and convolution with reconstruction lters followed by summation of the results again. In the case of one-dimensional signal processing, steps D.2 and R.1 are omitted.

3.1

Simulation of Wavelet Transform in Simulink Environment

Wavelet transform diagram was created with blocks of Simulink library. Block DWT computes the discrete wavelet transform using a lter bank with specied highpass and lowpass lters. The lters can be user-dened or formed by wavelets of the Wavelet Toolbox. The output is set to Multiple ports. It enables to see each subband as a frame-based vector or matrix. The common block Transpose enables matrix transposition. In our diagram it enables matrix transposition after column downsampling to proceed row decomposition. We transpose matrix after the row decomposition to visualize matrix right. Diagram for one decomposition and reconstruction levels is presented in Fig. 5.
highpass filter HP lowpass filter LP TRANSPOSE HP
In1 Out1

1. DECOMPOSITION LEVEL
HP
In1 Out1

1. RECONSTRUCTION LEVEL
1 Out1 2 Out2

DWT 1: Asym ROW DWT

1 In1 2 In2

TRANSPOSE7 IDWT 1: Asym ROW IDWT2 IDWT 1: Asym IDWT 1: Asym ROW IDWT3
In1 Out1 In1 Out1 In1 Out1

LP
In1 Out1

In1

1 In1

DWT

In2

1 Out1

MATRIX CONCATENATE LP
In1 Out1

HP
In1 Out1

DWT LP 1: Asym ROW DWT1


In1 Out1

3 Out3 4 Out4

3 In3 4 In4

1: Asym TRANSPOSE1 COLUMN DWT

COLUMN IDWT1

TRANSPOSE8

Figure 5: Figure presents connection of individual Simulink blocks which create one level of wavelet decomposition and reconstruction

The whole diagram for image decomposition into the second level and its reconstruction is presented in Fig. 6.
DECOMPOSITION INTO 2. LEVEL
1. LEVEL
In1 Out1 In1 Out2 Vystup2 In1 Out3 In1 Out4 In1 In1 In2 In4 In3 In5 In6 In3 In1

RECONSTRUCTION FROM 2. LEVEL


1. LEVEL

In2 Out1 In1

In4

INPUT

2. LEVEL DECOMPOSITION INTO 1. LEVEL


Out1 In1 In1

In7

2. LEVEL

RECONSTRUCTION FROM 1. LEVEL

Subsystem
In1 In1

Out2 In1 Out3 In1 Out4 In1

In2 Out1 In3

In4

DECOMPOSITION INTO 2. LEVEL

RECONSTRUCTION FROM 2. LEVEL

Figure 6: The simulink diagram for wavelet transform decomposition and reconstruction applied to two levels Diagram was applied to a MR image. Resulting images from the matrix viewer are depicted in Fig. 7.
(a)
100 100

(b)
100

(c)

200

200

200

300

300

300

400

400

400

500 100 200 300 400 500

500 100 200 300 400 500

500 100 200 300 400 500

Figure 7: Visualization of (a) input MR image, its (b) wavelet decomposition, and (c) image wavelet reconstruction Block diagrams mentioned above have been created to obtain denition of features of rotated images. We compare the standard deviation (STD) of the sum of squared diagonal DWT transform coecients in the rst and the second decomposition levels using MR images obtained by rotation from 0 to 180 degrees with step 10 using (i) diagram with the plain DWT, (ii) diagram for the Radon transform (RT) followed by the DWT diagram. Computed values of STD are displayed in Tab. 1. Table 1: Table presents STD computed from rotated MR image features STD of MR Image Features Feature-1 Feature-2 DWT 0.0013 0.0254 RT-DWT 2.97 105 0.0023

Application to Image De-noising

The last step for image features extraction is based upon the connection of blocks for Image preprocessing, followed by Radon transform and Discrete wavelet transform application. Diagram of Image preprocessing presented in Fig. 8 enables image enhancement using thresholding. For thresholding we compute or select level of threshold, according to whose we can modify wavelet coecients. They arise after wavelet decomposition into the selected level by using at least one highpass lter. In the Simulink environment a chosen threshold is applied through the block called Dead zone. Output is zero for inputs within the dead zone.
DECOMPOSITION INTO 2. LEVEL
1. LEVEL
In1 Out1 In1 Out2 Vystup2 In1 Out3 In1 Out4 In1 In1 In2 In4 In3 In5 In6 In3 In1

RECONSTRUCTION FROM 2. LEVEL


1. LEVEL DEAD ZONE

In2 Out1 In1

In4

INPUT

2. LEVEL DECOMPOSITION INTO 1. LEVEL


Out1 In1 In1

In7

2. LEVEL

RECONSTRUCTION FROM 1. LEVEL

Subsystem
In1 In1

Out2 In1 Out3 In1 Out4 In1

In2 Out1 In3

In4

DECOMPOSITION INTO 2. LEVEL

DEAD ZONE RECONSTRUCTION FROM 2. LEVEL

Figure 8: Simulink diagram for Image preprocessing using wavelet transform decomposition, dead zones for modication of wavelet coecients and reconstruction applied to two levels
System for obtaining Features of Rotated Image after Radon Transform followed by DWT Transform

Out1

0.03738 F1

S Input Image

In1

Out2

Out3

0.1781 F2

System for obtaining Features of Rotated Image after DWT Transform

Out1

0.1734 F3

In1

Out2

Out3

0.8553 F4

Horiz Cat

System for obtaining Features of Rotated Image after Image Preprocessing followed by Radon Transform and DWT Transform

DWT; RTDWT

0.9518 Horiz Cat MATLAB Function DWT; RTDWT; Prepr.RTDWT Features, plot 0.193 0.1982 0.0416 0.1248 0.01685 Normalized Features F4,F3,F2,F1,F6,F5

Out1

0.01514 F5

In1

Out2

f
Out3

0.1121 F6

Figure 9: Image features extraction using proposed methods Fig. 9 presents the whole diagram of three connected proposed methods. This diagram allows rotated image features extraction by using all the proposed methods. Process of image

rotation and features extraction in each step is vizualized and resulting features are in each step depicted in a graph. Results of computed STD are presented in Tab. 2 and compared. Table 2: Comparison of standard deviation (STD) of the sum of squared diagonal DWT transform coefficients in the first and the second decomposition levels using images obtained by rotation from 0 to 180 degrees with step 10 using (i) the plain DWT, (ii) the Radon transform (RT) followed by DWT, and (iii) the RT applied to the preprocessed a image (Pre) followed by the DWT STD of MR Image Features Feature-1 Feature-2 DWT 0.0013 0.0254 5 RT-DWT 2.97 10 0.0023 Pre-RT-DWT 1.4 105 0.0016

Results

Thanks to the objective confrontation of STDs, Tab. 2 is the bright example that the Radon transform is a powerful tool expressively contributing to image analysis. The improvement of the STD between the plain DWT and RT-DWT by an order has been veried. We achieved also a small improvement by denoising of the magnetic resonance image. Therefore image enhancement is very desirable here. Image preprocessing allows further research devoted to the optimization of wavelet coecients thresholding to denoise the original image. Apparently in Fig. 10 the recommended connection of Radon and wavelet transforms dramatically keep down the features variance inuenced by image rotation. If we moreover add the image preprocessing results are even better visible. Together with the visual comparison the concrete numerical results obtained point to the eciency of the proposed method as presented in Tab. 2.
IMAGE FEATURES DWT 0.8 0.7 0.6 STD = 0.14007 0.21416 RTDWT 0.8 0.7 0.6 STD = 0.00710 0.03400 PreRTDWT 0.8 0.7 0.6 STD = 0.00346 0.02449

Feature(:,2)

Feature(:,2)

0.5 0.4 0.3 0.2 0.1 0.6 0.7 0.8 0.9 Feature(:,1)

0.5 0.4 0.3 0.2 0.1 0.6 0.7 0.8 0.9 Feature(:,1)

Feature(:,2)

0.5 0.4 0.3 0.2 0.1 0.6 0.7 0.8 0.9 Feature(:,1)

Figure 10: Results of feature extraction methods applied to real MR image obtained by image rotation from 0 to 180 with step 10 Feature values presented in Fig. 10 are normalized to the unit circle to have a better comparison of clusters of image features and to allow their subsequent classication by selforganizing neural networks [2] into the given number of classes. The proposed method of image features extraction allows the estimation of the rotation invariant image features and moreover it is very exible as it allows the use of dierent wavelet functions and dierent rotation steps in case of the Radon transform. It is assumed that further studies will be devoted to feature based image segmentation and further methods of rotation and translation invariant feature selection using appropriate image transforms.

Acknowledgments
The work has been supported by the research grant of the Faculty of Chemical Engineering of the Institute of Chemical Technology, Prague No. MSM 6046137306.

References
[1] R. N. Bracewell. Fourier Analysis and Imaging. Kluwer Academic Press, 2003. [2] D. I. Choi and S. H. Park. Self-Creating and Organizing Neural Networks. IEEE Trans. Neural Networks, 5(4):561575, July 1994. [3] R. O. Duda and P. E. Hart. Use of the Hough Transformation to Detect Lines and Curves in Pictures. Comm. ACM, 15(1):1115, 1972.

Ing. Andrea Gavlasov a, Prof. Ale s Proch azka Institute of Chemical Technology, Prague Department of Computing and Control Engineering Technick a 1905, 166 28 Prague 6 Phone: 00420-220 442 970, 00420-220 444 198 E-mail: Andrea.Gavlasova@vscht.cz, A.Prochazka@ieee.org

You might also like