Annotate Image Displays and Draw ROIs
Overlay masks and labels on images, and draw regions of interest of many
shapes
The toolbox supports a set of objects that you can use to create ROIs of many shapes, such circles, ellipses, polygons, rectangles, and hand-drawn shapes. After you create the objects, you can modify their shape, position, appearance, and behavior.
Functions
Topics
Specify ROIs
- Create ROI Shapes
ROI objects represent ROIs as geometric and hand-drawn shapes.
Create Interactive ROIs Using Events and Callback Functions
- Subsample or Simplify a Freehand ROI
This example shows how to subsample or reduce the number of points in aFreehandROI object. - Create Freehand ROI Editing Tool
This example shows how to create a simple tool to edit the shape of a freehand ROI using another ROI object. - Use Wait Function After Drawing ROI
This example shows how to define a custom wait function that blocks the MATLAB® command line until you finish positioning a rectangle. - Create Image Comparison Tool Using ROIs
This example shows how to use the new ROI functions to create an interactive image comparison tool.

