BW2 = bwulterode(BW)
BW2 = bwulterode(BW,
BW2 = bwulterode(BW) computes
the ultimate erosion of the binary image
ultimate erosion of
BW consists of the regional
maxima of the Euclidean distance transform of the complement of
The default connectivity for computing the regional maxima is 8 for
two dimensions, 26 for three dimensions, and
'maximal') for higher dimensions.
BW2 = bwulterode(BW, specifies
the distance transform method and the regional maxima connectivity.
be one of the following values:
conn can have any of the following scalar
Connectivity can be defined in a more general way for any dimension
by using for
conn a 3-by-3-by... - by-3 matrix
elements define neighborhood locations relative to the center element
conn. Note that
be symmetric about its center element.
BW can be numeric or logical and it must
be nonsparse. It can have any dimension. The return value
always a logical array.
Read a binary image into the workspace and display it.
originalBW = imread('circles.png'); imshow(originalBW)
Perform the ultimate erosion of the image and display it.
ultimateErosion = bwulterode(originalBW); figure, imshow(ultimateErosion)