This function adds an ROI toolbar to your figure.
The ROIs are created using matlab buid-in class imroi.
addRoiToolbar: Add an ROI toolbar to the current figure.
addRoiToolbar(h): Add an ROI toolbar to the figure with a handle h.
Example 2 (Multiple images):
Now draw some ROIs,and right click on one of them, you will see more functions in a context menu, such as:
* change color
* x-y plot
Thanks to the "draggable" made by Francois Bouffard, you can drag around the textbox of ROI info.
imdisp is a nice tool to display multiple images in one figure, written by Oliver Woodford
see also: imroi, imrect, imellipse, imfreehand, imline.
Yi Sui (2022). Add an ROI toolbar to your figure (https://www.mathworks.com/matlabcentral/fileexchange/41120-add-an-roi-toolbar-to-your-figure), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!