Translational geometric transformation of the image (of Matlab)

Imread = G ( ' aini555.jpg ' ); 
A = rgb2gray (G); 
SE = Translate (Strel ( . 1 ), [ 80 , 50 ]); 
B = imdilate (A, SE); 
Figure; 
the subplot ( . 1 , 2 , . 1 ), subimage (A); 
title ( ' original image ' ); 
the subplot ( . 1 , 2 , 2 ), subimage (B); 
title ( ' image translation ' );

Achieve results is as follows:

 

Guess you like

Origin www.cnblogs.com/geeksongs/p/11038878.html