IMtoolbar

A self-sufficient script for adding useful tools to any figure window for viewing images
181 Downloads
Updated 2 Feb 2015

View License

The purpose of this function is to add a set of tools for manipulating
images to any MATLAB figure window. These tools are designed to work with
any indexed image, though many of them have use beyond just indexed
images. The tools included are:
(1) image brightness/contrast adjustment
- select tool, click and hold left mouse button to adjust
(2) ROI measurement
- select tool, use left mouse button to draw an elliptical
region of interest (ROI). The mean and standard deviation of
the ROI will be displayed, and will update as the ROI is moved,
similar to impixelinfo.m.
(3) Maximize Axes
- click this tool, and the current axes will be maximized
within the current figure window. Click the tool again to
return the axes to its original size.
(4) Select Colorbar
- click this tool, and a selection of colormaps will appear
from which you can graphically select one. The available
colormaps include stock MATLAB maps as well as a few custom
ones.
(5) Flip Colorbar
- click this tool to quickly and easily invert the current
colormap.
(6) Augment the bottom color of the colormap
- click this tool, and select a color to add to the bottom of
the current colormap. This is useful for situations where you
want a given colormap, but would like to assign an arbitrary
color to low-valued background pixels (example: having a jet
image with black background).
(7) Change the background color of the figure window
- click this and choose a color to graphically change the
current figure window's background color.

------------------
Example:
------------------
figure;
imagesc(imread('mri.tif'));
axis image;
IMtoolbar;

------------------
NOTE: all tools are augmented to the default figure toolbar. If the
figure window is too small to view all tools, some may not be visible
until you enlarge the figure window.
------------------

Cite As

Allen newton (2024). IMtoolbar (https://www.mathworks.com/matlabcentral/fileexchange/49507-imtoolbar), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

description updated. No file changes were made.

1.0.0.0