Point
R2026bDescription
A Point object labels interactive points in a
Viewer object. The properties of the object control the appearance and
behavior of the point annotation.
Interactive viewer-based ROIs enable you to draw, edit, and
measure regions of interest on images and volumes displayed using imageshow
and volshow. Interactive ROIs support dragging, resizing, event callbacks,
and measurement labels. Use interactive viewer-based ROIs to manually annotate an image, build
annotation workflows in apps, or respond to user interactions with ROI shapes. For a comparison
of interactive viewer-based ROIs with other ROIs, see Choose Approach to Annotate ROIs in Images.
![]()
Creation
You can create a Point object in these ways. For more information, see
Create Interactive Viewer-Based ROIs.
Interactively draw a point in a
Viewerobject. From the viewer toolbar, select the draw annotations icon
, then select the draw point icon
. Click to place the point.To export the point to the workspace as a
Pointobject, right-click the point and select Export annotation to workspace.Use the
uidrawfunction to interactively draw the ROI in a specified viewer and create the ROI object.Use the
images.ui.graphics.roi.Pointfunction described here. After you create the ROI, you can display it by adding the object to theAnnotationsproperty of aViewerobject.
Description
p = images.ui.graphics.roi.Point creates a Point
object with default property values. Use p to query and modify
properties of the Point object after you create it.
sets one or more writeable properties using name-value
arguments.p = images.ui.graphics.roi.Point(Name=Value)
Example:
images.ui.graphics.roi.Point(Position=[35 3 1012]) creates a point
annotation at the xyz-coordinates (35, 3, 1012).
Properties
Object Functions
createMask | Create binary mask image from ROI |
Examples
Tips
The
Pointobject supports these forms of interactivity.Behavior Interaction Add annotation From the viewer toolbar, select the draw annotations icon
, then select the draw point icon
. Click to place the point.Move annotation Drag the vertex of the annotation, not the label. Edit annotation label Right-click the vertex of the annotation, not the label. From the context menu, select Edit label. When the label text highlights, type new text for the label. To finish editing, click outside the label. Remove annotation Right-click the vertex of the annotation, not the label. From the context menu, select Remove annotation. Select Remove all annotations to remove all annotations in the viewer. When placing annotations, consider zooming in or, for 3-D viewers, snapping to an orthogonal view for greater spatial accuracy. Zoom in using the scroll wheel, or by selecting the zoom icon
from the viewer toolbar. Snap to an orthogonal view by
clicking the orientation axes labels in the lower-left corner of the viewer.

