Multi ROI/Mask Editor Class

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

You are now following this Submission

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.

Cite As

Jonas Reber (2026). Multi ROI/Mask Editor Class (https://www.mathworks.com/matlabcentral/fileexchange/31388-multi-roi-mask-editor-class), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: register_H

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0