# 基于 ROI 的处理

## 函数

 `AssistedFreehand` Assisted freehand region of interest `Circle` Circular region of interest `Crosshair` Crosshair region of interest （自 R2019b 起） `Cuboid` Cuboidal region of interest （自 R2019a 起） `Ellipse` Elliptical region of interest `Freehand` Freehand region of interest `Line` Line region of interest `Point` Point region of interest `Polygon` Polygonal region of interest `Polyline` Polyline region of interest `Rectangle` Rectangular region of interest
 `drawassisted` Create customizable freehand ROI with assistance from object edges `drawcircle` Create customizable circular ROI `drawcrosshair` Create customizable crosshair ROI （自 R2019b 起） `drawcuboid` Create customizable cuboidal ROI （自 R2019a 起） `drawellipse` Create customizable elliptical ROI `drawfreehand` Create customizable freehand ROI `drawline` Create customizable linear ROI `drawpoint` Create customizable point ROI `drawpolygon` Create customizable polygonal ROI `drawpolyline` Create customizable polyline ROI `drawrectangle` Create customizable rectangular ROI
 `draw` Begin drawing ROI interactively `reduce` Reduce density of points in ROI （自 R2019b 起） `beginDrawingFromPoint` Begin drawing ROI from specified point `inROI` Query if points are located in ROI `bringToFront` Bring ROI to front of Axes stacking order （自 R2019a 起） `wait` Block MATLAB command line until ROI operation is finished （自 R2019b 起）
 `createMask` 从 ROI 创建二值掩膜图像 `roipoly` Specify polygonal region of interest (ROI) `poly2mask` 将感兴趣的区域 (ROI) 多边形转换为区域掩膜
 `regionfill` Fill specified regions in image using inward interpolation `inpaintCoherent` Restore specific image regions using coherence transport based image inpainting （自 R2019a 起） `inpaintExemplar` Restore specific image regions using exemplar-based image inpainting （自 R2019b 起） `roicolor` Select region of interest (ROI) based on color `roifilt2` Filter region of interest (ROI) in grayscale image `reducepoly` Reduce density of points in ROI using Ramer–Douglas–Peucker algorithm （自 R2019b 起）