5.0

5.0 | 6 ratings Rate this file 27 Downloads (last 30 days) File Size: 5.95 KB File ID: #31388
image thumbnail

Multi ROI/Mask Editor Class

by Jonas Reber

 

10 May 2011

This Class allows you to easily define multiple regions of interest (binary masks) with a nice UI.

| Watch this File

File Information
Description

This is a class with a convenient user interface to define multiple region of interest (ROI) masks on a given image.

All the imroi tools (freehand, circle, rectangle, polygon) can be used to define these region(s).

Loading and storing of previously defined ROI masks to and from files is easily done via the UI toolbar.

Multiple regions are labeled using the connected component labeling method (using the MATLAB built-in bwlabel function).

Generated Information:
- Binary Mask (obj.roi)
- Label Mask (obj.labels)
- number of independent regions (obj.number)

You can listen to the object's "MaskDefined" event to retrieve the ROI information generated (obj.getROIData) or get them directly from the objects public properties.

Run the example to see how it works.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File  
Everyone's Tags
connected component labelling, gui, image processing, mask, region of interest, roi
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
26 Feb 2013 Natalia

Excellent, you have save me so much time!!
Really really good!

25 Jun 2012 Felix

very good!

31 Mar 2012 zaidan

nice code

10 Feb 2012 Gregoris

Very nice tool and extremely helpfull.

23 Jun 2011 Damien

The tool itself is very convenient.
Many comments make the code easy to read.
Can also be used as a good tutorial for : GUI, Classes, imroi

I myself was in need of a more versatile tool. For exemple being able to save not only the binary mask but also the imroi shapes themself.
With such a funcionality you can reuse the shapes on another image and modify it if needed.
I implemented this funcionality in an enhanced version of your tool. I may submit it soon

11 Jun 2011 Thiago Lima

Very good and easy to use.

Contact us