当前位置:首页 > 基于matlab的图像分析
课程设计说明书
end for i=1:c1
array(:,i)=transform_fft(array(:,i)); end
function pushbutton4_Callback(hObject, eventdata, handles) image=imread('cj.jpg'); if ndims(image)==3 image=rgb2gray(image); end
axes(handles.four_axes) imshow(image); title('原始图像');
function pushbutton5_Callback(hObject, eventdata, handles) image=imread('cj.jpg'); if ndims(image)==3 image=rgb2gray(image); end
axes(handles.five_axes); F=fft2(image); FC=fftshift(F); S=log(1+abs(FC)); imshow(S,[]); title('内置FFT2结果');
function pushbutton6_Callback(hObject, eventdata, handles) image=imread('cj.jpg'); if ndims(image)==3 image=rgb2gray(image); end
axes(handles.six_axes); F=fft2(image); FC=fftshift(F); S=log(1+abs(FC)); array=ifft2(F);
array=round(abs(array));
24
课程设计说明书
imshow(array,[]); title('内置IFFT2结果'); return
function pushbutton7_Callback(hObject, eventdata, handles) clc; close all ; close (gcf);
25
共分享92篇相关文档