Docsity

Thesis: Fast Image Cross-Correlation with 2D Discrete Hermite Functions, Essays (high school) of Business Administration

Partial preview of the text

Download Thesis: Fast Image Cross-Correlation with 2D Discrete Hermite Functions and more Essays (high school) Business Administration in PDF only on Docsity!

CROSS-CORRELATION OF BIOMEDICAL IMAGES USING TWO DIMENSIONAL

DISCRETE HERMITE FUNCTIONS

A Thesis Presented to The Graduate Faculty of The University of Akron

In Partial Fulfillment of the Requirements for the Degree Master of Science

Nirmala Srinivasan August, 2012

ii

CROSS CORRELATION OF BIOMEDICAL IMAGES USING 2D DISCRETE

HERMITE FUNCTIONS

Nirmala Srinivasan

Thesis Approved Accepted


Advisor Dale H.Mugler Ph.D.

________________________________

Dean of the College Dr.George K. Haritos


Committee Member Narender P.Reddy Ph.D.

________________________________

Dean of the Graduate School Dr. George R. Newkome


Department Chair Daniel B.Sheffer Ph.D.

________________________________

Date

iv

DEDICATION

Dedicated to my parents who have been my greatest source of inspiration

v

ACKNOWLEDGEMENTS

This successful completion of my research and hence my Master’s degree, wouldn’t have been possible without the support and encouragement of the people, mentioned in this section. First and foremost I would like to thank my parents, my two siblings and my brother in law who have always believed in me and have been my pillars of support, all my life. It is my duty to express my greatest gratitude and thank my advisor Dr. Dale H. Mugler for all his patience and support. His encouragement and guidance in every step of the research provided me the confidence to complete this research. I am thankful to almighty for blessing me with an opportunity to work with such a wonderful and kind person. I am grateful to my other two committee members- Dr. Daniel B. Sheffer who is also the chair of the Department of Biomedical Engineering for his timely support and suggestions, and Dr. Narender P. Reddy who has provided invaluable suggestions and has always been extremely supportive. There are few other people I must thank for their invaluable support and love, which has helped me complete my degree:- All my friends, in specific the Akron family which has been my home away home, comprising of all my 8 wonderful friends.

vii

viii

APPENDIX SOURCE CODE .................................................................................... 58

