Morphological reconstruction
performs morphological reconstruction of the image J
= imreconstruct(marker
,mask
)marker
under
the image mask
, and returns the reconstruction in
J
. The elements of marker
must be less
than or equal to the corresponding elements of mask
. If the
values in marker
are greater than corresponding elements in
mask
, then imreconstruct
clips the
values to the mask
level before starting the procedure.
Morphological reconstruction is the algorithmic basis for several other
Image Processing Toolbox™ functions, including imclearborder
, imextendedmax
, imextendedmin
, imfill
, imhmax
, imhmin
, and imimposemin
.
Performance note: This function may take advantage of
hardware optimization for data types logical
,
uint8
, uint16
,
single
, and double
to run faster.
Hardware optimization requires marker
and
mask
to be 2-D images and conn
to
be either 4
or 8
.
imreconstruct
uses the fast hybrid grayscale reconstruction algorithm
described in [1].
[1] Vincent, L., "Morphological Grayscale Reconstruction in Image Analysis: Applications and Efficient Algorithms," IEEE Transactions on Image Processing, Vol. 2, No. 2, April, 1993, pp. 176-201.
imclearborder
| imextendedmax
| imextendedmin
| imfill
| imhmax
| imhmin
| imimposemin