Why are the results produced by fft2 and those produced by fft different?
1 次查看(过去 30 天)
显示 更早的评论
I conducted Fourier transform on an imag through two operations:
Firstly:
pic='pic.jpg';
pic_read=rgb2gray(double(imread(pic)));
results1= fft2(pic_read);
Secondly:
for c=1:size(pic_read,2)
fft_column(:,c)=fft(pic_read(:,c));
end
for r=1:size(pic_read,1)
results2(r,:)= fft(fft_column(r,:));
end
isequal(results1,results2)
ans =
0
I want to know why the results of the two above operations are different ?
Thanks
0 个评论
回答(1 个)
Ahmed raafat
2017-7-30
use tic toc commands
tic
... your code...
t=toc; % time in second
freq=your images/t
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Transforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!