MimThin()函数

Synopsis

Thin blobs in an image.

Format

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

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 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_SKELETON is specified for this parameter, every object will be reduced to its skeleton.

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, MimThick

《MimThin()函数》上有2条评论

评论已关闭。