MIL_ID ContextBeadId, | //in |
MIL_INT LabelOrIndex, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function allows you to control the specified setting for a bead context, or for the templates contained within the context. You can use these settings to manage the training (MbeadTrain()) and verification phases (MbeadVerify()). You can inquire most of these settings using MbeadInquire().
Settings for the training phase have an indirect affect on the verification phase, since it uses trained templates. Therefore if you modify a training phase setting, or a setting that applies to both the training and verification phases, you must re-call MbeadTrain() before the next call to MbeadVerify(). Settings that are exclusively for the verification phase are not used by, and have no effect on, the training phase; if you modify such settings, you need not re-call MbeadTrain().
This function's settings affect either the template's training status (established after calling MbeadTrain()) or verification status (established after calling MbeadVerify()). Depending on the status, you might have to adjust the related settings. To retrieve information about the training status, use MbeadInquire() with M_STATUS; to retrieve information about the verification status, use MbeadGetResult() with M_STATUS.
You can also use this function to control operations with MbeadGetNeighbors().
If you are specifying pixel units, make sure the pixel sizes are consistent across all calibrations (for example, pixel sizes should be the same in the training and verification images). When using different calibration contexts, it is recommended that you use world units.
Specifies the identifier of the bead context to control. The bead context must have been previously allocated on the required system using MbeadAlloc().
Specifies the bead template (one or all) to control, or specifies that you are controlling a global setting of the bead context. This parameter should be set to one of the following values:
For specifying what to
control
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_CONTEXT. |
||||||||||||||||||||||||||||||||||||||
Specifies the index of an existing template to control. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the index. The index must be greater than or equal to 0. |
|||||||||||||||||||||||||||||||||||||||
Specifies the label of an existing template to control. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the label. The label must be greater than 0. |
|||||||||||||||||||||||||||||||||||||||
M_ALL |
Applies the specified control setting to all the templates contained within the bead context. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONTEXT |
Controls a global setting of a bead context. |
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 are used to control templates (one or all) in a bead context for the training phase (MbeadTrain()). In this case, you must set the LabelOrIndex parameter to a specific template (M_TEMPLATE_INDEX() or M_TEMPLATE_LABEL()) or to all templates (M_ALL).
To control bead templates for the
training phase
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_INTENSITY_NOMINAL_MODE |
Sets how MIL establishes the nominal pixel intensity of the template. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_AUTO |
Specifies to establish the nominal pixel intensity from the training image. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that M_INTENSITY_NOMINAL_MODE has no effect. |
||||||||||||||||||||||||||||||||||||||
M_USER_DEFINED |
Specifies that you will explicitly set the pixel intensity, using M_INTENSITY_NOMINAL. |
||||||||||||||||||||||||||||||||||||||
M_TEMPLATE_CIRCLE_CENTER_X |
Sets the X-coordinate of the center of a template whose path follows a circle. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the center's X-coordinate, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TEMPLATE_CIRCLE_CENTER_Y |
Sets the Y-coordinate of the center of a template whose path follows a circle. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the center's Y-coordinate, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TEMPLATE_CIRCLE_RADIUS |
Sets the radius of a template whose path follows a circle. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the radius, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TEMPLATE_INPUT_UNITS |
Sets the units with which to interpret the M_CLOSEST_POINT_MAX_DISTANCE, M_FAIL_WARNING_OFFSET, M_GAP_MAX_LENGTH, M_OFFSET_MAX, M_TEMPLATE_CIRCLE_CENTER_X, M_TEMPLATE_CIRCLE_CENTER_Y, M_TEMPLATE_CIRCLE_RADIUS, M_TEMPLATE_SEGMENT_END_X, M_TEMPLATE_SEGMENT_END_Y, M_TEMPLATE_SEGMENT_START_X, M_TEMPLATE_SEGMENT_START_Y, M_WIDTH_DELTA_NEG, M_WIDTH_DELTA_POS, and M_WIDTH_NOMINAL control types, as well as the units with which to interpret the template's position and dimension values specified using MbeadTemplate(). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies to interpret the values in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies to interpret the values in world units, with respect to the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TEMPLATE_SEGMENT_END_X |
Sets the X-coordinate of the end of a template whose path follows a segment. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate of the end of the segment, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TEMPLATE_SEGMENT_END_Y |
Sets the Y-coordinate of the end of a template whose path follows a segment. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate of the end of the segment, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TEMPLATE_SEGMENT_START_X |
Sets the X-coordinate of the start of a template whose path follows a segment. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate of the start of the segment, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TEMPLATE_SEGMENT_START_Y |
Sets the Y-coordinate of the start of a template whose path follows a segment. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate of the start of the segment, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TRAINING_BOX_HEIGHT |
Sets the height of the training box in which to establish the trained points. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the height, relative to the input coordinate system specified using M_TRAINING_BOX_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TRAINING_BOX_INPUT_UNITS |
Sets the units with which to interpret the M_TRAINING_BOX_HEIGHT, M_TRAINING_BOX_WIDTH, M_TRAINING_BOX_SPACING, and M_TRAINING_WIDTH_NOMINAL control types. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies to interpret the values in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies to interpret the values in world units, with respect to the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRAINING_BOX_SPACING |
Sets the distance between the center of the training boxes in which to establish the trained points. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that M_TRAINING_BOX_SPACING has no effect. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the spacing, relative to the input coordinate system specified using M_TRAINING_BOX_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TRAINING_BOX_WIDTH |
Sets the width of the training box in which to establish the trained points. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 200.0. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the width, relative to the input coordinate system specified using M_TRAINING_BOX_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TRAINING_PATH |
Sets how MIL establishes the path of the bead template. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_POLYLINE_SEED. |
||||||||||||||||||||||||||||||||||||||
M_CIRCLE |
Specifies that the path of the bead template follows a fixed circle defined with M_TEMPLATE_CIRCLE_CENTER_X, M_TEMPLATE_CIRCLE_CENTER_Y, and M_TEMPLATE_CIRCLE_RADIUS. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_POLYLINE |
Specifies that the path of the bead template follows a fixed polyline. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_POLYLINE_SEED |
Specifies that the path of the bead template follows a polyline that is refined by the training image set with MbeadTrain(). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SEGMENT |
Specifies that the path of the bead template follows a fixed segment defined with M_TEMPLATE_SEGMENT_START_X, M_TEMPLATE_SEGMENT_START_Y, M_TEMPLATE_SEGMENT_END_X, and M_TEMPLATE_SEGMENT_END_Y. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRAINING_WIDTH_NOMINAL |
Sets the width with which to validate the template's automatically established nominal width. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that M_TRAINING_WIDTH_NOMINAL has no effect. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the width, relative to the input coordinate system specified using M_TRAINING_BOX_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_TRAINING_WIDTH_SCALE_MAX |
Sets the scale factor by which to determine the upper limit (maximum permitted scale) of the bead width. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 1.2. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that M_TRAINING_WIDTH_SCALE_MAX has no effect. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the maximum scale factor. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRAINING_WIDTH_SCALE_MIN |
Sets the scale factor by which to determine the lower limit (minimum permitted scale) of the bead width. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.8. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that M_TRAINING_WIDTH_SCALE_MIN has no effect. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the minimum scale factor. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WIDTH_NOMINAL |
Sets the nominal width to use, when it is explicitly defined. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the nominal width, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_WIDTH_NOMINAL_MODE |
Sets how to establish the nominal width of the bead template. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_AUTO_UNIFORM. |
||||||||||||||||||||||||||||||||||||||
M_AUTO_CONTINUOUS |
Specifies that the bead's nominal width is automatically established with MbeadTrain(), where the corresponding width at each vertex in the template can have its own unique value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AUTO_UNIFORM |
Specifies that the bead's nominal width is automatically established with MbeadTrain(), where the corresponding width at all of the template's vertices must have the same value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_USER_DEFINED |
Specifies that you must explicitly set the bead's nominal width. (more details...) |
The following ControlType and corresponding ControlValue parameter settings are used to control the templates' (one or all) corresponding measured bead for the verification phase (MbeadVerify()). In this case, you must set the LabelOrIndex parameter to a specific template (M_TEMPLATE_INDEX() or M_TEMPLATE_LABEL()) or to all templates (M_ALL).
To control measured beads for the
verification phase
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_ACCEPTANCE |
Sets the acceptance level for the score of the template's corresponding measured bead. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 100.0%. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the acceptance level, as a percentage. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ANGLE_ACCURACY_MAX_DEVIATION |
Sets the maximum angular deviation between the angle of the bead template at each of its trained points, and the angle of the corresponding measured bead at each of its measured points. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0°. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 180.0 |
Specifies the angular deviation, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_WIDTH_MARGIN |
Sets an additional width for the search box MIL uses to verify the template's measured bead. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 50.0%. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the additional width used for verification, as a percentage. |
||||||||||||||||||||||||||||||||||||||
M_FAIL_WARNING_OFFSET |
Sets an additional width to the search box in which a measured point can be found, but will have a failed status result (M_STATUS). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the width, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_GAP_MAX_LENGTH |
Sets the maximum allowable length of one single gap in the template's measured bead, for it to have a passing status result (M_STATUS). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that M_GAP_MAX_LENGTH has no effect. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the maximum gap length, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GAP_TOLERANCE |
Sets the percentage of the total allowable gap (all gaps together) in the template's measured bead, for it to have a passing status result (M_STATUS). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0%. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the total allowable gaps, as a percentage. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INTENSITY_DELTA_NEG |
Sets the lowest pixel intensity that is considered valid for the measured bead, relative to the nominal intensity. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the lowest valid pixel intensity. |
||||||||||||||||||||||||||||||||||||||
M_INTENSITY_DELTA_POS |
Sets the highest pixel intensity that is considered valid for the measured bead, relative to the nominal intensity. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the highest valid pixel intensity. |
||||||||||||||||||||||||||||||||||||||
M_INTENSITY_NOMINAL |
Sets the nominal pixel intensity of the template's measured bead. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the nominal pixel intensity. |
||||||||||||||||||||||||||||||||||||||
M_OFFSET_MAX |
Sets the maximum allowable distance between the position of the trained points in the template, and the position of the corresponding measured points in the target, for the measured bead to have a passing status result (M_STATUS). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that M_OFFSET_MAX has no effect. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the allowable offset, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_WIDTH_DELTA_NEG |
Sets the valid delta negative tolerance between the width of the measured bead and the nominal width of the corresponding template, for the measured bead to have a passing status result (M_STATUS). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that M_WIDTH_DELTA_NEG has no effect. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the tolerance, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_WIDTH_DELTA_POS |
Sets the valid delta positive tolerance between the width of the measured bead and the nominal width of the corresponding template, for the measured bead to have a passing status result (M_STATUS). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that M_WIDTH_DELTA_POS has no effect. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the tolerance, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
The following ControlType and corresponding ControlValue parameter settings are used to control how MIL performs the edge extraction of the bead from the training (MbeadTrain()) and target (MbeadVerify()) image. In this case, you must set the LabelOrIndex parameter to a specific template (M_TEMPLATE_INDEX() or M_TEMPLATE_LABEL()) or to all templates (M_ALL).
MIL extracts beads from images using processes based on the MIL Measurement module. Such processes use a one-dimensional analysis of differences in pixel intensities. For more information about this type of edge extraction, see the Search algorithm section of Chapter 13: Measurement.
To control how MIL extracts beads from an
image for the training and verification phases
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_FOREGROUND_VALUE |
Sets whether the foreground that MIL uses when performing the edge extraction of the bead from an image should be darker or lighter than the background. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_FOREGROUND_WHITE. |
||||||||||||||||||||||||||||||||||||||
M_FOREGROUND_BLACK |
Specifies that the foreground is darker than the background. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FOREGROUND_WHITE |
Specifies that the foreground is lighter than the background. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SMOOTHNESS |
Sets the degree of noise reduction that MIL uses when performing the edge extraction of the bead from an image. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 50.0. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the smoothness value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_THRESHOLD_MODE |
Sets how to establish the threshold that MIL must use when performing the edge extraction of the bead from an image. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_USER_DEFINED. |
||||||||||||||||||||||||||||||||||||||
M_USER_DEFINED |
Specifies that the threshold is explicitly defined with M_THRESHOLD_VALUE. |
||||||||||||||||||||||||||||||||||||||
M_THRESHOLD_VALUE |
Sets the value beneath which a grayscale variation within the image is not considered an edge of the bead. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the threshold value. (more details...) |
The following ControlType and corresponding ControlValue parameter settings are used to associate a calibration context with the training image. In this case, you must set the LabelOrIndex parameter to M_CONTEXT.
To associate a calibration context with a
training image
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_ASSOCIATED_CALIBRATION |
Associates the specified calibration context with the training image specified in MbeadTrain(), if required. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_NULL. |
||||||||||||||||||||||||||||||||||||||
M_NULL |
Removes the association between the training image and the calibration context. |
||||||||||||||||||||||||||||||||||||||
MIL Calibration context identifier |
Specifies the calibration context to associate with the training image. |
The following ControlType and corresponding ControlValue parameter settings are used to control operations with MbeadGetNeighbors(). In this case, you must set the LabelOrIndex parameter to M_CONTEXT.
To control operations with
MbeadGetNeighbors()
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_CLOSEST_POINT_MAX_DISTANCE |
Sets the maximum distance for the M_CLOSEST_... operations in MbeadGetNeighbors(). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_INFINITE. |
||||||||||||||||||||||||||||||||||||||
M_INFINITE |
Specifies that the maximum distance is infinite. |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the maximum distance, relative to the input coordinate system specified using M_TEMPLATE_INPUT_UNITS. |
void MbeadControlInt64
(MIL_ID ContextBeadId,
MIL_INT LabelOrIndex,
MIL_INT64 ControlType,
MIL_INT64 ControlValue)
Parameters
ContextBeadId See ContextBeadId of the main function for a description. LabelOrIndex See LabelOrIndex 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; milbead.lib. |
DLL | Requires mil.dll; milbead.dll. |