Advertisement
makispaiktis

Tutorial - Image Flip

Aug 9th, 2021 (edited)
1,233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.32 KB | None | 0 0
  1. clc
  2. clear all
  3.  
  4. % 1. Original Photo
  5. A = imread('lena.png');
  6. imageSize = size(A)
  7. figure(1);
  8. title('Original photo');
  9. imshow(A);
  10.  
  11. % 2. Flip vertically
  12. V = flipud(A);
  13. figure(2);
  14. title('Flipped vertically');
  15. imshow(V);
  16.  
  17. % 3. Flip horizontally
  18. H = fliplr(A);
  19. figure(3);
  20. title('Flipped horizontally');
  21. imshow(H);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement