MAGIC - MATLAB Generic Imaging Component
Updated 24 Oct 2017
This GUI will help the novice user get up to speed very quickly on using GUI-based applications. Everything is laid out in a very simple Step 1, Step 2, Step 3, etc. layout. It is a very good starting point for a typical image or data file analysis application. This application uses GUIDE to do the user interface design, and has most of the basic controls such as buttons, listboxes, checkboxes, radio buttons, scrollbars, etc. It allows the user to select a folder of images (or other data files), select one or more images or files and display them, to specify a series of options, and to individually or batch process one or more images or data files. The results are optionally sent to Excel. To customize/adapt this GUI, the user should replace the simple demo code (msgbox, etc.) in the function AnalyzeSingleImage() with their own code. Works with Windows or Unix since paths are all forward slashes. The LoadImageList() and DisplayImage() function could be adapted to list and display any type of data file (not just images), for example open CSV files and display them as bar charts or line plots.
Mark Hayworth (2023). MAGIC - MATLAB Generic Imaging Component (https://www.mathworks.com/matlabcentral/fileexchange/24224-magic-matlab-generic-imaging-component), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: export_fig
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.
Updated and made sure it works with R2017b. Still uses set() and get(), instead of modern OOP syntax, so it should still work for those of you with versions older than R2014b.
Got rid of masking and image analysis to make it simpler for beginners.
Updated to add colorbars and renamed from magic to magic_gui to avoid conflict with built-in MATLAB magic() function.
Added vertical and horizontal scroll bars.