Multi ROI/Mask Editor Class
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.
Citation pour cette source
Jonas Reber (2024). Multi ROI/Mask Editor Class (https://www.mathworks.com/matlabcentral/fileexchange/31388-multi-roi-mask-editor-class), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > ROI-Based Processing >
Tags
Remerciements
A inspiré : register_H
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
CROIEditor/
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |