MIL_ID BlobResId, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function changes a processing control associated with the specified blob analysis result buffer. This function is normally called immediately after allocating a blob analysis result buffer, using MblobAllocResult(), but can be called later (in which case, already calculated results are discarded). If not called, default processing controls and values are used in calculations.
Note that you can use MblobInquire() to inquire about specific processing controls associated with a blob analysis result buffer.
Specifies the processing setting to control.
See the Parameter associations section for possible values that can be specified.
Specifies the setting required for the control for the processing setting.
See the Parameter associations section for possible values that can be specified.
The table below lists possible values for the ControlType and ControlValue parameters.
For calculating the features of
individual or groups of blobs
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_BLOB_IDENTIFICATION |
Sets whether to calculate features for each blob, or to treat groups of blobs as single blobs and calculate the features of the blobs. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INDIVIDUAL |
Specifies that all blobs are measured individually. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LABELED |
Specifies that blobs with the same label are grouped together, and that touching blobs with different labels are also grouped together. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LABELED_TOUCHING |
Specifies that blobs with the same label are grouped together, and that touching blobs with different labels are measured individually. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WHOLE_IMAGE |
Specifies that all blobs are grouped together. |
||||||||||||||||||||||||||||||||||||||
M_FERET_ANGLE_SEARCH_END |
Sets the upper limit of the angular search range in which to search for the maximum (M_FERET_MAX_DIAMETER) or minimum (M_FERET_MIN_DIAMETER) Feret diameters. (more details...) |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= 180 |
Specifies the upper limit of the angular search range. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_ANGLE_SEARCH_START |
Sets the lower limit of the angular search range in which to search for the maximum (M_FERET_MAX_DIAMETER) or minimum (M_FERET_MIN_DIAMETER) Feret diameters. (more details...) |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= 180 |
Specifies the lower limit of the angular search range. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FOREGROUND_VALUE |
Sets which pixel values are considered to be in the foreground. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NONZERO |
Specifies the blobs consisting of non-zero pixels. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ZERO |
Specifies the blobs consisting of zero pixels. |
||||||||||||||||||||||||||||||||||||||
M_IDENTIFIER_TYPE |
Sets the values that non-zero pixels in the image can have. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BINARY |
Specifies that non-zero pixels must have the maximum value of the buffer (for example, 0xff for an 8-bit image). |
||||||||||||||||||||||||||||||||||||||
M_GRAYSCALE |
Specifies that non-zero pixels can have any value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INPUT_SELECT_UNITS |
Sets which units to use with the CondLow and CondHigh parameters of the MblobSelect() function, when specifying the limit values of the blob selection condition. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies that the limit values passed to MblobSelect() be interpreted in pixel units, with respect to the pixel coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies that the limit values passed to MblobSelect() be interpreted in world units, with respect to the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LATTICE |
Sets the image lattice for blob analysis. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_4_CONNECTED |
Specifies that each pixel has 4 neighbors. |
||||||||||||||||||||||||||||||||||||||
M_8_CONNECTED |
Specifies that each pixel has 8 neighbors. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MAX_BLOBS |
Sets the maximum number of blobs to process. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that there is no limit on the maximum number of blobs. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the maximum number of blobs. |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_FERETS |
Sets the number of Feret angles to be used when calculating a Feret feature (M_FERET_...) or a feature based on Ferets (that is, M_RECTANGULARITY, M_ROUGHNESS, or M_CONVEX_PERIMETER). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 8. |
||||||||||||||||||||||||||||||||||||||
M_INFINITE |
Specifies the use of a high precision algorithm to accurately calculate Feret features (and features based on Feret features). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_FERETS |
Specifies the minimum number of Feret angles. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > M_MIN_FERETS |
Specifies the number of Feret angles. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PIXEL_ASPECT_RATIO |
Sets the pixel aspect ratio of the image(s). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the pixel width/pixel height. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_RESULT_OUTPUT_UNITS |
Sets whether to return results 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...) |
||||||||||||||||||||||||||||||||||||||
M_RETURN_PARTIAL_RESULTS |
Sets whether results from partially scanned images will be available after a stop condition is met. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies to discard results of partially scanned images when processing is interrupted. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to make results of partially scanned images available when processing is interrupted. |
||||||||||||||||||||||||||||||||||||||
M_SAVE_RUNS |
Sets whether to save run information when calling MblobCalculate(). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies not to save run information. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to save run information. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_STOP_CALCULATE |
Stops the current blob analysis calculation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
This parameter must be set to M_DEFAULT. |
||||||||||||||||||||||||||||||||||||||
M_TIMEOUT |
Sets the maximum processing time. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that there is no maximum processing time. |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the maximum processing time, in msec. |
Parameters
BlobResId See BlobResId 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; milblob.lib. |
DLL | Requires mil.dll; milblob.dll. |