MAGIC - MATLAB Generic Imaging Component

Tutorial GUI to demonstrate basic functionality of various controls on the GUI
15.5K Downloads
Updated Tue, 24 Oct 2017 17:34:30 +0000

View License

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.

Cite As

Mark Hayworth (2024). 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
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: export_fig

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.6.0.0

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.

1.5.0.0

Got rid of masking and image analysis to make it simpler for beginners.

1.4.0.0

Updated to add colorbars and renamed from magic to magic_gui to avoid conflict with built-in MATLAB magic() function.

1.3.0.0

Added vertical and horizontal scroll bars.

1.0.0.0