MmeasControl()函数

Synopsis

Set a measurement context control parameter.

Format

void MmeasControl(ContextId, ParamToSet, Value)

MIL_ID ContextId; Measurement context identifier
long ControlType; Type of control to set
double ControlValue; Value of control parameter

Description

This function sets the specified measurement context processing control parameter. These parameters control the behavior of measurement operations.

The ContextId parameter specifies the identifier of the measurement context.

The ControlType parameter specifies the type of processing control to set.

The ControlValue parameter specifies the value to which to set the control parameter. Refer to MmeasAllocContext for the default values that these parameters are set to at context allocation time. Note, when referring to “data relative to the corrected image”, this means that the data is given as if it were relative to an image resized by a factor equal to the aspect ratio.

These parameters can be set to one of the following combinations:

ControlType Description ControlValue
M_PIXEL_ASPECT_RATIO Pixel width / pixel height. Numeric representation of the ratio. (default is 1.0)
M_PIXEL_ASPECT_RATIO_INPUT How the measurement module interprets input relative to the pixel aspect ratio. M_CORRECTED (default): Input data is relative to the corrected image.
M_NORMAL: Input data is relative to the given image. (ratio of 1.0)
M_PIXEL_ASPECT_RATIO_OUTPUT How the measurement module interprets output relative to the pixel aspect ratio. M_CORRECTED (default): Output data is relative to the corrected image.
M_NORMAL: Output data is relative to the given image. (ratio of 1.0)
M_ZERO_OFFSET_X X-coordinate of the pixel center relative to the pixel origin. Between 0 and 1. (default is 0.5, the pixel center)
M_ZERO_OFFSET_Y Y-coordinate of the pixel center relative to the pixel origin. Between 0 and 1. (default is 0.5, the pixel center)

See also

MmeasAllocContext, MmeasInquire

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

评论已关闭。