In MATLAB, built-in imrotate() function used for rotation of image. Img1 is an array which stores image after resizing operation.Here, 1:2: end describes height range and 1:3: end describes width range. statement img1=img(1:2:end,1:3:end) use to resize an image.img is an array which stores the original image.Img1=img(1:3:end,1:3:end) % image resize operation In MATLAB manually resize of an image, first read the image to be resized and then apply resizing operation on the image. Program (1): img = imread('pout.tif') % image read img is an array which stores image to be displayed.
The MATLAB built-in imshow() function used for displaying the data of the image. We can also display an image using MATLAB.