对于二值图像的确可以用你的方法使用,但是灰度图像呢?好像要复杂得多啊! 另外请问谁使用过MATLAB的imdilate语句?能帮我解释一下MATLAB是怎么做的吗? 语句如下:其中E为灰度图像 str=strel('square',7);%% when selecting larger dilating window, the result is better E=imdilate(E,str); %% dilating 在MATLAB的HELP中是这样解释imdilate()的: IM2 = imdilate(IM, SE) dilates the grayscale, binary, or packed binary image IM, returning the dilated image, IM2. The argument SE is a structuring element object, or array of structuring element objects, returned by the strel function. If IM is logical and the structuring element is flat, imdilate performs binary dilation; otherwise, it performs grayscale dilation. If SE is an array of structuring element objects, imdilate performs multiple dilations of the input image, using each structuring element in SE in succession. 其中“using each structuring element in SE in succession.”怎么做啊??? 谢谢大家了!!!!
另外请问谁使用过MATLAB的imdilate语句?能帮我解释一下MATLAB是怎么做的吗?
语句如下:其中E为灰度图像
str=strel('square',7);%% when selecting larger dilating window, the result is better
E=imdilate(E,str); %% dilating
在MATLAB的HELP中是这样解释imdilate()的:
IM2 = imdilate(IM, SE) dilates the grayscale, binary,
or packed binary image IM, returning the dilated image, IM2.
The argument SE is a structuring element object, or array
of structuring element objects, returned by the strel function. If IM is logical and the structuring element is flat, imdilate performs
binary dilation; otherwise, it performs grayscale dilation. If SE is
an array of structuring element objects, imdilate performs
multiple dilations of the input image, using each structuring element in SE in
succession.
其中“using each structuring element in SE in succession.”怎么做啊???
谢谢大家了!!!!