Prerequisite: Image representation in MATLAB
In MATLAB, Images are stored in matrices, in which each element of the matrix corresponds to a single discrete pixel of the image. We can flip the given image vertically (along the x-axis), if we reverse the order of the pixels (elements of the matrix) in each column as illustrated in the below image.
Code #1: Using MATLAB Library function
Code #2: Using matrix manipulation
Code #3: Using matrix manipulation (Using loops)
- Read the source image file in MATLAB environment
- Get the Dimensions of the image matrix
- Reverse the order of the elements of each column in every image plane
- Display the water image (vertically flipped image).
Below is the implementation of the above approach:
- Flip image across Secondary Diagonal in MATLAB
- MATLAB | Converting a Grayscale Image to Binary Image using Thresholding
- MATLAB | RGB image to grayscale image conversion
- Image Complement in Matlab
- MATLAB | RGB image representation
- Matlab | Erosion of an Image
- Matlab | Dilation of an Image
- Image Resizing in Matlab
- Create Mirror Image using MATLAB
- LSB based Image steganography using MATLAB
- Extract bit planes from an Image in Matlab
- MATLAB | Complement colors in RGB Image
- MATLAB | Complement colors in a Grayscale Image
- MATLAB | Complement colors in a Binary image
- MATLAB | Display histogram of a grayscale Image
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.