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: