MimThick()函数

Synopsis

Thicken blobs in an image.

Format

void MimThick(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 thickening on the specified source image for the specified number of iterations.

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

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

The NbIteration parameter specifies the number of times to iterate the operation. If M_TO_IDEMPOTENCE is specified, all objects are enlarged until idempotence is reached.

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 will also contain gray values.

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

MimMorphic, MimThin