DFT Formula
N is the size of the sequence. Fundamental Components W = e^[-j*(2pi/N)], W^(-nk) is K subharmonic component.
The relation between Euler Formula and Trigonometric Function is:
e^(it) = cos(t)+i·sin(t)
e^(-it) = cos(t)-i·sin(t)
DFT Code
I deleted my DFT code unconsciously. The code below is downloaded on the Internet. Thanks Calcular
2D-DFT Formula
f(x, y) is a matrix of size MxN, the relation between Euler Formula and Trigonometric Function is:
e^(it) = cos(t)+i·sin(t)
e^(-it) = cos(t)-i·sin(t)
2D-DFT Code
|
|