imshow for x,y images
Version 1.0.0 (1.68 KB) by Tatiana Latychevskaia
A 2D array image(x,y) is correctly shown by "imshow", so that the coordinates begin at (x=0,y=0) in the bottom left corner
Updated 24 Dec 2021
2D array image(x,y) when shown by using "imshow" command is shown as a matrix so that the first pixel value appears at the left top corner. This code rotates and flips the 2D array image(x,y) so that when the image is shown by using the command "imshow", the coordinates begin at (x=0,y=0) in the bottom left corner which is more conventional for physical coordinate system
Tatiana Latychevskaia (2023). imshow for x,y images (https://www.mathworks.com/matlabcentral/fileexchange/104055-imshow-for-x-y-images), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.