写真からスペクトル波形を描く方法はありますか?
15 views (last 30 days)
Show older comments
写真を読込み横軸周波数または波長、縦軸は振幅値のグラフを作成できますか?
できるのであればその方法を教えてください。
0 Comments
Answers (1)
Kenta
on 6 Aug 2020
rgb = imread('onion.png');
gray = rgb2gray(rgb);
figure;imshow(gray)
F=fft2(double(gray));
power=abs(F);
power_shift=fftshift(power);
figure;imshow(log(power_shift),[])
こんにちは、画像に対するフーリエ変換のことですかね?こちらは、縦軸は振幅ではないのですが、こんな感じの図をイメージしていましたか?2つ目の図は画像を波に分解して、逆にそれを足し合して画像の復元をしている例です。matlab fftなどと調べていただければより詳しい情報が出てくると思います。
See Also
Categories
Find more on 記述統計 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!