0
$\begingroup$

How do we perform DFT when the input signal depends on 2 variables (like in a image the color of the pixel depends on both $x$ and $y$)

$\endgroup$
5
  • 1
    $\begingroup$ You mean like a Multidimensional DFT ? $\endgroup$
    – Jdip
    Commented Dec 20, 2022 at 13:36
  • $\begingroup$ Yes multidimensional DFT. $\endgroup$
    – Volpina
    Commented Dec 20, 2022 at 13:47
  • $\begingroup$ My answer got answered should I delete the question? $\endgroup$
    – Volpina
    Commented Dec 20, 2022 at 14:08
  • $\begingroup$ No. @Jdip should have actually answered the question, instead of putting the answer in a comment. Stackexchange is here for everyone; don't delete your questions when they get answered! $\endgroup$
    – TimWescott
    Commented Dec 20, 2022 at 18:09
  • $\begingroup$ @TimWescott I wasn’t sure what the question was about, and if indeed the OP was looking for a 2D DFT, didn’t think it was worth a full answer. I’ve seen others put answers in the comments when they’re “obvious” and don’t require detailed explanations. But duly noted! I’ll make sure to actually answer next time, however short the answer is. $\endgroup$
    – Jdip
    Commented Dec 20, 2022 at 18:51

1 Answer 1

3
$\begingroup$

You can take the Fourier transforms in as many dimensions as your problem requires -- just take it on each axis.

So if you have some signal $a(x, y)$, the Fourier transform of it would be

$$A(\omega_x, \omega_y) = \mathcal F_y \{\mathcal F_x \{a(x, y)\}\},$$ where I'm letting $\mathcal F_x$ mean the Fourier transform over $x$ and $\mathcal F_y$ mean the Fourier transform over $y$.

If you work out the math (or satisfy yourself with a bazillion examples) you'll see that the order of operations doesn't matter.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.