Point
Description
A Point object labels points in a Viewer
object. The properties of the object control the appearance and behavior of the point
annotation.
Viewer-based ROIs provide high-performance interactions with images and volumes you
display in a Viewer object using imageshow and
volshow, respectively. To draw a point on an
imshow image display, use drawpoint
instead.
![]()
Creation
You can create a Point object in these ways:
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
uidrawandimages.ui.graphics.roi.Pointfunctions create ROIs to display in aViewerobject. Viewer-based ROIs provide high-performance interactions with images and volumes you display in aViewerobject usingimageshowandvolshow, respectively. To draw a point on animshowimage display, usedrawpointinstead.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.

