Question: Read the 1024×1024 image named "sar.jpg" in Matlab and assign it to the "img" variable. It is aimed to cut a sub-region in this image. Using the values given in the table, write the Matlab code that will create this sub-region that will be of (m, n) size starting from (x, y) point. Write the codes that show this area on the screen and save it in the file.
My tried code:
img = imread('sar.jpg');img2 = imcrop(I,[234 210 191 130]);subplot(1,2,1)imshow(img)title('orginal image')subplot(1,2,2)imshow(img2)title('Cutting image')
I think, my tried code is not true. If someone help me, i will be very happy.
Best Answer