图像几何变换之平移(Matlab)

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('图像平移');

实现效果如下:

猜你喜欢

转载自www.cnblogs.com/geeksongs/p/11038878.html