imtophat
顶帽过滤
句法
IM2 = Imtophat(IM,SE)
im2 = imtophat(im,nhood)
gpuarrayim2 = imtophat(gpuarrayim,___)
描述
IM2 = Imtophat(IM,SE)
在灰度或二进制输入图像上执行形态学上帽过滤我是
。顶帽过滤计算图像的形态开放(使用iMopen
),然后从原始图像中减去结果。imtophat
使用结构元素se
, 在哪里se
归还Strel
。se
必须是一个单个结构元素对象,而不是包含多个结构元素对象的数组。
im2 = imtophat(im,nhood)
在哪里内
是指定结构元件的大小和形状的0s和1s的数组,与imptophat(IM,strel(nhone))
。
gpuarrayim2 = imtophat(gpuarrayim,___)
在GPU上执行操作。内
是由Strel(NHOOD)
, 如果内
是一个数组0
沙1
s that specifies the structuring element neighborhood. If内
是一个gpuarray
,,,,strel(聚集(nhood))
指定结构元素邻域。
课堂支持金宝app
我是
可以是数字或逻辑的,必须是非sparse。输出图像IM2
具有与输入图像相同的类。如果输入是二进制的(逻辑
),,,,the structuring element must be flat.
gpuarrayim
必须是一个gpuarray
类型UINT8
or逻辑
。当与gpuarray
,,,,the structuring element must be flat and two-dimensional.
The output has the same class as the input.
例子
扩展功能
也可以看看
Introduced before R2006a
这个话题有帮助吗?