# 形态学运算

## 函数

 `imerode` 腐蚀图像 `imdilate` 膨胀图像 `imopen` 对图像执行形态学开运算 `imclose` 对图像执行形态学闭运算 `imtophat` 顶帽滤波 `imbothat` 底帽滤波 `imclearborder` 隐藏连接到图像边界的光亮结构 `imkeepborder` Retain light structures connected to image border (自 R2023b 起) `imfill` 填充图像区域和孔 `bwhitmiss` Binary hit-miss operation `bwmorph` 针对二值图像的形态学运算 `bwmorph3` Morphological operations on binary volume `bwperim` 找出二值图像中对象的边界 `bwskel` Reduce all objects to lines in 2-D binary image or 3-D binary volume `bwulterode` Ultimate erosion
 `imreconstruct` Morphological reconstruction `imregionalmax` 区域最大值 `imregionalmin` 区域最小值 `imextendedmax` 扩展最大值变换 `imextendedmin` 扩展最小值变换 `imhmax` Suppress regional maxima in image using H-maxima transform `imhmin` Suppress regional minima in image using H-minima transform `imimposemin` Impose minima
 `strel` 形态学结构元素 `offsetstrel` Morphological offset structuring element `conndef` Create connectivity array `iptcheckconn` Check validity of connectivity argument
 `applylut` Neighborhood operations on binary images using lookup tables `bwlookup` Nonlinear filtering using lookup tables `makelut` Create lookup table for use with `bwlookup`
 `bwpack` Pack binary image `bwunpack` Unpack binary image

## 主题

### 形态学的元素

• 形态学运算的类型
最基本的形态学运算是膨胀和腐蚀。您可以将膨胀和腐蚀结合起来进行更专门的运算。
• Morphological Reconstruction
Morphological reconstruction is used to extract marked objects from an image without changing the object size or shape.
• Structuring Elements
A structuring element defines the neighborhood used to process each pixel. A structuring element influences the size and shape of objects to process in the image.