Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I1 = imread('20170722.jpg');
- sz = size(I1);
- X = sz(1) / 2;
- Y = sz(2);
- for i=1:X
- for j=1:Y
- I2(i, j) = I1(i, j);
- end
- end
- figure
- subplot(1, 3, 1);
- imshow(I1);
- title('origin');
- subplot(1, 3, 3);
- imshow(I2);
- title('cropped');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement