Documentation

ImextendedMin

Extended-minima transform

Syntax

BW = imextendedmin(I,h)
BW = ImextendedMin(i,h,conn)

Description

example

BW= imextendedmin(I,h)computes 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.his a nonnegative scalar. By default,ImextendedMin用途8-connected neighborhoods for 2-D images and 26-connected neighborhoods for 3-D images. For higher dimensions,ImextendedMin用途Conndef(numel(size(I)),'maximal')

BW= imextendedmin(I,h,conn)computes the extended-minima transform, which is the regional minima of the H-minima transform.his a nonnegative scalar.

Examples

collapse all

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.

imshowpair(I,BW,'montage');

Input Arguments

collapse all

Input array, specified as a nonsparse numeric array of any dimension.

Example:I = imread(‘glass.png'); BW = imextendedmax(I,80);

Data Types:single|double|int8|int16|int32|int64|uint8|uint16|uint32|uint64|logical

H-Maxima变换,指定为非负标量。

Example:BW = imextendedmin(I,80);

Data Types:single|double|int8|int16|int32|int64|uint8|uint16|uint32|uint64

Connectivity, specified as a one of the scalar values in the following table. By default,ImextendedMin用途8-connected neighborhoods for 2-D images and 26-connected neighborhoods for 3-D images. For higher dimensions,ImextendedMin用途Conndef(numel(size(I)),'maximal')。可以通过使用更通用的方式来定义连接性,以实现任何维度conna 3-by-3-by- ...-by-3 matrix of0s and1s. The1-valued elements define neighborhood locations relative to the center element ofconn。注意conn必须在其中心元素周围对称。

Value

Meaning

二维连接

4

4-connected neighborhood

8

8-connected neighborhood

Three-dimensional connectivities

6

6-connected neighborhood

18

18-connected neighborhood

26

26-connected neighborhood

Example:BW = imextendedmin(I,80,4);

Data Types:single|double|int8|int16|int32|int64|uint8|uint16|uint32|uint64

Output Arguments

collapse all

改变了形象,作为一个逻辑数组返回same size asI

参考

[1] Soille, P.,Morphological Image Analysis: Principles and Applications,Springer-Verlag,1999年,第170-171页。

Extended Capabilities

Introduced before R2006a

Was this topic helpful?