MATLAB: How to get the DC/AC for an image

#image processingpower_conversion_controlpower_electronics_control

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

Best Answer

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()
Related Question