BW = imextendedmin(I,h)
BW = imextendedmin(I,h,conn)
the extended-minima transform, which is the regional minima of the
H-minima transform. Regional minima are connected components of pixels
with a constant intensity value, and whose external boundary pixels
all have a higher value.
BW = imextendedmin(
h is a nonnegative scalar.
imextendedmin uses 8-connected neighborhoods
for 2-D images and 26-connected neighborhoods for 3-D images. For
Read image into the workspace.
I = imread('glass.png');
Calculate the extended-minima transform.
BW = imextendedmin(I,50);
Display the original image and the transformation side-by-side.
I— Input image
Input array, specified as a nonsparse numeric array of any dimension.
I = imread(‘glass.png'); BW =
h— h-maxima transform
h-maxima transform, specified as a nonnegative scalar.
BW = imextendedmin(I,80);
Connectivity, specified as a one of the scalar values in the
following table. By default,
8-connected neighborhoods for 2-D images and 26-connected neighborhoods
for 3-D images. For higher dimensions,
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 around its center element.
BW = imextendedmin(I,80,4);
This function supports the generation of C code using MATLAB® Coder™.
Note that if you choose the generic
MATLAB Host Computer target
platform, the function generates code that uses a precompiled, platform-specific
shared library. Use of a shared library preserves performance optimizations
but limits the target platforms for which code can be generated. For
more information, see Understanding Code Generation with Image Processing Toolbox.
When generating code, the optional third input argument,
must be a compile-time constant.
You can use this function in the MATLAB Function Block in Simulink.
 Soille, P., Morphological Image Analysis: Principles and Applications, Springer-Verlag, 1999, pp. 170-171.