主要内容

注解图像显示并绘制 ROI

在图像上叠加掩膜和标签,并绘制多个形状的感兴趣区域

工具箱支持一组对象,您可以使用这些对象创建许多形状的 ROI,例如圆形、椭圆形、多边形、矩形和手绘形状。创建对象后,您可以修改其形状、位置、外观和行为。

函数

全部展开

imoverlay将二值掩膜刻入二维图像
labeloverlayOverlay label matrix regions on 2-D image
uipaintDraw using paintbrush in viewer window (自 R2026a 起)

绘制 ROI 形状

uidrawInteractively draw ROI in viewer window (自 R2026a 起)

ROI 形状

AngleAngle annotation (自 R2026a 起)
CircleCircle annotation (自 R2026a 起)
EllipseEllipse annotation (自 R2026a 起)
FreehandFreehand annotation (自 R2026a 起)
LineLine annotation (自 R2024a 起)
PointPoint annotation (自 R2024a 起)
PolygonPolygon annotation (自 R2026a 起)
PolylinePolyline annotation (自 R2026a 起)
RectangleRectangle annotation (自 R2026a 起)

绘制 ROI 形状

drawassistedCreate customizable freehand ROI with assistance from object edges
drawcircleCreate customizable circular ROI
drawcrosshairCreate customizable crosshair ROI
drawcuboidCreate customizable cuboidal ROI
drawellipseCreate customizable elliptical ROI
drawfreehandCreate customizable freehand ROI
drawlineCreate customizable linear ROI
drawpointCreate customizable point ROI
drawpolygonCreate customizable polygonal ROI
drawpolylineCreate customizable polyline ROI
drawrectangleCreate customizable rectangular ROI

ROI 形状

AssistedFreehandAssisted freehand region of interest
CircleCircular region of interest
CrosshairCrosshair region of interest
CuboidCuboidal region of interest
EllipseElliptical region of interest
FreehandFreehand region of interest
LineLine region of interest
PointPoint region of interest
PolygonPolygonal region of interest
PolylinePolyline region of interest
RectangleRectangular region of interest

自定义 ROI 形状

draw开始以交互方式绘制 ROI
reduceReduce density of points in ROI
beginDrawingFromPointBegin drawing ROI from specified point
inROIQuery if points are located in ROI
bringToFrontBring ROI to front of Axes stacking order
waitBlock MATLAB command line until ROI operation is finished

主题

指定 ROI

使用事件和回调函数创建交互式关注区域

精选示例