# Tag Info

### What is the difference between convolution and cross-correlation?

As a student I was involved in the same problem as you are. Let me explain to you in the simplest words without any math. Convolution: It is used to convolute two function. May sound redundant but I´...
Accepted

### Auto Correlation vs Cross Correlation vs Convolution and their applications

I can tell you of at least three applications related to audio. Auto-correlation can be used over a changing block (a collection of) many audio samples to find the pitch. Very useful for musical and ...
Accepted

### perfect sequences

Let $\theta_a$ and $\theta_c$ respectively denote the maximum magnitudes of the off-peak or out-of-phase periodic autocorrelation functions and the periodic crosscorrelation functions of a set of $K$ ...
Accepted

Accepted

### How is cross-correlation related with orthogonality?

I suppose you mean the cross-correlation at lag zero. Well take an Hilbert space $H$ (i.e. a metric space in which you can define a scalar product $\langle\cdot ,\cdot\rangle$). Then $x,y\in H$ are ...
Accepted

Accepted

### Cross correlate a 2D array

What you have (conceptually) is not a 2D array but a collection of 1D arrays. correlate2D is designed to perform a 2D correlation calculation, so that's not what ...

### Pixel Wise Write into a Video File in MATLAB

I assume your matrix is 3D where the first 2 dimensions are Width and Height and the third is time (Gray Scale Video). If you can write your processing as a Filter you can use MATLAB's ...

### When to use cross spectral density versus cross correlation?

The cross-spectral density is in the frequency domain while the cross-correlation function is in the time domain. The two are Fourier Transform pairs, the FT of the cross correlation function is the ...
Accepted

### What Does It Mean When Cross Correlation Between Two Images Occur at Negative Coordinates

It means the best match to template happens outside the image. For instance, let's say your template is 5 by 5. And you got answer which is -1, -1. It means the part of the image which best matches ...
Accepted

### Matched filter and cross correlation in digital processing

I'll illustrate with an example: detecting a rectangular pulse in noise, in Matlab. Let's start with defining the signal that contains the pulse. ...
Accepted

### Maximum cross-correlation coefficient value for time delay estimation

As your plot shows, the second form allows for the correlation peak to be negative. Now, what does a strong negative cross correlation mean? It means the signals are very similar, except one has a ...
Accepted

### How to reliably compute the group delay of a comb filter

Since this is an FIR, the group delay is D=(N-1)/2=20 samples. No, since this is a linear phase (i.e. symmetric or anti-symmetric) filter, the group delay is half the length! (being a FIR isn't ...
Accepted

### Is xcov()More Accurate Than xcorr() to Compute the Cross Correlation of Signals with Non Zero Mean Values?

When trying to measure similarity between signals we're basically building a metric. When doing so we need to ask what we want to be sensitive about. For instance, if you don't remove the DC Component ...
Accepted

I'm afraid your statement isn't true. This can best be seen in a suitable choice of basis, one that simplifies the cross correlation. This basis if of course the shift invariant periodic Fourier basis ...

### Least Squares and Auto and Cross Correlation

Indeed the Linear Least Squares uses the Covariance (Which resembles Cross Correlation) and the Variance (Which resembles the Auto Correlation) for parameter estimation. Let's see that using simple ...
Accepted

### Baseline correlation for template matching

This would be a cumbersome way to detect heart beats (or the QRS complex), if that is what you are trying to do ultimately. A little bit about what you are trying to do currently: Your observations ...