Fungsi FFTSHOW
function fftshow (f, type)
if nargin < 2,
type = 'log';
end
if (type == 'log')
f1 = log (1 + abs(f));
fm = max (f1(:));
imshow (im2uint8(f1/fm))
elseif (type == 'abs')
fa = abs(f);
fm = max (fa(:));
imshow (fa/fm)
else
error ('Typenya harus log atau abs tau!');
end;
0 Komentar untuk "Fungsi FFTSHOW"