ch4_1_7.m

来源:互联网 发布:ubuntu国内更新源 编辑:程序博客网 时间:2024/04/29 11:22
bw = imread('text.png');
a = bw(32:45,88:98);
imshow(bw);
figure, imshow(a);
C = real(ifft2(fft2(bw) .* fft2(rot90(a,2),256,256)));
figure, imshow(C,[])
max(C(:))
thresh = 60;
figure, imshow(C > thresh)
            
0 0