Advertisement
Ali-S0

otv-crop

Feb 19th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.24 KB | None | 0 0
  1. I1 = imread('20170722.jpg');
  2. sz = size(I1);
  3. X = sz(1) / 2;
  4. Y = sz(2);
  5. for i=1:X
  6.   for j=1:Y
  7.     I2(i, j) = I1(i, j);
  8.   end
  9. end
  10. figure
  11. subplot(1, 3, 1);
  12. imshow(I1);
  13. title('origin');
  14. subplot(1, 3, 3);
  15. imshow(I2);
  16. title('cropped');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement