Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 16212

The Discrete Fourier Transform (DFT) is a mapping between a finite set of discrete points in a (primal) domain (time, space) and the dual frequency domain. DFT requires an input sequence which is discrete, such as a sampling from an analogue audio signal.

2 votes
1 answer
1k views

How to perform a block-wise frequency down-shift?

I'm writing a Python function that shifts the frequency of an audio signal down to a specified range. I perform the downshift by multiplying the time series with a complex exponential, and then low-pa …
orodbhen's user avatar
  • 521
4 votes
Accepted

Computing cross-correlation of two images using OpenCV

DFT int non_zero_rows = ( CORRELATE ) ? … ( img_in.rows + kernel.rows - 1 ) : ( img_in.rows ); cv::dft( dft_buf, dft_buf, 0, non_zero_rows ); cv::mulSpectrums( dft_buf, kernel_dft, dft_buf, 0, CORRELATE ); // Compute IDFT dft( dft_buf, dft_buf …
orodbhen's user avatar
  • 521
5 votes
1 answer
12k views

Computing cross-correlation of two images using OpenCV

I tried flipping the the kernel before computing the DFT, and that produces the correct cross-correlation. … cv::dft( dft_buf, dft_buf, 1, img_in.rows ); cv::mulSpectrums( dft_buf, kernel_dft, dft_buf, 0, CORRELATE ); dft( dft_buf, dft_buf, cv::DFT_INVERSE + cv::DFT_SCALE, kernel.rows/2 + img_in.rows ); int …
orodbhen's user avatar
  • 521