圖像幾何變換之平移(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('圖像平移');

實現效果以下:spa

相關文章
相關標籤/搜索