Skip to main content

Questions tagged [correlation]

Correlation or Cross-Correlation is a measure of similarity of two waveforms as a function of a time-lag applied to one of them.

Filter by
Sorted by
Tagged with
22 votes
1 answer
45k views

Difference Between Correlation and Convolution in the Context of Image Processing

Could you please clearly explain what is the difference between correlation and convolution that is done by a filter on an image? I mean in terms of signal processing definition I know that ...
the_naive's user avatar
  • 363
14 votes
2 answers
12k views

Why do we need to conjugate complex signals in autocorrelation and cross correlation

Why is it necessary to conjugate $f(t)$ while performing auto correlation or cross correlation with respect to $g(t)$, if $f(t)$ and $g(t)$ are complex signals?
Vinayak Killedar's user avatar
14 votes
3 answers
2k views

What Does It Mean Exactly When Two Parts of a Signal Are Correlated?

I stumble quite often upon the notion that two or more parts of a signal are correlated to describe semi-formally that they belong together. For example in image processing, two pixels on an edge ...
Lenar Hoyt's user avatar
11 votes
2 answers
2k views

Is a wavelet-based correlation measure worth any additional computational overhead?

I have used both correlation and coherence as measures of correlation between signals. I was thinking that a time-frequency approach would give me the best of these worlds. My question is whether ...
jonsca's user avatar
  • 1,994
10 votes
2 answers
9k views

Phase Correlation - Poor Performance on Noisy/Blurred Images?

I have successfully tested 1D phase correlation algorithm to determine vertical shift between two synthetic images. When I moved to real images, however, it is not able to detect translation at all (...
Libor's user avatar
  • 4,265
10 votes
2 answers
961 views

What is obtained from the cross correlation plot?

Let’s assume that we have two audio signals, x(t) and y(t) affected by the noise as shown below. And we would like to cross-correlate these two signals and the cross-correlation plot is shown as ...
tuner's user avatar
  • 635
9 votes
1 answer
7k views

Auto Correlation vs Cross Correlation vs Convolution and their applications

I know from wikipedia that auto correlation in done on the same signal while cross correlation is done on different signals.But what does this actually imply in terms of application.I can always apply ...
Chirag Ahuja's user avatar
9 votes
1 answer
13k views

Correlation : How is correlation analogous to dot product?

Till now I know correlation tells about similarity. I was watching a video lecture on image similarity in which I came to know that correlation is analogous to dot product. And hence correlation of ...
No Sound's user avatar
  • 171
8 votes
3 answers
10k views

Calculating similarity between two signal plots

I have two plots, each having frequency as x-axis and Gain as y-axis. By taking one data set as a reference I have to calculate similarity between them. The graphs have same values on the x-axis and ...
Animesh Pandey's user avatar
8 votes
2 answers
8k views

Detection of lines in a point cloud

What are the best solutions to detect line in a point cloud? Comparison being made with and between Hough Transform, Radon Transform, RANSAC (see wikipedia) and Brute-Force Search (see wikipedia). ...
Developer's user avatar
  • 1,129
7 votes
2 answers
215 views

Difference between $\mathbb{E}[\mathbf{x} \mathbf{x}^{\rm{H}}]$ and $\mathbb{E}[(\mathbf{x}-\boldsymbol{\mu}) (\mathbf{x}-\boldsymbol{\mu})^{\rm{H}}]$

Let us have a random vector $\mathbf{x} \sim \mathcal{CN} (\boldsymbol{\mu}, \boldsymbol{\Sigma})$ with $\boldsymbol{\mu} \neq \mathbf{0}$. What can we say about the relationship between the elements ...
TheDon's user avatar
  • 171
6 votes
1 answer
855 views

How does DCT decorrelate images?

I've read in multiple places that DCT decorrelates Toeplitz matrices and images usually have Toeplitz structure. Can you explain with an example how DCT decorrelates a Toeplitz matrix? Example for DFT:...
Nagabhushan S N's user avatar
6 votes
6 answers
3k views

Find Short Clip of Audio Within Longer Clip Of Audio

I need help figuring out a way to automatically synchronize two audio files that are both different recordings of the same source. More info below. This example is from a concert, where there is only ...
Mitch Chaiet's user avatar
5 votes
2 answers
6k views

Compressive Sensing - Incoherence Property

Compressive Sensing is built on 2 properties: 1) the sparsity of the representation basis relative to the sampling basis and 2) the incoherence between the singular vectors from each of the 2 bases in ...
val's user avatar
  • 445
5 votes
2 answers
15k views

Applications of Correlation in Signal Processing

There have been discussions on the differences between convolution and correlation, autocorrelation, cross-correlation, et al. In spite of looking at the visualizations, and understanding the formula ...
Raaj's user avatar
  • 295
5 votes
3 answers
15k views

Cross correlate a 2D array

