18 views

Uploaded by Helmi Mukti Wijaya

Normalised Cross Correlation

- The Discrete Fourier Transform.ppt
- Time Delay Estimate
- A Novel Image Fusion Method Based on Wavelet Packet Transform
- Wavelet analysis based feature extraction for pattern classification from Single channel acquired EMG signal
- Seismic Array Design by Spatial Convolution.232192733
- 03chapter5.pdf
- Project Proposal Networking
- Early Seizure
- RSP Session Plan-1
- ee168lab6
- IAETSD-Pipelined Parallel FFT Architecture Through Folding Transformation
- 4d5ae8_19c96ce6f5994540ad168cc3797b48f5
- Sampling Theory and Discrete Time Fourier Transform
- “Image Compression Using Discrete Cosine
- 1381506119__Deber%2BNo.%2B2%2Bpara%2Bla%2BSegunda%2BEvaluaci%25C3%25B3n
- 167965744 04 Sonic Calibration and Synthetic Seismogram
- On Volterra Integral Equations
- M Tech. Syllabus
- Performance Analysis of Epileptic EEG Expert System Using Scaled Conjugate Back Propagation Based ANN Classifier
- Linear Elastic Waves (Cambridge Texts in Applied Mathematics) (John G. Harris) 0521643686

You are on page 1of 6

**Image Processing Tools
**

May 2004

Riaan van den Dool

Normalized Cross Correlation

2013/07/26

Page 1 of 6

y under the window containing the feature t positioned at u. For this reason normalized cross-correlation has been computed in the spatial domain. Cross Correlation The use of cross-correlation for template matching is motivated by the distance measure (squared Euclidean distance) (where f is the image and the sum is over x. The new algorithm in some cases provides an order of magnitude speedup over spatial domain computation of normalized cross correlation. If the term the remaining cross-correlation term is approximately constant then (1) 2013/07/26 Page 2 of 6 . see Lewis [1]. 2 THEORY Overview The correlation between two signals (cross correlation) is a standard approach to feature detection as well as a component of more sophisticated techniques. In the expansion of d2 the term is constant. An algorithm for obtaining normalized cross correlation from transform domain convolution has been developed.v).Image Processing Tools – Riaan van den Dool 1 INTRODUCTION The purpose of this document is to examine the theory behind Normalized Cross Correlation as an Image Processing tool and to look at some applications as well as relevance to the thesis proposed by the author. Unfortunately the normalized form of correlation (correlation coefficient) preferred in template matching does not have a correspondingly simple and efficient frequency domain expression. several inexact but fast spatial domain matching methods have also been developed. Textbook presentations of correlation describe the convolution theorem and the attendant possibility of efficiently computing correlation in the frequency domain using the fast Fourier transform. Due to the computational cost of spatial domain convolution.

