G=imread('aini555.jpg'); A=rgb2gray(G); se=translate(strel(1),[80,50]); B=imdilate(A,se); figure; subplot(1,2,1),subimage(A); title('原图像'); subplot(1,2,2),subimage(B); title('图像平移');
实现效果如下:
G=imread('aini555.jpg'); A=rgb2gray(G); se=translate(strel(1),[80,50]); B=imdilate(A,se); figure; subplot(1,2,1),subimage(A); title('原图像'); subplot(1,2,2),subimage(B); title('图像平移');
实现效果如下:
转载于:https://www.cnblogs.com/geeksongs/p/11038878.html