CATATULANG

Materi Kuliah Teknik Informatika

Fungsi Filter fftshow.m

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;
Bagikan :
+
Previous
Next Post »
0 Komentar untuk "Fungsi Filter fftshow.m"

 
Copyright © 2015 CATATULANG - All Rights Reserved
Template By Kunci Dunia
Back To Top