Converting an image to frequency response
古いコメントを表示
Sir, i want to convert a 2D image into its corresponding frequency plot. I tried this code but it is giving a blank graph for all the images.
I= imread('abc.jpg');
grayImage = rgb2gray(I);
subplot(1,2,1);
imshow(grayImage);
axis on;
ft = fftshift(log(abs(fft2(grayImage))));
subplot(1,2,2);
imshow(ft, []);
axis on;
2 件のコメント
gulu
2015 年 1 月 12 日
Image Analyst
2015 年 1 月 12 日
You can use pwelch but I think that may need a 1D signal. Why do you need a different method?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!