MimOpen()函数

Synopsis

Perform an opening-type morphological operation.

Format

void MimOpen(SrcImageBufId, DestImageBufId, NbIteration, Procmode)

MIL_ID SrcImageBufId; Source image buffer identifier
MIL_ID DestImageBufId; Destination image buffer identifier
long NbIteration; Number of operation iterations
long ProcMode; Processing mode

Description

This function performs a binary or grayscale opening operation on the given source image for the specified number of iterations. An opening is an erosion followed by a dilation.

The SrcImageBufId parameter specifies the identifier of the data source of the operation. This parameter must be given an image buffer identifier.

The DestImageBufId parameter specifies the identifier of the destination of the results. This parameter must be given an image buffer identifier.

The NbIteration parameter specifies the number of times to iterate the operation.

The ProcMode parameter specifies the processing mode to use. This parameter can be set to the following:

M_BINARY Non-zero pixels will be treated as ones (1) during processing and the resulting non-zero pixels will have the maximum value of the unsigned buffer (for example, 0xff for an 8-bit buffer).
M_GRAYSCALE The source image’s gray values are used for processing and the resulting buffer also contains gray values.

In binary mode, this function uses a 3 x 3 full structuring element; in grayscale mode, a 3 x 3 empty one.

Note

This function is optimized for packed binary buffers.

Status

In-place processing is supported, but the source and destination image buffers cannot partially overlap (a situation that can only occur when using child buffers).

See also

MimErode, MimDilate, MimClose

《MimOpen()函数》上有3条评论

评论已关闭。