摘要:
clear;clc;width=3;xwidth=(width-1)/2;imgn=imread('1.bmp');imshow(imgn,[]);imgn=double(imgn);[m n]=size(imgn);imgn1=imgn;z=zeros(4,width);tem=1;for i=1+xwidth:1:m-xwidth for j=1+xwidth:1:n-xwidth for k=-xwidth:1:xwidth z(1,tem)=imgn(i,j+k); z(2,tem)=imgn(i+k,j)... 阅读全文
摘要:
clear;clc;width=3;xwidth=(width-1)/2;imgn=imread('1.bmp');imshow(imgn,[]);imgn=double(imgn);[m n]=size(imgn);imgn1=imgn;z=zeros(4,width);tem=1;for i=1+xwidth:1:m-xwidth for j=1+xwidth:1:n-xwidth for k=-xwidth:1:xwidth z(1,tem)=imgn(i,j+k); z(2,tem)=imgn(i+k,j)... 阅读全文