Code covered by the BSD License  

Highlights from
roitool

4.5

4.5 | 2 ratings Rate this file 29 Downloads (last 30 days) File Size: 11.33 KB File ID: #9183
image thumbnail

roitool

by Laszlo Balkay

 

29 Nov 2005 (Updated 25 Feb 2008)

Interactive roi definition tool

| Watch this File

File Information
Description

ROITOOL enables to define different type of rois on images (intensity, RGB) by mouse. The supported types are 'polygon', 'circle' and 'rectangle'. ROIPOLY returns the handler of the line object relating
 to the roi. The created roi can be dragged and moved to any position of the image with the help of DRAGGABE function (developed by Francois Bouffard, see the help of draggable).

ROITOOL generates a context menu to the roi making possible the selection of the following commands:(MATLAB displays the context menu whenever you right-click over the object)

- change the roi color
- change the size of the line width
- switch on/off the 'statistical bar', which displays the main stat. results of the roi (mean, std, min, max, roi area)
- switch on/off the 'histogram figure', which shows the intensity histogram of the pixels belonging to the roi
- switch on/off the 'detailed rectangle' figure, which plots the zoomed image segment defined by the rectangle roi
- resize the roi (in case of circle or rectangle roi)
- delete the roi

ROITOOL('circledemo'), ROITOOL('rectangledemo') or ROITOOL('polygondemo')

start the roi definition using the MATLAB 'MRI' data set.
  
Installing, running: unzip the downloaded file and include them to your matlab path

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
draggable

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
19 Mar 2006 A B

what sure i put in for arg1,2 and 3? help, please

12 Jul 2006 S C

the POLY2MASK sub-function is undefined, why?
help please!

12 Jul 2006 Laszlo Balkay

Comments to se_chaf@yahoo.fr

The POLY2MASK sub-function is part of the image processing toolbox, which is required for ROITOOL. (see the detailed description above)
 

04 Dec 2007 Gal Haspel

did not work at first. error when calling "var". I had to change lines 286 and 370 to
roistd = std(double(userdata.currentimage(pixel_range)));

after that, it's useful and nice. thanks a lot!

26 Jan 2009 winnie

I tried this tool today, but I could not retrieve the output. All it gave me was a single number... Any ideas? I need an output telling me the ROI co-ordinates!

14 Feb 2009 Laszlo Balkay

Comment to Winnie: You can get the ROI handler issuing (for example) ">> roi_handler = roitool('circledemo');" and the ROI coordinates can be import by "x = get(roi_handler,'Xdata');
y = get(roi_handler,'Ydata');"

 
 

22 Aug 2011 Soha

I've tried this around a week ago and it's great. I would like to retrieve the histogram data, anyway I could do this? (pixels values in the area chosen)

22 Aug 2011 Soha  
Please login to add a comment or rating.
Updates
25 Feb 2008

ROI definition can be done on RGB image also. Some bugs has been fixed.

Tag Activity for this File
Tag Applied By Date/Time
image analysis Laszlo Balkay 22 Oct 2008 08:08:04
roi circle rectangle polygon Laszlo Balkay 22 Oct 2008 08:08:04
analysis Cristina McIntire 07 Nov 2008 11:40:35
image Cristina McIntire 07 Nov 2008 11:41:29

Contact us at files@mathworks.com