I have a 2D array of eeg data with shape (64,512) - 64 electrodes, 512 timepoints I want to calculate the maximum cross correlation (irrespective of lag/time shift) between every single electrode, so ...
Simon's user avatar
  • 315
5 votes
1 answer
1k views

Maximum cross-correlation coefficient value for time delay estimation

I am using cross-correlation for time delay estimation of two synchronized recordings ($x_1$ and $x_2$) of a fixed sound source from two different locations. I understand that the delay is associated ...
Reveille's user avatar
  • 153
5 votes
1 answer
1k views

Echo cancelling using autocorrelation function

I was given a problem, but I couldn't solve it. I did some research but I still didn't figure it out. Here is the problem: An audio signal $ s(t) $ is generated by a speaker and is reflected against a ...
JohnMarvin's user avatar
5 votes
1 answer
899 views

What is the Fastest Way Ever to Do 2D Correlation?

Here is what i gathered so far: Any sliding window classification, image filtering or similar can be fastly done by a FFT (flip the signal and do convolution). Also, if the template/filter kernel is ...
Pedro Henrique Monforte's user avatar
5 votes
1 answer
1k views

Correlation filter output range normalization

I'm developing correlation filters based image recognition. I implemented MACE correlation filter in matlab: training code: ...
Chesnokov Yuriy's user avatar
5 votes
1 answer
733 views

Finding dependence between two sparse signals

I am new to signal processing and would really appreciate your help. happy to provide more context/details. In my research, I have a system that has many sensors $X_1, \ldots, X_N$ and using this ...
newmathwhodis's user avatar
5 votes
2 answers
2k views

Time Alignment of 2 Sensors Sampling the Same Signal with Different Hardware Delays

I have two radios sampling simultaneously, and I am trying to time-align their two signals (they will always start sampling at slightly different times with random delays due to hardware differences). ...
jstein123's user avatar
  • 165
4 votes
1 answer
21k views

Cross correlation with FFT and fftshift

When I calculate the cross correlation between two vectors with the following code ...
Pedro G.'s user avatar
  • 188
4 votes
1 answer
2k views

what does it mean to have a decorrelated colour space?

I'm working on the problem of colour transfer between images. In the literature there's a common practice that consists in performing the transformations on images in what is called a decorrelated ...
S.E.K.'s user avatar
  • 165
4 votes
1 answer
3k views

Cross-correlation or cross-covariance of non-zero mean signals

Cross-correlation for uniformly sampled signals is defined as [1] $$(f \star g)[n]\ \stackrel{\mathrm{def}}{=} \sum_{m=-\infty}^{\infty} f^*[m]\ g[m+n].$$ Cross-covariance for wide-sense stationary (...
Erik's user avatar
  • 143
4 votes
2 answers
3k views

How to measure the time dependent correlation of two signals

I have two signals (time series) shown in the plot below. Just by looking at the figure, we can see that the two main peaks of both signals are very closely aligned (correlated), however the red ...
vibe's user avatar
  • 290
4 votes
1 answer
6k views

Correlation of two signals at different sample rate

I have a signal $X$ and I want to find signal $Y$ in $X$, I can achieve this by cross-correlation. Signal $X$ is sampled at $8000\textrm{ Hz}$, and $Y$ signal is sampled at $44100\textrm{ Hz}$. My ...
Haris_tech's user avatar
4 votes
1 answer
2k views

Matching masked images

Let's say I have two images that are parts of the same bigger image, cut using two masks (for simplicity, let's assume that the masks are just rectangles of the same size). The images are presumed to ...
Ark-kun's user avatar
  • 143
4 votes
1 answer
300 views

Matching delayed signals

I have pairs of 1d digitised waveform signals which are almost identical - except there are sections which are the same in both but one is delayed slightly. I need to find sections and the delay with ...
Martin Beckett's user avatar
4 votes
1 answer
154 views

Physical interpretation of 4th-order correlations

BACKGROUND: Let's say we have samples of a random process $X(t)$ at two different times, $t_1$ and $t_2$, denoted $X(t_1), X(t_2)$. The values of $X(t)$ represent some voltage-like quantity (i.e. a ...
Robert L.'s user avatar
  • 2,222
4 votes
2 answers
3k views

Signal correlation vs Pearson correlation between signals

I have some data which are the sets of values uniformly distributed along some measure (simple example - along the time intervals). I tested both the coefficients and found the difference, some times ...
user3446122's user avatar
4 votes
1 answer
286 views

Image registration / fusion optimal similarity metrics

I have a theoretical question about optimal similarity metrics for comparing data sets. In reading this linked paper, pp. 488-489 [1], I read the following 2 interesting statements. On page 488: ...
sambajetson's user avatar
4 votes
1 answer
11k views

numpy.correlate and autocorrelation; audio signal

I want to calculate delay between an input and an output audio signal of my audio processing system. The input and output signals are available as signed 16 bit integers. To try out, I tried the ...
Emil's user avatar
  • 41
