Inverse Discrete Fourier Transform
In the previous lesson, we’ve implemented the Discrete Fourier Transform. Today, we’ll implement its inverse called the Inverse Discrete Fourier Transform (IDFT).
We want to transform the frequency spectrum back to its spatial domain , which is an image. The computation of the IDFT can be easily implemented using following formula
The basis is defined as
Notice that argument of is positive, so it’s different from the basis used in DFT.
To compute the basis, it’s advantageous to use Eulers formula .
Don’t forget that elements in the matrix are complex, so is the basis. Think for a while, what will be the result.
Hint: Use double data type as last time.