Add an ROI toolbar to your figure

版本 1.3.0.0 (621.9 KB) 作者: Yi Sui
This function adds an ROI toolbar to your figure.
1.4K 次下载
更新时间 2013/7/18

查看许可证

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 1:
load mri;
imshow(D(:,:,14));
addRoiToolbar;
Example 2 (Multiple images):
load mri;
imdisp(D(:,:,1:8));
addRoiToolbar;

Now draw some ROIs,and right click on one of them, you will see more functions in a context menu, such as:
* change color
* histogram
* x-y plot
* delete

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 (2024). 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. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

参考作品: imdisp, ROIRool, draggable

启发作品: imstack, Enhanced Dicom Viewer

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.3.0.0

Add a slider to adjust the number of bins in histogram

1.2.0.0

Live update for histogram and x-y plot.
Display ROI area in ROI info textbox.
Display distance for line.
Work when there are multiple images in one figure.
Bug fixes.

1.1.0.0

bug fixes

1.0.0.0