Main Content

imroi class

(Not recommended) Region-of-interest (ROI) base class

The imroi abstract class and its inherited classes are not recommended. Use new ROI objects instead. For more information, see Compatibility Considerations.

Description

The imroi class is an abstract base class that specifies the Image Processing Toolbox™ interface for working with regions of interest (ROIs). You can use classes that inherit from the imroi interface to create interactive ROIs over an image.

The imroi class is a handle class.

Class Attributes

Abstract
true

For information on class attributes, see Class Attributes.

Creation

The imroi class is abstract, and creating an instance of the imroi class is not allowed. To learn how to create an ROI object from a concrete subclass of imroi, see imellipse, imfreehand, imline, impoint, impoly, or imrect.

Properties

expand all

ROI can be deleted, specified as true or false.

Attributes:

GetAccess
public
SetAccess
public

Data Types: logical

Methods

expand all

Compatibility Considerations

expand all

Not recommended starting in R2018b

Introduced in R2008a