MimCountDifference()函数

Synopsis

Count image differences.

Format

void MimCountDifference(Src1ImageBufId, Src2ImageBufId, ImResultId)

MIL_ID Src1ImageBufId; Source 1 image buffer or digitizer identifier
MIL_ID Src2ImageBufId; Source 2 image buffer identifier
MIL_ID ImResultId; Image processing result buffer identifier

Description

This function finds the number of differences between the two specified source buffers and stores the resulting number in the specified result buffer.

You can read the number of differences from the result buffer, using MimGetResult1d or MimGetResult, specifying M_VALUE as the result type.

The Src1ImageBufId parameter specifies the identifier of the first image data source. This parameter can be given an image buffer or digitizer identifier.

The Src2ImageBufId parameter specifies the identifier of the second image data source. This parameter can only be given an image buffer identifier.

The ImResultId parameter specifies the identifier of the buffer in which to store the differences. This parameter must be given the identifier of an image processing result buffer that was allocated with MimAllocResult and has an M_COUNT_LIST type. The buffer needs only one entry.

Note

This function is optimized for packed binary buffers.

See also

MimAllocResult, MimGetResult, MimGetResult1d