Synopsis
Register a MIL_ID parameter.
Format
void MfuncParamId(FunctionId, ParamIndex, ParamValue, ParamIs, ParamHasAttr)
MIL_ID FunctionId; | Function identifier |
long ParamIndex; | Parameter index |
MIL_ID ParamValue; | Parameter value |
long ParamIs; | Type of MIL object represented |
long ParamHasAttr; | Attribute the MIL object must have |
Description
This function allows you to register a MIL_ID parameter of the specified pseudo-MIL function. The MfuncParamId function should be called after a call to MfuncAlloc and before a call to MfuncStart .
The FunctionId parameter is the identifier of the pseudo-MIL function that received the parameter.
The ParamIndex parameter is the index of the parameter within the function parameter list. The index of the first parameter is considered to be one.
The ParamValue parameter is the value of the MIL_ID parameter.
The ParamIs parameter specifies the type of MIL object. It must be one, or more, of the following types to be considered valid:
M_IMAGE | M_LUT | M_KERNEL |
M_STRUCT_ELEMENT | M_HIST_LIST | M_PROJ_LIST |
M_EVENT_LIST | M_COUNT_LIST | M_EXTREME_LIST |
M_RESULT_LIST | M_DIGITIZER | M_ARRAY |
M_DISPLAY | M_APPLICATION | M_SYSTEM |
M_GRAPHIC_CONTEXT | M_BLOB_RESULT | M_BLOB_FEATURE_LIST |
M_PAT_MODEL | M_PAT_RESULT | M_OCR_FONT |
M_OCR_RESULT | M_MEAS_MARKER | M_MEAS_RESULT |
M_MEAS_CONTEXT | M_USER_OBJECT_1 | M_USER_OBJECT_2 |
The ParamHasAttr parameter specifies what kind of attribute the MIL object must have, in order to be considered a valid MIL_ID parameter for the specified function. Either M_IN or M_OUT (or both) must be specified, to indicate if the buffer is used for input or output. Optionally, you can specify one or more additional attributes from the following list: M_GRAPH, M_DISP, M_GRAB, M_PROC.
Note that the arguments tagged as M_OUT will have their internal modification count incremented to signal that they have been modified.
See also
MfuncAlloc, MfuncStart, MfuncFreeAndEnd, MfuncParamChar, MfuncParamDouble, MfuncParamLong, MfuncParamPointer, MfuncParamShort, MfuncParamString
《MfuncParamId()函数》上有3条评论
评论已关闭。