MIL_ID BlobResId, | //in |
MIL_INT64 Feature, | //in |
void *TargetArrayPtr | //out |
This function retrieves the results for a specified feature for all included blobs, from the blob analysis result buffer.
If your target image was associated with a calibration context, positional and dimensional results are, by default, returned with respect to the relative coordinate system of the image. Otherwise, these results are returned in pixels, relative to the top-left pixel in the target image.
If your target image was associated with a calibration context but you want to retrieve positional and dimensional results in pixel units, use MblobControl() with the M_RESULT_OUTPUT_UNITS control type set to M_PIXEL. However, note that if you set M_RESULT_OUTPUT_UNITS to M_WORLD without specifying a calibrated image in which to calculate the results, MblobGetResult() will generate an error.
When calculated in pixel units, the pixel aspect ratio, specified with MblobControl(), is taken into account horizontally. Results are returned in units of "pixel height" since the pixel width is adjusted to be equal to the pixel height.
Note that trying to retrieve a result which is not available generates an error.
Specifies the identifier of the blob analysis result buffer from which to get results. The specified feature(s) must have already been calculated with MblobCalculate().
Specifies the feature for which to retrieve the results.
See the Parameter associations section for possible values that can be specified.
Specifies the address of the array in which to write results. Each blob creates a separate result entry. Only results for blobs that are currently included are obtained.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the Feature parameter and possible values returned to the TargetArrayPtr parameter.
To retrieve the result for a binary feature, select one of the following.
Unless otherwise specified, the following values require that you pass the TargetArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to the number of currently included blobs. This number can be obtained, using MblobGetNumber() (When retrieving the result from the currently included blobs.) .
For retrieving results for a binary
feature
|
|||||||||||||||||||||||||||||||||||||||
Feature |
Description
|
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_ALL_FERETS + |
Retrieves all the Feret diameters of all the blobs in the image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AREA + |
Retrieves the number of foreground pixels in each blob (holes are not counted). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BLOB_INCLUSION_STATE + |
Retrieves whether each blob is included in calculations and retrieval of results. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EXCLUDED |
Specifies that the blob is not included in calculations and retrieval of results. |
||||||||||||||||||||||||||||||||||||||
M_INCLUDED |
Specifies that the blob is included in calculations and retrieval of results. |
||||||||||||||||||||||||||||||||||||||
M_BLOB_TOUCHING_IMAGE_BORDERS + |
Retrieves whether each blob is touching the borders of the image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NO |
Specifies that the blob is not touching the borders of the image. |
||||||||||||||||||||||||||||||||||||||
M_YES |
Specifies that the blob is touching one or more borders of the image. |
||||||||||||||||||||||||||||||||||||||
M_BOX_AREA + |
Retrieves the area covered by the bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_ASPECT_RATIO + |
Retrieves the ratio between the horizontal size and the vertical size of the bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_FILL_RATIO + |
Retrieves the ratio between the area of the blob and the area of the bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_X_MAX + |
Retrieves the extreme right X-coordinate of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_X_MIN + |
Retrieves the extreme left X-coordinate of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_Y_MAX + |
Retrieves the extreme bottom Y-coordinate of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_Y_MIN + |
Retrieves the extreme top Y-coordinate of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BREADTH + |
Retrieves a measure of the true breadth of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_COMPACTNESS + |
Retrieves the compactness of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_AREA + |
Retrieves the area of the convex hull of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_COG_X + |
Retrieves the X-component of the center of gravity of the convex hull of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_COG_Y + |
Retrieves the Y-component of the center of gravity of the convex hull of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_FILL_RATIO + |
Retrieves the ratio, for each blob, between the blob's area and the area of its convex hull. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_PERIMETER + |
Retrieves the perimeter of the convex hull of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_PERIMETER + |
Retrieves an approximation of the perimeter of the convex hull of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ELONGATION + |
Retrieves a value that is equal to M_LENGTH / M_BREADTH of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EULER_NUMBER + |
Retrieves the number of blobs minus the number of holes (number of blobs - number of holes). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_AT_PRINCIPAL_AXIS_ANGLE + |
Retrieves the Feret diameter at the principal axis of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_AT_SECONDARY_AXIS_ANGLE + |
Retrieves the Feret diameter at the secondary axis of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_ELONGATION + |
Retrieves a measure of the shape of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MAX_ANGLE + |
Retrieves the angle, in degrees, at which the maximum Feret diameter is found for each blob, relative to the output coordinate system specified using MblobControl() with M_RESULT_OUTPUT_UNITS. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MAX_DIAMETER + |
Retrieves the largest Feret diameter found after checking a certain number of angles. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MAX_DIAMETER_ELONGATION + |
Retrieves the ratio of the maximum Feret diameter of each blob by its perpendicular Feret diameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MEAN_DIAMETER + |
Retrieves the average of the Feret diameters at the angles checked for each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MIN_ANGLE + |
Retrieves the angle, in degrees, at which the minimum Feret diameter is found for each blob, relative to the output coordinate system specified using MblobControl() with M_RESULT_OUTPUT_UNITS. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MIN_DIAMETER + |
Retrieves the smallest Feret diameter found after checking a certain number of angles. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MIN_DIAMETER_ELONGATION + |
Retrieves the ratio of the minimum Feret diameter of each blob by its perpendicular Feret diameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_PERPENDICULAR_TO_MAX_DIAMETER + |
Retrieves the Feret diameter for each blob that is perpendicular to the maximum Feret diameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_PERPENDICULAR_TO_MIN_DIAMETER + |
Retrieves the Feret diameter for each blob that is perpendicular to the minimum Feret diameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_PRINCIPAL_AXIS_ELONGATION + |
Retrieves the ratio, for each blob, of the Feret diameter at the principal axis to the Feret diameter at the secondary axis. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_X + |
Retrieves the dimension of the minimum bounding box of each blob, in the horizontal direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_Y + |
Retrieves the dimension of the minimum bounding box of each blob, in the vertical direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FIRST_POINT_X + |
Retrieves (along with M_FIRST_POINT_Y) a unique point for each blob, that is always on the perimeter of the blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FIRST_POINT_Y + |
Retrieves (along with M_FIRST_POINT_X) a unique point for each blob, that is always on the perimeter of the blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GENERAL_FERET + |
Retrieves the Feret diameter at the specified angle. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GENERAL_MOMENT + |
Retrieves the moment calculation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INTERCEPT_0 + |
Retrieves the number of times a transition from background to foreground (not vice versa) occurs in the horizontal direction for the entire blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INTERCEPT_45 + |
Determines the number of times that the neighborhood configuration occurs in a blob, where F is a foreground pixel, B is a background pixel, and a dot can be any pixel value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INTERCEPT_90 + |
Determines the number of times that the neighborhood configuration occurs in a blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INTERCEPT_135 + |
Determines the number of times that the neighborhood configuration occurs in a blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LABEL_VALUE + |
Retrieves the label value for each blob in an image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LENGTH + |
Retrieves a measure of the true length of each blob, although it is only accurate for certain object types (for example, long thin ones) because it is derived from the perimeter (P) and area (A) assuming that P = 2(length + breadth) and A = length x breadth. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_ANGLE + |
Retrieves the angle of the minimum-area bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_AREA + |
Retrieves the area of the minimum-area bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_CENTER_X + |
Retrieves the X-coordinate of the center of the minimum-area bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_CENTER_Y + |
Retrieves the Y-coordinate of the center of the minimum-area bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_HEIGHT + |
Retrieves the height (shortest side) of the minimum-area bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_PERIMETER + |
Retrieves the perimeter of the minimum-area bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_WIDTH + |
Retrieves the width (longest side) of the minimum-area bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_Xn + |
Retrieves the X-coordinate of the n th vertex of the minimum-area bounding box of each blob, where n stands for an integer between 1 and 4. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_Yn + |
Retrieves the Y-coordinate of the n th vertex of the minimum-area bounding box of each blob, where n stands for an integer between 1 and 4. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_ANGLE + |
Retrieves the angle of the minimum-perimeter bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_AREA + |
Retrieves the area of the minimum-perimeter bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_CENTER_X + |
Retrieves the X-coordinate of the center of the minimum-perimeter bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_CENTER_Y + |
Retrieves the Y-coordinate of the center of the minimum-perimeter bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_HEIGHT + |
Retrieves the height (shortest side) of the minimum-perimeter bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_PERIMETER + |
Retrieves the perimeter of the minimum-perimeter bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_WIDTH + |
Retrieves the width (longest side) of the minimum-perimeter bounding box of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_Xn + |
Retrieves the X-coordinate of the n th vertex of the minimum-perimeter bounding box of each blob, where n stands for an integer between 1 and 4. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_Yn + |
Retrieves the Y-coordinate of the n th vertex of the minimum-perimeter bounding box of each blob, where n stands for an integer between 1 and 4. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_CHAINED_PIXELS + |
Retrieves the number of chained pixels for each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_CONVEX_HULL_POINTS + |
Retrieves the number of points on the convex perimeter of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_HOLES + |
Retrieves the number of holes in each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_RUNS + |
Retrieves the total number of runs in each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PERIMETER + |
Retrieves the total length of edges in each blob (including the edges of any holes), with an allowance made for the staircase effect that is produced when diagonal edges are digitized (inside corners are counted as 1.414, rather than 2.0). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_RECTANGULARITY + |
Retrieves the degree to which each blob is similar to a rectangle. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ROUGHNESS + |
Retrieves a measure of how rough a blob is and is equal to M_PERIMETER / M_CONVEX_PERIMETER. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TOTAL_NUMBER_OF_RUNS + |
Retrieves the total number of runs in all blobs in the target image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_BOX_X_MAX + |
Retrieves the extreme right X-coordinate of each blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_BOX_X_MIN + |
Retrieves the extreme left X-coordinate of each blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_BOX_Y_MAX + |
Retrieves the extreme bottom Y-coordinate of each blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_BOX_Y_MIN + |
Retrieves the extreme top Y-coordinate of each blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_FERET_X + |
Retrieves the dimension of each blob's Feret diameter, in the horizontal direction, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_FERET_Y + |
Retrieves the dimension of each blob's Feret diameter, in the vertical direction, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_X_AT_Y_MAX + |
Retrieves the X-coordinate at the maximum Y-coordinate of each blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_X_AT_Y_MIN + |
Retrieves the X-coordinate at the minimum Y-coordinate of each blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_Y_AT_X_MAX + |
Retrieves the Y-coordinate at the maximum X-coordinate of each blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_Y_AT_X_MIN + |
Retrieves the Y-coordinate at the minimum X-coordinate of each blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_X_MAX_AT_Y_MAX + |
Retrieves the maximum X-coordinate at the maximum Y-coordinate of each blob, calculated in the pixel coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_X_MAX_AT_Y_MIN + |
Retrieves the maximum X-coordinate at the minimum Y-coordinate of each blob, calculated in the pixel coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_X_MIN_AT_Y_MAX + |
Retrieves the minimum X-coordinate at the maximum Y-coordinate of each blob, calculated in the pixel coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_X_MIN_AT_Y_MIN + |
Retrieves the minimum X-coordinate at the minimum Y-coordinate of each blob, calculated in the pixel coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_Y_MAX_AT_X_MAX + |
Retrieves the maximum Y-coordinate at the maximum X-coordinate of each blob, calculated in the pixel coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_Y_MAX_AT_X_MIN + |
Retrieves the maximum Y-coordinate at the minimum X-coordinate of each blob, calculated in the pixel coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_Y_MIN_AT_X_MAX + |
Retrieves the minimum Y-coordinate at the maximum X-coordinate of each blob, calculated in the pixel coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_Y_MIN_AT_X_MIN + |
Retrieves the minimum Y-coordinate at the minimum X-coordinate of each blob, calculated in the pixel coordinate system. (more details...) |
You can add one of the following values to the above-mentioned values to specify to retrieve the contact points of the Feret.
For retrieving Feret contact
points
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_FERET_CONTACT_POINTS_X1 |
Retrieves the X-coordinate for the first contact point of the Feret diameter of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_CONTACT_POINTS_X2 |
Retrieves the X-coordinate for the second contact point of the Feret diameter of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_CONTACT_POINTS_Y1 |
Retrieves the Y-coordinate for the first contact point of the Feret diameter of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_CONTACT_POINTS_Y2 |
Retrieves the Y-coordinate for the second contact point of the Feret diameter of each blob. (more details...) |
To retrieve the result for a grayscale feature, select one of the following. Results for these features are only available if both a blob identifier image and a grayscale image were passed to MblobCalculate() (and the features were selected for calculation).
Unless otherwise specified, the following values require that you pass the TargetArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to the number of currently included blobs. This number can be obtained using MblobGetNumber() (When retrieving the result from the currently included blobs.) .
For retrieving results for a grayscale
feature with blob identifier and grayscale image
|
|||||||||||||||||||||||||||||||||||||||
Feature |
Description
|
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_BLOB_CONTRAST + |
Retrieves the difference between the maximum and minimum pixel values of a blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MAX_PIXEL + |
Retrieves the maximum pixel value found in each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MEAN_PIXEL + |
Retrieves the mean pixel value in each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PIXEL + |
Retrieves the minimum pixel value found in each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SIGMA_PIXEL + |
Retrieves the standard deviation of pixel values in each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SUM_PIXEL + |
Retrieves the sum of all pixel values in each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SUM_PIXEL_SQUARED + |
Retrieves the sum of the squares of each pixel value in each blob. (more details...) |
To retrieve the result for a feature that has two different definitions (a binary and a grayscale definition), select one of the following values. If you did not provide both a blob identifier image and a grayscale image, only the binary version was calculated. If you did provide a grayscale image, both versions were calculated, unless otherwise specified. If both versions were calculated and no version is specified, then the grayscale version of the feature is retrieved.
Unless otherwise specified, the following values require that you pass the TargetArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to the number of currently included blobs. This number can be obtained using MblobGetNumber() (When retrieving the result from the currently included blobs.) .
For retrieving results for a feature that
has two different definitions
|
|||||||||||||||||||||||||||||||||||||||
Feature |
Description
|
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_AXIS_PRINCIPAL_ANGLE + |
Retrieves the angle, in degrees, at which each blob has the least moment of inertia. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AXIS_SECONDARY_ANGLE + |
Retrieves the angle perpendicular to M_AXIS_PRINCIPAL_ANGLE of each blob, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CENTER_OF_GRAVITY_X + |
Retrieves the X-position of the center of gravity of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CENTER_OF_GRAVITY_Y + |
Retrieves the Y-position of the center of gravity of each blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOMENT_CENTRAL_X0_Y2 + |
Retrieves the central moment for each blob where the order of X equals 0 and the order of Y equals 2. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOMENT_CENTRAL_X1_Y1 + |
Retrieves the central moment for each blob where the order of X equals 1 and the order of Y equals 1. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOMENT_CENTRAL_X2_Y0 + |
Retrieves the central moment for each blob where the order of X equals 2 and the order of Y equals 0. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOMENT_X0_Y1 + |
Retrieves the ordinary moment for each blob where the order of X equals 0 and the order of Y equals 1. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOMENT_X0_Y2 + |
Retrieves the ordinary moment for each blob where the order of X equals 0 and the order of Y equals 2. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOMENT_X1_Y0 + |
Retrieves the ordinary moment for each blob where the order of X equals 1 and the order of Y equals 0. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOMENT_X1_Y1 + |
Retrieves the ordinary moment for each blob where the order of X equals 1 and the order of Y equals 1. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOMENT_X2_Y0 + |
Retrieves the ordinary moment for each blob where the order of X equals 2 and the order of Y equals 0. (more details...) |
You can add one of the following values to the above-mentioned values to set whether the results should be returned for the binary or grayscale version of the selected feature.
For feature parameters that have two
definitions
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_BINARY + |
Retrieves the result for the binary version of the selected feature. |
||||||||||||||||||||||||||||||||||||||
M_GRAYSCALE + |
Retrieves the result for the grayscale version of the selected feature. (more details...) |
You can add one of the following values to the above-mentioned values to set the requested results to a data type.
For specifying a data type
|
|||||||||||||||||||||||||||||||||||||||
Feature |
Description
|
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_TYPE_CHAR |
Casts the requested results to a char. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr data type info |
Data
type: array of type char |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_DOUBLE |
Casts the requested results to a MIL_DOUBLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_FLOAT |
Casts the requested results to a MIL_FLOAT. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr data type info |
Data
type: array of type MIL_FLOAT |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT |
Casts the requested results to a MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr data type info |
Data
type: array of type MIL_INT |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT16 |
Casts the requested results to a MIL_INT16. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr data type info |
Data
type: array of type MIL_INT16 |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT32 |
Casts the requested results to a MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr data type info |
Data
type: array of type MIL_INT32 |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT64 |
Casts the requested results to a MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr data type info |
Data
type: array of type MIL_INT64 |
To retrieve a result that specifies whether a limit is reached, select one of the values specified in the table below:
Unless otherwise specified, the following values require that you pass the TargetArrayPtr parameter the address of a MIL_DOUBLE.
For retrieving results of reaching
limits
|
|||||||||||||||||||||||||||||||||||||||
Feature |
Description
|
||||||||||||||||||||||||||||||||||||||
TargetArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_MAX_BLOBS_END |
Retrieves whether the maximum number of blobs was reached. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FALSE |
Specifies that the maximum number of blobs was not reached. |
||||||||||||||||||||||||||||||||||||||
M_TRUE |
Specifies that the maximum number of blobs was reached. |
||||||||||||||||||||||||||||||||||||||
M_TIMEOUT_END |
Retrieves whether the timeout limit was reached. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FALSE |
Specifies that the timeout limit was not reached. |
||||||||||||||||||||||||||||||||||||||
M_TRUE |
Specifies that the timeout limit was reached. |
Header | Include mil.h. |
Library | Use mil.lib; milblob.lib. |
DLL | Requires mil.dll; milblob.dll. |