3 votes
4 answers
5k views

Understanding correlation in image processing using examples

I have been trying to understand the intuition behind the correlation. I understand from this guide that correlation is a way to detect a known waveform in a noisy background. I have seen from this SO ...
mrtpk's user avatar
  • 133
3 votes
1 answer
376 views

Can FFT Substitute Correlation for This Case?

I'm trying to determine frequency of a repeating pattern in a time series. The sampling rate 100Hz and the pattern repeats itself with periods between 0.5 second and 1.25 second. This corresponds to a ...
mostar's user avatar
  • 259
3 votes
2 answers
354 views

Autocorrelation & Cross-Correlation -> Main uses in DSP??

Please help understanding the DSP usage of Autocorrelation & Cross-correlation It seems this is strongly linked to calculating phase offsets, frequency offset for carrier recovery, symbol timing ...
Villere_DSP's user avatar
3 votes
1 answer
763 views

explanation of correlation of stationary stochastic processes

I have some doubts about correlation in stationary stochastic processes. I know that the expectation of a random variable is $$E(x)=\int_{-\infty}^{+\infty} a f_x(...
Andrea's user avatar
  • 539
3 votes
1 answer
330 views

Component of one signal along the another

Whenever we need to find component of one signal along another signal we can do so by the help of dot product. I want to as if this method is valid for all kind of signals. Are there any restrictions ...
bubble's user avatar
  • 133
3 votes
2 answers
109 views

Generalized correlation coefficients

Assume there are given two Gaussian random vectors $\boldsymbol{x}$ and $\boldsymbol{y}$ of equal length $N$ with corresponding means $\boldsymbol{\mu}_x$, $\boldsymbol{\mu}_y$ and covariance matrices ...
Lukas's user avatar
  • 185
3 votes
1 answer
5k views

What is spatial correlation and spatial convolution?

What does the term spatial correlation and spatial convolution mean with respect to digital image processing ?
Suhail Gupta's user avatar
3 votes
2 answers
498 views

Correlation: A Magnitude or Power quantity?

I am confused about the units we would refer to with a correlation result in that if it would be a magnitude or power quantity (and therefore specifically when using ratios in dB would we use 10Log or ...
Dan Boschen's user avatar
  • 53.8k
3 votes
2 answers
979 views

Applying Circular Cross Correlation in MATLAB

I have searched Google for circular cross correlation using Matlab, and I have found it only for one dimensional signals. Could you please help me implementing circular cross correlation between two ...
Noha's user avatar
  • 349
3 votes
2 answers
5k views

Practical advices for applying phase correlation in image registration task

I'm using OpenCV to detect shift between 2 images, here is sample code (based on cv::phaseCorrelate function): ...
mrgloom's user avatar
  • 560
3 votes
1 answer
62 views

Calculating transform for maximum decorrelation?

Suppose you have a set of $n$ sensors with overlapping sensitivities--like the cone cells of an animal retina, which is in fact the sort of system I am trying to model. Given the frequency-response ...
Logan R. Kearsley's user avatar
3 votes
1 answer
189 views

Proving that FFT (and by extension any correlation based estimator) is unbiased

I have a pretty simple question which i should have been able to answer. Just wanted to check if people here have a better solution to it. I am trying to establish that FFT as a frequency estimator (...
Khurram's user avatar
  • 31
3 votes
1 answer
528 views

Using a Wiener Filter to Estimate a Transfer Function

As a follow on Estimate the Transfer Function of an Unknown System which os estimating a transfer function of an unknown system using a Wiener filter, How would you put a minimum MSE criteria on how ...
random_dsp_guy's user avatar
3 votes
1 answer
513 views

How do you find signal similarity when one signal has zero values? Correlation alternative?

I'm using cross-correlation to look for a Barker code in a BPSK signal. It occurred to me that if I send out a zero DC valued signal proceeding the barker code, it won't affect the correlation ...
Dan Sandberg's user avatar
3 votes
2 answers
1k views

Phase Correlation and Negative Shifts

I am implementing phase correlation algorithm to determine shift between two images. It generally works, but I am not sure how to interpret the resulting shift. Pseudocode: ...
Libor's user avatar
  • 4,265
3 votes
0 answers
134 views

Emergence - what constitutes a minimally coherent source that "just begins" to produce stationary interference patterns?

A superposition of two signals with different frequencies will never produce visible (i.e. stationary) interference patterns. Such waveforms will produce spatiotemporal beat patterns, but they rapidly ...
srhslvmn's user avatar
  • 131
2 votes
1 answer
1k views

Can white noise be correlated to a random signal

For an random signal $X$ (does not matter if it is correlated or uncorrelated), given lag $τ$. If white noise is added to this signal, then can the summation of them be a correlated signal? Also, even ...
Panos's user avatar
  • 25

1
2 3 4 5