How to integrate discrete values over a known x, y coordinate image
Show older comments
I know a digital image f (x, y), and the corresponding power spectrum is obtained by Fourier transform, but I need to request the integration of the power spectrum in an annular area, I want to use integral2 It is, but I only have the value of f (x, y) and the coordinate value (x, y), I do n’t know how to use double integration。
ps:the power spectrum like this

and I want to integrate the power spectrum in an annular region like this

and the integral is 
I=fftshift(ft2(image);
s_power = abs(I).^2;
But s_powers is (x, y) coordinate, I could not calculate its double integral, ask for help!SOS!
4 Comments
haha mark
on 13 May 2020
John D'Errico
on 13 May 2020
Don't send me direct e-mail as you did, asking me to answer your question. You should have gotten that hint from my profile, the way you did manage to contact me. It specifically asks people not to contract me. If I respond to it, then you learn to pester me for every future question you have about MATLAB or mathematics. That then forces me to add your name to mail filters to delete any future mail from you - now done. So this is now the only time I will respond to you.
I will only say you cannot just use integral/integral2 on an image, or any set of data. A function is required for those tools. Regardless, integral is not the proper tool to integrate a noisy surface, as it would try to chase every bump in the noise. Instead, consider what rectangle rule is, when used on a surface. Don't forget that for a true integral, you must multiply by the area of each element.
haha mark
on 13 May 2020
haha mark
on 13 May 2020
Accepted Answer
More Answers (0)
Categories
Find more on Numerical Integration and Differentiation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
