Ellipses
R2026bDescription
An Ellipses object labels one or more static ellipses in a
Viewer object. The properties of the object control the appearance and
behavior of the static ellipse annotations.
Static ROIs provide high-performance annotations for images and
volumes you display in a Viewer object using imageshow and
volshow, respectively. Use static ROIs to draw large numbers of ROIs on
a viewer. For best performance, specify all the static ROIs together in a single function call
instead of creating multiple objects. Static ROIs are more efficient than customizable
viewer-based ROIs because they support fewer properties for styling, labeling, and interactions.
For a comparison of static viewer-based ROIs with other ROIs, see Choose Approach to Annotate ROIs in Images.
![]()
Creation
You can create an Ellipses object in these ways. For more information,
see Create Static Viewer-Based ROIs.
Use the
uiannotatefunction to create the ROI and display it in a specified viewer.Use the
images.ui.graphics.roi.static.Ellipsesfunction described here. Display the ROI in a viewer by specifying theParentproperty value as the targetViewerobject during creation. Alternatively, display an ROI after you create it by adding the object to theAnnotationsproperty of aViewerobject.
Syntax
Description
e = images.ui.graphics.roi.static.Ellipses creates an
Ellipses object with default property values. Use
e to query and modify properties of the
Ellipses object after you create it.
e = images.ui.graphics.roi.static.Ellipses(
sets one or more properties using name-value arguments.PropertyName=Value)
Example:
e = images.ui.graphics.roi.static.Ellipses(Position=[10 10 9 3; 20 20 3
9]) creates an Ellipses object consisting of two
ellipse shapes.
Properties
Object Functions
createMask | Create binary mask image from ROI |
Examples
Version History
Introduced in R2026b
