How can I get the DC/AC for an image?

I want to get DC and AC component of Fourier transform of an image. And calculate their ratio.

 Risposta accettata

Walter Roberson
Walter Roberson il 28 Nov 2016

0 voti

fft of a vector returns a vector. The first element of that output vector is the sum of the DC component over vector. The other elements are the AC components.
Another way of calculating the DC component is mean()

Più risposte (0)

Community

Più risposte nel  Power Electronics Control

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by