how to plot frequency vs log intensity of a 2D image?
4 次查看(过去 30 天)
显示 更早的评论
The graph should appear as shown in the figure given
2 个评论
回答(1 个)
Image Analyst
2014-2-26
Call fft2 on your image. Take the real part or call abs(). Then take the log and call
imshow(logImage, []);
4 个评论
Image Analyst
2014-3-10
Sansri, I just copied and pasted and it worked fine. It produced this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178027/image.jpeg)
I don't know why you are expecting a graph. It makes an image, not a graph. What did you do to my code to make it not work? You must have done something else besides just copying and pasting that code.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!