yielding a cosine-like correlation coefficient (2) where is the mean of the feature and is the mean of f(x.N + 1)2 multiplications. the correlation between the feature and an exactly matching region in the image may be less than the correlation between the feature and a bright spot. The correlation coefficient overcomes these difficulties by normalizing the image and feature vectors to unit length.Image Processing Tools – Riaan van den Dool is a measure of the similarity between the image and the feature. Although it is well known that cross correlation can be efficiently implemented in the transform domain.N + 1)2 additions and N2 ( M . (1) is not invariant to changes in image amplitude such as those caused by changing lighting conditions across the image sequence. We refer to (2) as normalized cross-correlation. The range of c(u.y) in the region under the feature.v) is dependent on the size of the feature. Eq. matching using (1) can fail. Normalized Cross Correlation There are several disadvantages to using (1) for template matching: • • • If the image energy varies with position. the normalized form of cross correlation preferred for feature matching applications does not have a simple frequency domain expression. 2013/07/26 Page 3 of 6 . Normalized cross correlation has been computed in the spatial domain for this reason. For example. Fast Normalized Cross Correlation Consider the numerator in (2) and assume that we have images in which the mean value has already been removed: and (3) For a search window of size M2 and a feature of size N2 (3) requires approximately N2 ( M .

The matlab code is as follows: cc = normxcorr2(chip2. Pairs of chips will now be compared using normalized cross correlation. via the Fourier transform property Implementations of the FFT algorithm generally require that f' and t' be extended with zeros to a common power of two. While faster than direct convolution these algorithms are nevertheless slower than transform domain convolution at moderate sizes and in any case they do not address computation of the denominator of (2). A more high-profile application is in the visual effects processing of movies such as Forrest Gump [1]. (3) is a convolution of the image with the reversed feature t'(-x.2)/2)) ]. The complex conjugate accomplishes reversal of the feature . 4 EXAMPLE This is an example where normalized cross correlation is used in image to image registration. and the direct method is faster than the transform method. imax] = max(abs(cc(:))). and approaches that find a lower point on the O(N2) characteristic of (onedimensional) convolution by embedding sections of a one-dimensional convolution into separate dimensions of a smaller multidimensional convolution. shading flat.imax(1)).1)/2)) (xpeak-ceil(size(cc. Other than for template matching and image registration normalized cross correlation (NCC) has also been used extensively in machine vision for industrial inspection including defect detection in complicated images.chip1).Image Processing Tools – Riaan van den Dool Eq. [ypeak. offset = [ (ypeak-ceil(size(cc. There are several well known ``fast'' convolution algorithms that do not use transform domain computation. surf(cc). These approaches fall into two categories: algorithms that trade multiplications for additional additions. xpeak] = ind2sub(size(cc). [max_cc.-y) and can be computed by (4) where is the Fourier transform. 3 APPLICATIONS Normalized cross correlation is a mathematical computation that fulfills an essential role in image processing. The complexity of the transform computation (3) is then 12 M2 log2 M real multiplications and 18 M2 log2 M real additions/subtractions. When M is much larger than N the complexity of the direct `spatial' computation (3) is approximately N2M2 multiplications/additions. N. A set of ground control point (GCP) chips have been extracted from the images around specific feature points selected by a feature detection algorithm. The transform method becomes relatively more efficient as N approaches M and with larger M. figure. 2013/07/26 Page 4 of 6 .

The basis of the sequential similarity detection algorithm (SSDA) is the observation that full precision is only needed near the maximum of the cross-correlation function. The SSDA algorithm is simple and provides a significant speedup over spatial domain crosscorrelation. and the early termination threshold on this estimate). while reduced precision can be used elsewhere. the following discussion will point out some of the issues involved in various approaches to feature matching. rotation. Snakes (active contour models) have the disadvantage that they cannot track objects that do not have a definable contour. and perspective distortions. Small or (as with SSDA) textured templates result in matching error surfaces with narrow extrema and thus constrain the range of inter-chip translation that can be successfully tracked. bricks. and will conclude that NCC is a reasonable choice for some applications. Active contour models address a more general problem than that of simple template matching in that they provide a representation of the deformed contour over time. Cross-correlation can 2013/07/26 Page 5 of 6 . Successful gradient descent search requires that the inter-chip translation be less than the radius of the basin surrounding the minimum of the matching error surface. These limitations have been addressed in various schemes including some that incorporate NCC as a component. Gradient Descent Search. The computation at a particular location is terminated before completing the sum if the estimate suggests that the location corresponds to a poor match. Cross-correlation can detect objects that deform over time. If it is assumed that feature translation between adjacent frames is small then the translation (and parameters of an affine warp to be applied) can be obtained by gradient descent. it is evident that images containing arrays of objects (pebbles. 5 RELEVANCE TO THESIS It is clear that normalized cross-correlation (NCC) is not the ideal approach to for feature matching since it is not invariant with respect to imaging scale. Another drawback of gradient descent techniques is that the search is inherently serial. Snakes. other textures) can generate multiple narrow extrema in the correlation surface and thus mislead an SSDA approach.Image Processing Tools – Riaan van den Dool It is important to note that chip1 must be larger than chip2 so that chip2 can be searched for the feature in chip1 without clipping parts of the image data near the edges. See Matlab help (normxcorr2) for more information. SSDA performs well when the correlation surface has shallow slopes and broad maxima. An SSDA implementation of cross-correlation proceeds by computing the summation in (1) in random order and uses the partial computation as a Monte Carlo estimate of whether the particular match location will be near a maximum of the correlation surface. A secondary disadvantage of SSDA is that it has parameters that need to determined (the number of terms used to form an estimate of the correlation coefficient. This paper does not advocate the choice of NCC over alternate approaches. Rather. Some ``objects'' do not have a clearly defined boundary (whether due to intrinsic fuzziness or due to lighting conditions). but with obvious and significant qualifications that will not be discussed here. It has the disadvantage that it does not guarantee finding the maximum of the correlation surface. whereas NCC permits parallel implementation. While this condition is probably satisfied in many applications. SSDA. but nevertheless have a characteristic distribution of color that may be detected via cross-correlation.

Multi-resolution techniques require. ideal features are sometimes unavailable and one must resort to poorly defined ``features'' that may have little low-frequency information.P. NCC makes few requirements on the image sequence and has no parameters to be searched by the user.g. 2013/07/26 Page 6 of 6 . and other issues. however. Although the existence of a useful convolution theorem for wavelets is still a matter of discussion (e. 6 REFERENCES http://www. 24 May 2004 [1] Lewis J. whereas this amount of translation could put a snake outside of its basin of convergence. but there are fewer comparisons between approaches. Wavelets and other multi-resolution schemes.. Each of the approaches discussed above has been advocated by various authors. in some schemes wavelet convolution is in fact implemented using the Fourier convolution theorem).html. it is probably fair to say that a suitable replacement has not been universally recognized.: “Fast Normalized Cross Correlation”. that the images contain sufficient low frequency information to guide the initial stages of the search.idiom. NCC can be used `as is' to provide simple feature detection. [11]. such as a configuration of small spots on an otherwise uniform surface. efficient feature detection can be implemented with wavelets and other multi-resolution representations using a coarse-to-fine multiresolution search. or it can be used as a component of a more sophisticated (possibly multi-resolution) matching scheme that may address scale and rotation invariance.com/~zilla/Work/nvisionInterface/nip. as well as an occasional building block in vision and pattern recognition research. We acknowledge NCC as a default choice in many applications where feature detetcion is not in itself a subject of study. As discussed in section 6. The choice of the correlation coefficient over alternative matching criteria such as the sum of absolute differences has also been justified as maximum-likelihood estimation. Despite the age of the NCC algorithm and the existence of more recent techniques that address its various shortcomings.Image Processing Tools – Riaan van den Dool also easily detect a feature that moves by a significant fraction of its own size across chips. feature updating.

- The Discrete Fourier Transform.pptUploaded byladooroy
- Time Delay EstimateUploaded byNgoacmieng
- A Novel Image Fusion Method Based on Wavelet Packet TransformUploaded byMohit Sharma
- Wavelet analysis based feature extraction for pattern classification from Single channel acquired EMG signalUploaded bySachin Sharma
- Seismic Array Design by Spatial Convolution.232192733Uploaded byIndah Permatasari
- 03chapter5.pdfUploaded byraguerre
- Project Proposal NetworkingUploaded byGeorgeAzmir
- Early SeizureUploaded bymagsina
- RSP Session Plan-1Uploaded byMohan Raj
- ee168lab6Uploaded bySureka P
- IAETSD-Pipelined Parallel FFT Architecture Through Folding TransformationUploaded byiaetsdiaetsd
- 4d5ae8_19c96ce6f5994540ad168cc3797b48f5Uploaded byFernando César
- Sampling Theory and Discrete Time Fourier TransformUploaded byBella Dos Santos
- “Image Compression Using Discrete CosineUploaded byEzhilarasan Kaliyamoorthy
- 1381506119__Deber%2BNo.%2B2%2Bpara%2Bla%2BSegunda%2BEvaluaci%25C3%25B3nUploaded byJoseph Guerrero
- 167965744 04 Sonic Calibration and Synthetic SeismogramUploaded byOlimpia Sole
- On Volterra Integral EquationsUploaded byLuis Alberto Fuentes
- M Tech. SyllabusUploaded byrakesh asery
- Performance Analysis of Epileptic EEG Expert System Using Scaled Conjugate Back Propagation Based ANN ClassifierUploaded bymishranamit2211
- Linear Elastic Waves (Cambridge Texts in Applied Mathematics) (John G. Harris) 0521643686Uploaded byOzuyar78

- Contoh Usulan Teknis Pekerjaan Perencanaan JalanUploaded byNynda Erlina
- TOEFL Structure ZicUploaded byHelmi Mukti Wijaya
- Rencana Jadwal Kegiatan PLT Bg 2 NEW.xlsxUploaded byHelmi Mukti Wijaya
- Formulir+Pendaftaran+Jadi+Anggota+KoperasiUploaded byLita Boekand Nita
- diktat_topografi.docUploaded byHelmi Mukti Wijaya
- Time ScheduleUploaded byHelmi Mukti Wijaya
- Leica Cyclone and CloudWorx DS EnUploaded bykakoso74
- Solar Panel SystemUploaded byHelmi Mukti Wijaya
- Modul TopografiUploaded byHelmi Mukti Wijaya
- Anggaran Rumah Tangga Koperasi Aman MandiriUploaded byHelmi Mukti Wijaya
- Davis EllipseUploaded byHelmi Mukti Wijaya
- Tally SheetUploaded byHelmi Mukti Wijaya
- Vii Membuat Aplikasi Demo Webgis Mapserver PostgisUploaded byFaisal Ar Rozi
- LEMBAR PERSETUJUANUploaded byHelmi Mukti Wijaya
- Perda Gumas No.30 Thn 2011-Pengelolaan-Air-TanahUploaded byHelmi Mukti Wijaya
- SNI 19-6728.1-2002 Penyusunan Neraca Sumberdaya Air SpasialUploaded byAkhmad Faishal
- Instalasi & Penggunaan dan cara menginstal MapServer.ppt.pdfUploaded byHarri Yadi

- [4] LED ButtonUploaded bylabirint10
- Soft vs Hard ClusteringUploaded byApoorva Singh
- ggplot2 Essentials - Sample ChapterUploaded byPackt Publishing
- Containerized Docker Application Lifecycle with Microsoft Platform and Tools (eBook).pdfUploaded byCarlos Andres Buitrago
- 8051Uploaded byapi-3801984
- Matlab 1Uploaded byIchwan Setiawan
- Tca Solidworks Installation GuideUploaded byjOBEER
- Reviewer in Dcn_chap10Uploaded byJane Caverte
- SharpcUploaded byAnonymous 7OpaYwj
- (DDR Configuration Guide)Uploaded byAhmed Helmy Hegazy
- Therm -- Knowledge Base Therm 5Uploaded bymc-delas-alas-4129
- INFAUploaded byRom
- A Systematic Literature Review of Frequent Pattern Mining TechniquesUploaded byEditor IJTSRD
- General Fix for USB Driver ProblemsUploaded bygerte_yuew
- Air MouseUploaded byBharat Kashyap
- Assmt-I_AI_(1.3.2016)Uploaded bytamizhanps
- ISO 27001 Control Clauses ListUploaded byrohitas83
- A NOVEL APPROACH FOR SEMI SUPERVISED CLUSTERING ALGORITHMUploaded byeditor3854
- CP ES R73 Media Encryption Admin GuideUploaded byleontebig
- Tree Interview QuestionUploaded bypraveentp88
- matlabUSBReport.pdfUploaded byshahed Iasir
- Romer M. - Web Development With Zend Framework 2 - 2013Uploaded by'Jose Ignacio
- The MOSES Concept - OverviewUploaded byBolarinwa
- OS Qualification Exam_Computing ProblemUploaded bySentheeee
- ManualUploaded bydjuniarto
- PRIVACY PRESERVING USING DATA ANONYMIZATION TECHNIQUE ON HADOOPUploaded byAnonymous vQrJlEN
- VMware® vSAN™ Design and Sizing Guide 6.5Uploaded bygigi_superduru
- Rtc Based _automatic College BellUploaded byPgc Vnb
- 4-IPv4Uploaded byRajBhan
- m terry assignment 4 cs 391Uploaded byapi-359269651