MIL_ID ContextOrResultId, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function allows you to control a measurement context or result buffer setting. These settings control the behavior of measurement operations (MmeasFindMarker() and MmeasCalculate()), which subsequently affects the results that you obtain (MmeasGetResult() or MmeasGetResultSingle()) or draw (MmeasDraw()).
Specifies the identifier of the measurement context or result buffer.
For specifying the measurement context or
result buffer identifier
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
Measurement context ID |
Specifies a valid measurement context, previously allocated using MmeasAllocContext(). |
||||||||||||||||||||||||||||||||||||||
Measurement result buffer ID |
Specifies a valid measurement result buffer, previously allocated using MmeasAllocResult(). |
Specifies the type of control to set.
See the Parameter associations section for possible values that can be specified.
Specifies the required value for the control.
See the Parameter associations section for possible values that can be specified.
The tables below list possible values for the ControlType and ControlValue parameters.
The following ControlType and corresponding ControlValue parameter settings can be specified for a measurement context. In this case, you must set the ContextOrResultId parameter to a measurement context.
For a measurement context
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_PIXEL_ASPECT_RATIO |
Sets the pixel width to pixel height ratio. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the ratio. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PIXEL_ASPECT_RATIO_INPUT |
Sets whether to use M_PIXEL_ASPECT_RATIO to correct measurement inputs. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CORRECTED |
Specifies to correct measurement inputs with the specified aspect ratio. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NORMAL |
Specifies to not correct measurement inputs (ratio of 1.0). |
||||||||||||||||||||||||||||||||||||||
M_PIXEL_ASPECT_RATIO_OUTPUT |
Sets whether to use M_PIXEL_ASPECT_RATIO to correct measurement results (output data). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CORRECTED |
Specifies to correct measurement results with the specified aspect ratio. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NORMAL |
Specifies to not correct measurement results (ratio of 1.0). |
The following ControlType and corresponding ControlValue parameter settings can be specified for a measurement result buffer. In this case, you must set the ContextOrResultId parameter to a measurement result buffer.
For a measurement result
buffer
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_RESULT_OUTPUT_UNITS |
Sets whether to return results of MmeasCalculate() in pixels or world units. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ACCORDING_TO_CALIBRATION. |
||||||||||||||||||||||||||||||||||||||
M_ACCORDING_TO_CALIBRATION |
Specifies that results are returned in world units if the result was calculated on an image associated with a calibration context; otherwise, specifies that results are returned in pixel units. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies that results are returned in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies that results are returned in world units, with respect to the relative coordinate system. (more details...) |
Parameters
ContextOrResultId See ContextOrResultId of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
Header | Include mil.h. |
Library | Use mil.lib; milmeas.lib. |
DLL | Requires mil.dll; milmeas.dll. |