How much should you zero pad an image before taking the fft ?

If i have an image that is 200x200 and I want to take the FFT how much zero padding is required ?

2 件のコメント

David Goodmanson
David Goodmanson 2020 年 3 月 30 日
Hi raheem, for what purpose might you want to use zero padding?
raheem mian
raheem mian 2020 年 3 月 31 日
To calculate a phase correlation

サインインしてコメントする。

回答 (1 件)

Bhargavi Maganuru
Bhargavi Maganuru 2020 年 3 月 31 日
編集済み: Bhargavi Maganuru 2020 年 3 月 31 日

0 投票

If input signal of fft is not in the powers of 2, which is 200 in your case so, you can do zero padding till length is 256.

1 件のコメント

David Goodmanson
David Goodmanson 2020 年 3 月 31 日
編集済み: David Goodmanson 2020 年 3 月 31 日
HI Bhargavi,
could you explain why going to a power of 2 is a good idea, or not?

サインインしてコメントする。

製品

リリース

R2019b

質問済み:

2020 年 3 月 25 日

コメント済み:

2020 年 3 月 31 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by