x

  • 2.4 Applications of Cross Correlation
  • III. METHODS
    • 3.1 Cross Correlation in Matlab
      • 3.1.1 Normxcorr2
      • 3.1.2 Xcorr2
    • 3.2 Images for cross correlation
    • 3.3 Cross Correlation of 2D Hermite Functions
      • 3.3.1 Designing 2D Hermite Functions
    • 3.4 Analysis of Cross Correlation of Images
  • IV. RESULTS & DISCUSSION
    • 4.1 Cross Correlation of Hermite Functions
    • 4.2 Distributive Property of Cross Correlation for Sums of 2D Discrete Hermite
    • 4.3 Threshold
    • 4.4 Inverse Hermite Transform
    • 4.5 Hermsum for Cross Correlation
    • 4.6 Peak Displacement
    • 4.7 Conclusions
    • 4.8 Limitations
  • V. FUTURE WORK & APPLICATIONS
    • 5.1 Future Work
    • 5.2 Applications
  • BIBLIOGRAPHY
  • 2.16 Cropped image from Figure 2.11 of size 71 x
  • 2.17 Peak of 1 at X-132, Y-180
  • 2.18 Peak of .34 at X-132, Y-185
  • 2.19 Peak of .26 at X-48, Y-250
  • 2.20 Peak of .25 at X-43, Y-247
  • 2.21 Peak of .29 at X-129, Y-218
  • 3.1 Image of size 60 x
  • 3.2 Image of size 38 x
  • 3.3 Cross correlation result of figure 3.1 and 3.2.............................................................
  • 3.4
  • 3.5 Cropped Image (Smaller Image 161 x 325)
  • 3.6 Larger Image (MRI Brain Slice 515 x 563)
  • 3.7 Cross Correlation output(Size 887 x 675 Shows Peak 1 at (349,555)
  • 4.1......................................................................................................................................
  • 4.2 Pattern i
  • 4.3 Pattern ii
  • 4.4 Pattern iii
  • 4.5 Pattern iv
  • 4.6
  • 4.7
  • 4.8 xi
  • 4.9 A= (3* V0,1 )+(4* V11,9 )
  • 4.10 B= (6* V31,26 )+(4* V5,3 )
  • 4.11 xcorr2(A ,B)
    • (46xcorr2 ( V11,9 , V31,26 )) + (44xcorr2 ( V11,9 , V5,3 )............................................. 4.12 (36xcorr2 ( V0,1 , V31,26 )) + (34 x corr2 ( V0,1 , V5,3 )) +
  • 4.13 Image of size 60 x
  • 4.14 2D DHmt applied on Figure 4.1
  • 4.15 Thresholded image of Figure 4.14
  • 4.16 Original Image (60 x 60)...........................................................................................
  • 4.17 Inverse 2D Hermite transformed image of Figure 4.15
  • 4.18 Image for Cross Correlation (60 x60)
  • 4.19 Second image for Cross Correlation 38 x 38)..........................................................
  • 4.20 Cross Correlation of the original images Peak xpeak- 47 ypeak -57
  • 4.21 Cross correlation obtained using the Hermsum method Peak, xpeak-47 and ypeak-
  • 4.22 Image of size (254 x 254)
  • 4.23 Smaller Image of size (124 x 124)
  • 4.24 Cross Correlation of the original images in figure 4.22 and 4.23

CHAPTER I

INTRODUCTION

1.1 Introduction to the approach The objective of this study is to compute 2D cross correlations in a faster way using pre- computed cross correlations of 2D discrete Hermite functions. This will extend the results obtained from the 1D cross correlation using the Hermite functions [1], assumed to be discrete in the remainder of this paper unless otherwise specified. Fast computation of cross correlation of images using the 2D Hermite functions is the goal of the study. Another objective of this study has been to look into the medical applications of the 2D cross correlation performed. An algorithm that can be fast and efficient in doing the cross correlation is being developed to correlate two medical images using the 2D Hermite functions. Hermite coefficients extract the local orientation and shape information from images [2]. This property can be used along with the cross correlation pattern observed with Hermite functions to determine the cross correlation of two medical images while making it an accelerated technique.

Correlation is widely used as an effective similarity measure in matching tasks [3]. Considering the medical field, correlation of images is still a major method to detect the existence of a part of an image within another. Thus a faster method to perform cross correlation would always be useful and would save a lot of time. An application aimed at

being advantageous with the above mentioned technique would be the correlation of two images to see the hidden pattern in one image with respect to the other. This idea is an inspiration from the similar work done using 1 dimensional Hermite functions for the estimation of respiration rate using ultra wide-band detection and ranging [1]. The idea behind that research was that, the cross correlation of any two digital signals could be done using a novel simplified method of cross correlations of one dimensional discrete Hermite functions and the discrete Hermite transform. The cross correlation was dealt with in the signal processing sense completely. The analysis has been performed only on non-dilated Hermite functions [1]. It was demonstrated that cross correlation can predict the location of a pulse, quite accurately, even when the signal is visually obscured by noise, i.e. the signal to noise ratio is zero decibels. To begin with the 2D analysis, the working of 1D Hermite functions has been understood [1].

This research gave hopes to extend the results obtained in 1D to the next stage, being 2D. Similar results are expected using images and 2D Hermite functions. This analysis dealt with two things basically:  The basic nature of the 2D Discrete Hermite functions and their properties.  The understanding of general cross correlation of images for two images of different sizes, different types and different shifts, etc

An understanding of the above mentioned aspects has been the initial efforts to streamline the analysis for images.

CHAPTER II

LITERATURE REVIEW

2.1 Hermite functions

2.1.1 Continuous Hermite Functions

The continuous Hermite functions are formed by a product of the Hermite Polynomials with the Gaussian function. A generalized definition of Hermite polynomials on the whole real line is given by Rodrigues’ formula [4] (a formula for producing a series of expressions by repeated differentiation of another function)

n (^ ) (^1 ) n t^2 nne t^2 dt

H t   e d  (^ n^  N )^ (2.1)

Here are a few Hermite polynomials derived using this formula

H 0 ( t ) 1 (2.2) H (^) 1 ( t ) 2 t^ (2.3) H 2 ( t ) 4 t^2  2 (2.4) H (^) 3 ( t ) 8 t^3  12 t ` (2.5)

Hermite functions can be subsequently derived [1] using

2 2 2 un ( t ) Hn ( t ) ^1 e ^ t

 (^ n^  N )^ (2.6)

The continuous Hermite function can also be described in a number of different ways, one of them relating to the Hermite polynomials. The continuous Hermite functions have the property of being eigenfunctions of the continuous Fourier transform. Continuous Hermite functions are often represented with a width parameter that can be varied to dilate the basic functions.

2.1.2 Discrete Hermite Functions

Mugler and Clary [5] have found eigenvectors of the centered Fourier matrix, which are efficient to compute. It was found that they provided many properties that were the same as those of the continuous Hermite functions but held true obviously only for digital analysis. As eigenvectors, they satisfy the property [6]

( k  N )^ (2.7)

For k ≥0, Fc is the centered Fourier matrix and uk is the discrete Hermite function, where

. In addition, the set of N discrete Hermite functions forms an orthonormal set

over N dimensions, so that every vector of length N can be perfectly represented by a

linear combination of Hermite basis functions. Pattern registration and matching applications are the recommended applications of these Hermite functions [8]. These functions are localized in space and spatial frequency. These functions are readily organized into discrete orthogonal basis sets [9]. The first several two dimensional discrete Hermite functions used in these experiments for most cases, are shown below as a group. The indices j and k specify the number of zero crossings along the x and y coordinates. Thus refers to a two-dimensional discrete Hermite function designed

as explained in detail in section 3.2.1 in Chapter 3. The rank of this Cartesian function is defined to be equal to j+k. Figure 2.2 below gives a representation of these functions in the form to make Figure 2.1 easier to understand to the reader.

Figure 2.1. The two-dimensional Hermite Functions used in these experiments

Figure 2.2 Corresponding Hermite functions from Figure 2.

These patterns show that the relatively simple plots of the 2D Discrete Hermite functions gradually grow in spatial extent and bandwidth as the rank (as mentioned above) increases. These functions can be constructed efficiently and even to higher orders than what has been shown here. These are some of the basic 2D discrete Hermite functions used in the analysis of cross correlation.

2.1.6 Discrete Hermite expansions

Mugler and Clary [10] have shown that for any finite energy digital signal x of length N , it is possible to obtain a discrete Hermite expansion, which is simply an expansion of the signal in terms of the discrete Hermite functions This expansion is of the form [10]