matlab中使用strel()函数来创建一个结构元素,这个结构元素是strel对象,代表一个扁平的形态结构元素
SE = strel(‘diamond‘,r)
SE = strel(‘disk‘,r,n)
SE = strel(‘octagon‘,r)
SE = strel(‘line‘,len,angle)
SE = strel(‘rectangle‘,[m n])
SE = strel(‘square‘,w)
SE = strel(‘cube‘,w)
SE = strel(‘cuboid‘,[m n p])
SE = strel(‘sphere‘,r)
函数 | 作用 |
---|---|
imdilate | 膨胀图像 |
imerode | 腐蚀图像 |
imclose | 形态接近图像 |
imopen | 形态上开放的图像 |
imbothat | 底帽过滤 |
imtophat | 高帽过滤 |
bwhitmiss | 二进制未命中操作 |
decompose | 分解后的结构元素的返回顺序 |
reflect | 反映结构元素 |
translate | 翻译结构元素 |
原文:https://www.cnblogs.com/thgpddl/p/12536693.html