Code covered by the BSD License  

Highlights from
Add an ROI toolbar to your figure

4.0

4.0 | 1 rating Rate this file 82 Downloads (last 30 days) File Size: 19.5 KB File ID: #41120
image thumbnail

Add an ROI toolbar to your figure

by Yi Sui

 

04 Apr 2013 (Updated 11 Apr 2013)

This function adds an ROI toolbar to your figure.

| Watch this File

File Information
Description

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.

Acknowledgements

Roi Rool, Imdisp, and Draggable inspired this file.

This file inspired Enhanced Dicom Viewer.

Required Products Image Processing Toolbox
MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File  
Everyone's Tags
image processing, roi
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
11 Apr 2013 Yi Sui

arnold, thank you for your feedback.
I updated it to support the live update of histogram.

04 Apr 2013 arnold

Thanks, nice function!

Is there a way you could add a live update for a plot or histogram?

Updates
04 Apr 2013

bug fixes

11 Apr 2013

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.

Contact us