Point region of interest
The Point
object is a point region-of-interest
(ROI).
To draw the ROI, position the pointer on the image and then click and release. For more information about using the ROI, including keyboard shortcuts, see Tips.
To create a Point
object, use the images.roi.Point
creation function. After creating the object, call the draw
object
function to begin drawing. As a convenience, you can also use the drawpoint
function to create a Point
ROI. The drawpoint
function creates the ROI object and automatically calls the draw
object
function.
creates an instance
of the roi
= images.roi.PointPoint
ROI object with default properties.
creates a roi
= images.roi.Point(ax
)Point
ROI object in the axes specified by
ax
.
sets properties using
name-value pairs. For example, roi
= images.roi.Point(___,Name,Value
)images.roi.Point('Color','y')
sets the
color of the Point
object to yellow. You can specify multiple
name-value pairs. Enclose each property name in single quotes.
addlistener | Create event listener bound to event source |
beginDrawingFromPoint | Begin drawing ROI from specified point |
bringToFront | Bring ROI to front of Axes stacking order |
draw | Begin drawing ROI interactively |
wait | Block MATLAB command line until ROI operation is finished |
The ROI supports the following interactivity, including keyboard shortcuts.
Behavior | Keyboard shortcut |
---|---|
Cancel drawing ROI. | Press Esc. The function returns a valid ROI object with an
empty Position field. |
Move the ROI. | Position the pointer over the ROI. The pointer changes to a circle. Click and drag to move the ROI. |
Delete the ROI. | Position the pointer over the point, right-click, and then choose
Delete Point from the context menu. You can also
delete the ROI programmatically using the delete object
method. |
For information about using an ROI in an app created with App Designer, see Using ROIs in Apps Created with App Designer.
AssistedFreehand
| Circle
| Crosshair
| Cuboid
| drawpoint
| Ellipse
| Freehand
| Line
| Polygon
| Polyline
| Rectangle