Function File:  imextendedmin (im, h)
Function File:  imextendedmin (im, h, conn)

Caculate the (morphological) extended minima of an image im.

This function returns a binary image that marks the extended minima of the input image im. Those extended minima are definded as the regional minima of the h-minima transform of the input image (which removed all regional minima of a depth less then h beforehand).

The input image im needs to be a real and nonsparse numeric array (of any dimension), and the height parameter h a non-negative scalar number.

The definition of "neighborhood" for this morphological operation can be set with the connectivity parameter conn, which defaults to 8 for 2D images, to 26 for 3D images and to conn(ndims(n), "maximal") in general. conn can be given as scalar value or as a boolean matrix (see conndef for details).

The output is a binary image of same shape as the input image im.

See also: imextendedmax, imhmin, imregionalmin, imreconstruct.

Package: image