Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc
- clear all
- % 1. Original Photo
- A = imread('lena.png');
- imageSize = size(A)
- figure(1);
- title('Original photo');
- imshow(A);
- % 2. Flip vertically
- V = flipud(A);
- figure(2);
- title('Flipped vertically');
- imshow(V);
- % 3. Flip horizontally
- H = fliplr(A);
- figure(3);
- title('Flipped horizontally');
- imshow(H);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement