Version (1.24 MB) by JKMSMKJ
Corrects perspective in an image.
Updated 30 Oct 2021

View License

This app 'keystone corrects' a given image. Basically, it straightens merging lines to correct perspective as expected in photos of tall buildings, snapshots of display boards shot at an angle, etc. A discussion of the algorithm behind this app is given <a href="">here</a>.
Any feature suggestions or comments are welcome. Thanks for trying the app (if you did, that is) and enjoy (the life, in general)!

Cite As

JKMSMKJ (2024). KeystoneCorrector (, MATLAB Central File Exchange. Retrieved .

Keystone Corrector v2.5.κ.5 (, JKMSMKJ (2021), MATLAB Central File Exchange. Retrieved October 30, 2021.

MATLAB Release Compatibility
Created with R2021b
Compatible with R2019a and later releases
Platform Compatibility
Windows macOS Linux
Find more on Image Processing Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Added missing icon(s) and fixed versioning info!


Updated UI employs minimum width and height of UI components, improving the app resizing experience. All images can now be flipped as well as rotated. The crop options are now available explicitly. Minor tweaks, hopefully, reduced existing bugs.

GUIDE app converted to AppDesigner app. That means a tweaked GUI and a higher chance of buggy behaviour (Let me know if you encounter any). Minor tweaks to the functionality too as in concave regions are recognized better than before (I hope).

Revamped GUI (Draggable quadrilateral corners to select the region to be corrected, Border extent selector, Previews of selected & corrected regions, etc.); Updated algorithm to take care of non-convex regions; Custom crop option.

Cropping algorithm updated; More options for saving an image; Minor GUI & bug fixes.