pkg load image clear clc I = imread('lena.bmp'); Ileft = I(:, 1:128); Iright = I(:, 129:256); I2 = I; for i = 1 : 3 Ileft = imrotate(Ileft, 120, 'bilinear'); end for i = 1 : 10 Iright = imrotate(Iright, 36, 'bilinear'); end IleftCrop = Ileft(120:375, 188:315); IrightCrop = Iright(2652:2907, 2715:2842); Irotated = [IleftCrop IrightCrop]; subplot(2,2,1), imshow(I,[0 255]), title('Original') subplot(2,2,2), imshow(Ileft,[0 255]), title('Rotated 3x120') subplot(2,2,3), imshow(Iright,[0 255]), title('Rotated 10x36') subplot(2,2,4), imshow(Irotated,[0 255]), title('Merged')