Click here to show toolbars of the Web Online Help System: show toolbars |
MIL_ID ContextOrResultCodeId, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function changes the setting of a specified code context, code model, or code result buffer.
Specifies the identifier of the code context, code model, or code result buffer.
Specifies the setting to change.
See the Parameter associations section for possible values that can be specified.
Specifies the setting's new value.
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 code context to control an McodeRead() operation.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Stops the current read operation. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Implements the default behavior. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the maximum number of codes to read in one source image. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ALL. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to read all code occurrences in the source image, up to the maximum number of occurrences to read of each code model (M_NUMBER). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum number of codes to read in the source image. |
The following ControlType and corresponding ControlValue parameter settings for a code context, to control McodeGrade() operations.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the absolute size (diameter) of the aperture. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value; the default value is 0. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the absolute aperture size, relative to the input coordinate system specified using M_ABSOLUTE_APERTURE_SIZE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the units with which to interpret the M_ABSOLUTE_APERTURE_SIZE control type. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the value in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the value in world units, with respect to the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the expected reflectance and mean light values derived during the reflectance calibration phase. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the result buffer used during the reflectance calibration phase. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the way in which the aperture size is determined. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_RELATIVE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the absolute aperture size, set using M_ABSOLUTE_APERTURE_SIZE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to disable the aperture. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a relative aperture size, based on the cell size (using M_CELL_SIZE...) and the relative aperture factor (using M_RELATIVE_APERTURE_FACTOR). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether the grading must perform an additional reflectance check over an extended area beyond the quiet zone. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to disable the additional reflectance check. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to enable the additional reflectance check. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the grading standard to use when performing a grading operation. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ISO_GRADING. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the ISO/IEC TR 29158:2011 specification. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the ISO standard. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the height of the inspection band as a percentage of the average bar height. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default percentage. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the percentage of the average bar height to set as the height of the inspection band. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the maximum possible grayscale value in the target image. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value; the default value is 255. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum calibrated reflectance. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the expected mean light (MLcal). INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the mean intensity. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the minimum possible grayscale value in the target image. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value; the default value is 0. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the minimum calibrated reflectance. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the number of scanlines inside the inspection band to inspect during the grading operation, after the code has been located. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use all possible scanlines inside the inspection band. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the number of scanlines to inspect. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the scale between a pixel and its physical measurement in mm. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_UNKNOWN. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the scale between a pixel and its physical measurement is not known, in mm per pixel units. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the scale between a pixel and its physical measurement, in mm per pixel units. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the expected reflectance value (Rcal). INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the reflectance value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the aperture factor to use when M_APERTURE_MODE is set to M_RELATIVE. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_AUTO. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the aperture factor is chosen according to ISO 15416 for all supported code types except 2D matrix code types, which are chosen according to ISO 15415. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the aperture factor. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the System Response value derived during the reflectance calibration phase (SRcal). INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the System Response value for the reference code. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the System Response value derived during the target verification phase (SRtarget). INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the System Response value for the target code. |
The following ControlType and ControlValue parameter settings can be specified for a code context, to control McodeRead() and McodeGrade() operations.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Changes the initialization mode of the context; this changes the default of several code model settings. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_TYPICAL_RECOGNITION. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a code context that might provide a more robust read or grade operation. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a code context that might provide a quicker read or grade operation. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the minimum possible contrast between the foreground and background in the target image for 1D codes (excluding Planet and Postnet) when using the M_ADAPTIVE threshold mode. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value; the default value is 50. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the minimum contrast. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the height (or thickness) of the scanline. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the scanline height is based on the value of M_SPEED. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the scanline height, relative to the input coordinate system specified using M_SCANLINE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the units with which to interpret the M_SCANLINE_HEIGHT and M_SCANLINE_STEP control types. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the values in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the values in world units, with respect to the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the scanline step. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the scanline step is based on the value of M_SPEED. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the scanline step, relative to the input coordinate system specified using M_SCANLINE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether to enable the search angular range algorithm for the code context. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ENABLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the search angular range algorithm is not used. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the search angular range algorithm is used. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the search speed. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a high search speed. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a low search speed. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a medium search speed. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a very high search speed. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a very low search speed. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the threshold mode used to internally binarize the source image. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a fast dynamic local threshold. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a global threshold value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the source image will be globally thresholded and then the edges in the binarized image are resegmented according to the intensities of the surrounding bars and spaces in the original source image. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the threshold value used to internally binarize the source image, depending on the specified threshold mode. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_AUTO_COMPUTE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the threshold value automatically. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the threshold value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum decoding time for a read or grading operation, in msec. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value; the default value is 2000 msec. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that there is no maximum decoding time. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum decoding time, in msec. |
The following ControlType and corresponding ControlValue parameter settings can be specified for a code model, to control McodeRead() operations. If you pass a code context to the ContextOrResultCodeId parameter, the specified control type setting is applied to all the code models in the context. If none of the code models support the specified control type, an error occurs. If only some code models do not support the specified control type, the control type setting is ignored for these code models.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether the presence of the quiet zone is necessary for a successful read operation of this code type. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ENABLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that a quiet zone is not necessary. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that a quiet zone is necessary. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Forces McodeRead() to perform a more robust read operation to minimize the number of errors to correct. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies not to perform a more robust read operation. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to perform a more robust read operation. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the maximum number of codes to read for the specified code model. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value; the default value is 1. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that all code model occurrences are read up to the maximum number limited by M_TOTAL_NUMBER. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum number of codes to read for the specified code model. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the accuracy of positional results. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_LOW. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to report the positional results of code read operations with high accuracy. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to report the positional results of code read operations with low accuracy. |
The following ControlType and corresponding ControlValue parameter settings can be specified for a code model to control McodeRead() and McodeGrade() operations. If you pass a code context to the ContextOrResultCodeId parameter, the specified control type setting is applied to all the code models in the context. If none of the code models support the specified control type, an error will occur. If only some code models do not support the specified control type, the control type setting is ignored for these code models.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether bearer bars run along the top and bottom of the codes to read (such as, the edge of a sticker). INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ABSENT. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that no bearer bars are above and below the code. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that there are bearer bars above and below the code. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the maximum number of cells for which to search, in the X-direction of a 2D code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to search for codes with any number of cells. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum number of cells for which to search. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the minimum number of cells for which to search, in the X-direction of a 2D code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to search for codes with any number of cells. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the minimum number of cells for which to search. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the maximum number of cells for which to search, in the Y-direction of a 2D code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to search for codes with any number of cells. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum number of cells for which to search. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the minimum number of cells for which to search, in the Y-direction of a 2D code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to search for codes with any number of cells. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the minimum number of cells for which to search. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether checking for a false Data Matrix pattern is enabled. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the Code module will not check for false Data Matrix code types. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the Code module will check for false Data Matrix code types. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether the code needs to be flipped or read in the opposite direction to be read properly. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Allows MIL to decide whether the code needs to be flipped or read in the opposite direction to be read properly. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the code needs to be flipped or read in the opposite direction to be read properly. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the code does not need to be flipped or read in the opposite direction. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the shape of the Data Matrix code type. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the Data Matrix code type can be any shape. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the Data Matrix code has a rectangular shape. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the Data Matrix has a square shape. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the distortion compensation algorithm that increases the robustness of read and grading operations on distorted codes. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies not to use distortion compensation. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use an algorithm that reads or grades Data Matrix codes that have perspective distortion and/or different column widths or row heights. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use an algorithm that reads or grades M_AZTEC, M_DATAMATRIX, or M_QRCODE types that have different column widths or row heights and/or slight perspective distortion. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the units with which to interpret the M_DOT_SPACING_MIN and M_DOT_SPACING_MAX control type. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the value in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the value in world units, with respect to the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the maximum distance between 2 dots in a matrix code type composed of dots. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the distance, relative to the input coordinate system specified using M_DOT_SPACING_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the minimum distance between 2 dots in a matrix code type composed of dots. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the distance, relative to the input coordinate system specified using M_DOT_SPACING_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether to search for the L-shaped finder pattern (the gray boxed area in the following image) to help localize the Data Matrix code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to not perform an exhaustive search. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to perform an exhaustive search. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the units with which to interpret the M_FINDER_PATTERN_MAX_GAP and M_FINDER_PATTERN_MINIMUM_LENGTH control types. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the values in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the values in world units, with respect to the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the maximum tolerable gap in the finder pattern of a Matrix code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_AUTO. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the maximum tolerable gap in the finder pattern is 6 times the minimum cell size specified using M_CELL_SIZE_MIN. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum gap allowed, in input units specified using M_FINDER_PATTERN_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the shortest acceptable length of either "arm" of the finder pattern of a Data Matrix code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_AUTO. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the minimum acceptable finder pattern "arm" length is 6 times the minimum cell size specified using M_CELL_SIZE_MIN. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
The minimum acceptable finder pattern "arm" length, in input units specified using M_FINDER_PATTERN_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the nominal search angle. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value; the default value is 0.0 degrees. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the nominal angle is set to the angle of the target image's ROI (MbufSetRegion()); Recall that for McodeGrade() and McodeRead(), the ROI must be rectangular. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the nominal angle, in degrees, relative to the input coordinate system specified using M_SEARCH_ANGLE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the negative angular range of the search. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a negative angular range, in degrees, relative to the nominal angle set by M_SEARCH_ANGLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the positive angular range of the search. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a positive angular range, in degrees, relative to the nominal angle set by M_SEARCH_ANGLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the units with which to interpret the M_SEARCH_ANGLE control type. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the value in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the value in world units, with respect to the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the angle increment/decrement used when searching for a 1D code through an angular range. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that no explicit increment/decrement is used. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the explicit angle increment/decrement, in degrees. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the maximum size (number of characters) of the string encoded in the code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that there is no maximum string size. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum string size. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the minimum size (number of characters) of the string encoded in the code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that there is no minimum string size. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the minimum string size. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the particular code sub-types for which to search. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to search for all of the code sub-types that can be specified for M_SUB_TYPE. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the EAN 8 code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the EAN 13 code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the GS1-128 code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the GS1 Databar Expanded code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the GS1 Databar Expanded Stacked code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the GS1 Databar Limited code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the GS1 Databar omni code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the GS1 Databar Stacked code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the GS1 Databar Stacked Omni code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the GS1 Databar Truncated code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the UPC-A code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the UPC-E code sub-type is enabled. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether the localization operation is performed prior to the decoding step of an operation. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the operation is not performed. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the localization operation is only performed on the base pattern of the Data Matrix code (an "L" starting at the top-most left corner, and ending on the bottom-most right corner of the code). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to localize the code within the image with the statistical characteristics of a 2D bar code (for example, local variance and the presence of a lot of edges). |
The following ControlType and corresponding ControlValue parameter settings can be specified for a code model to control McodeRead(), McodeGrade() and McodeWrite() operations. If you pass a code context to the ContextOrResultCodeId parameter, the specified control type setting is applied to all the code models in the context. If none of the code models support the specified control type, an error occurs. If only some code models do not support the specified control type, the control type setting is ignored for these code models.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the number of cells of a 2D code in the X-direction. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to search for a code with any number of cells, when performing an McodeRead() or McodeGrade() operation. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the number of cells. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the number of cells of a 2D code in the Y-direction. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to search for a code with any number of cells, when performing an McodeRead() or McodeGrade() operation. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the number of cells. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the units with which to interpret the M_CELL_SIZE_MAX and M_CELL_SIZE_MIN control types. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the values in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to interpret the values in world units, with respect to the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the maximum cell size. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to select an appropriate size, automatically. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the maximum cell size, relative to the input coordinate system specified using M_CELL_SIZE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the minimum cell size. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default cell size, in pixels. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the minimum cell size, relative to the input coordinate system specified using M_CELL_SIZE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the type of encoding scheme. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the default encoding scheme for the code type. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies any type of encoding scheme. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that supports uppercase alphabetical characters, along with the space. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that supports alphanumeric characters, as well as the space. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a similar encoding scheme to M_ENC_ALPHANUM, except it also supports the following characters: (,), (-), (/) and (. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that supports ASCII characters. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a 4-state format used with the C encoding table by the Australian Mail service. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a 4-state format used with the N encoding table by the Australian Mail service. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a 4-state format used by the Australian Mail service. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a compact Aztec code. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a full-range (not compact) Aztec code. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for an Aztec rune (the smallest version of an Aztec code). |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a composite code whose 1D portion uses an EAN-8 format and whose 2D portion uses a MicroPDF417 format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a composite code whose 1D portion uses an EAN-8 format and whose 2D portion uses a MicroPDF417 format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a composite code whose 1D portion uses an EAN-13 format and whose 2D portion uses a MicroPDF417 format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for an EAN-13 format with a supplemental 2 or 5 digit add-on. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a composite code whose 1D portion uses a GS1 128 format and whose 2D portion uses a MicroPDF417 format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a composite code whose 1D portion uses a GS1 128 format and whose 2D portion uses a PDF417 format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that uses a GS1 Databar format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that uses a GS1 Databar Expanded Stacked format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that uses a GS1 Databar Limited format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that uses a GS1 Databar format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that uses a GS1 Databar Stacked format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that uses a GS1 Databar Stacked Omni format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that uses a GS1 Databar Truncated format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies a similar encoding scheme as M_ENC_ASCII, but supports the extended ASCII character set. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a 4-state format used by the Korean Mail service. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that requires a Structured Carrier Message. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that requires a Structured Carrier Message. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that requires a Free Format Message. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that requires a Free Format Message. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that requires a Free Format Message. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that only supports numbers. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that uses an older version of the QR code format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme that uses a newer version of the QR code format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies different types of encoding schemes, depending on what code type is used. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a 4-state format used by the UK Mail service. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a composite code whose 1D portion uses an UPC-A format and whose 2D portion uses a MicroPDF417 format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for an UPC-A format with a supplemental 2 or 5 digit add-on. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a composite code whose 1D portion uses an UPC-E format and whose 2D portion uses a MicroPDF417 format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for an UPC_E format with a supplemental 2 or 5 digit add-on. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an encoding scheme for a 4-state format used by the US Mail service. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the minimum amount of the symbol that contains error correction information, as a percentage. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the type of error correction. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the default error correction scheme for the code type. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the error correction type for read and grading operations is detected automatically. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the Reed Solomon-based algorithm or a check digit type of error correction scheme, depending on the specification of the encoding. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a Reed Solomon-based algorithm as an error correction scheme. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use an additional digit to check whether there is an error or not. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the default error correction scheme for the 1D and 2D portions of the composite code. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the highest-level error correction scheme. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the lowest-level error correction scheme. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a medium-low level error correction scheme. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies an error correction algorithm that uses convolution coding. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies no error correction. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a medium-high level error correction scheme. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a Reed Solomon type of error correction scheme. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a Reed Solomon type of error correction scheme. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the minimum percentage of the symbol that contains error correction information. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the foreground color of the code. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the default value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the foreground color as black or white. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the foreground color is black. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the foreground color is white. |
The following ControlType and corresponding ControlValue parameter settings can be specified for a code result buffer.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether to return results in pixels or world units. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_ACCORDING_TO_CALIBRATION. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that results are returned in world units if the result was calculated on an image associated with a camera calibration context; otherwise, specifies that results are returned in pixel units. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that results are returned in pixel units, with respect to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that results are returned in world units, with respect to the relative coordinate system. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets the format in which to return the string, retrieved using McodeGetResult() with M_STRING. INQ |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Same as M_AUTO_FORMAT. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the returned string is in the string format associated with the code type. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the returned string is in a format that is human-readable. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the returned string is in a raw data format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
[This is
only applicable to Windows]
Specifies that the returned string uses Japanese (Windows-932) encoding. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
[This is
only applicable to Windows]
Specifies that the returned string uses Korean (Windows-949) encoding. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
[This is
only applicable to Windows]
Specifies that the returned string uses Latin (Windows-1252) encoding. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
[This is
only applicable to Windows]
Specifies that the returned string uses Simplified Chinese (Windows-936) encoding. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the returned string is in the UPCE compressed string format. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that the returned string is in the UTF-8 string format. |
void McodeControlInt64
(MIL_ID
ContextOrResultCodeId, MIL_INT64 ControlType,
MIL_INT64 ControlValue)
Parameters
ContextOrResultCodeId See ContextOrResultCodeId 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. |
void McodeControlDouble
(MIL_ID
ContextOrResultCodeId, MIL_INT64 ControlType,
MIL_DOUBLE ControlValue)
Parameters
ContextOrResultCodeId See ContextOrResultCodeId 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; milcode.lib. |
DLL | Requires mil.dll; milcode.dll. |