MimClip剪切点操作

Format

void MimClip(SrcImageBufId, DestImageBufId, Condition, CondLow, CondHigh, WriteLow, WriteHigh)

MIL_ID SrcImageBufId; Source image buffer identifier
MIL_ID DestImageBufId; Destination image buffer identifier
long Condition; Clipping condition
double CondLow; Low clipping point
double CondHigh; High clipping point
double WriteLow; Value written if low clipping condition satisfied
double WriteHigh; Value written if high clipping condition satisfied

Description

This function clips each image pixel that meets the specified condition. If the condition has one clipping point, each pixel that satisfies this condition is replaced with the specified WriteLow value. If it has two clipping points, they are either replaced with the WriteLow or WriteHigh value depending on the condition. Pixels that do not satisfy the condition are not affected.
The SrcImageBufId parameter specifies the identifier of the image data source.

The DestImageBufId parameter specifies the identifier of the destination image buffer.
The Condition parameter specifies the clipping condition. This parameter can be set to one of two types of conditions.