图像几何变换之平移(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('图像平移');

实现效果如下:

 

posted @ 2019-06-17 11:42  Geeksongs  阅读(1754)  评论(0编辑  收藏  举报

Coded by Geeksongs on Linux

All rights reserved, no one is allowed to pirate or use the document for other purposes.