MimFindExtreme()函数

Synopsis

Find an image buffer’s extremes (minimum or maximum).

Format

void MimFindExtreme(SrcImageBufId, ExtremeImResultId, ExtremeType)

MIL_ID SrcImageBufId; Source image buffer identifier
MIL_ID ExtremeImResultId; Extreme value image processing result buffer identifier
long ExtremeType; Type of result to calculate

Description

This function finds the maximum and/or minimum value of the specified source image and stores results in the specified extreme result buffer.

You can read the minimum/or maximum from the result buffer, using MimGetResult1d or MimGetResult, specifying M_VALUE as the result type.

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

The ExtremeImResultId parameter specifies the identifier of the buffer in which to store the extreme values. This parameter must be given the identifier of an image processing result buffer that was allocated with MimAllocResult and that has an M_EXTREME_LIST type. If just the maximum or minimum is calculated, only one entry is needed. If both the minimum and maximum are calculated, the result buffer must have two entries. The minimum value is stored in the first entry and the maximum value is stored in the second.

The ExtremeType parameter specifies whether to find the minimum value, maximum value, or both. This parameter can be set to the following:

M_MIN_VALUE Find the minimum value.
M_MAX_VALUE Find the maximum value.
M_MIN_VALUE + M_MAX_VALUE Find the minimum and maximum values.

See also

MimAllocResult, MimGetResult1d, MimGetResult

《MimFindExtreme()函数》上有1条评论

评论已关闭。