MimConnectMap()函数

Synopsis

Perform a 3 by 3 binary connectivity mapping.

Format

void MimConnectMap(SrcImageBufId, DestImageBufId, LutBufId)

MIL_ID SrcImageBufId; Source image buffer identifier
MIL_ID DestImageBufId; Destination image buffer identifier
MIL_ID LutBufId; LUT buffer identifier

This function performs a 3 x 3 binary connectivity mapping. It calculates a connectivity code for each pixel in the source image, then maps the codes through the specified LUT buffer.

The SrcImageBufId parameter specifies the identifier of the source of the operation. This parameter must be given an image buffer identifier. The source pixels are treated as binary (that is, all non-zero pixels are treated as 1). Pixel connectivity codes are determined in the following order:? MimConnectMap

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

The LutBufId parameter specifies the identifier of the LUT buffer. As each connectivity code has 9 bits, you should supply a LUT buffer with at least 512 (2 to the power of 9) entries; otherwise unpredictable results can occur.

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).