MIL_ID BlobResId, | //in |
MIL_INT LabelVal, | //in |
MIL_INT64 Feature, | //in |
void *TargetVarPtr | //out |
This function retrieves the result for a specified feature, for a specific blob, from the blob analysis result buffer. The blob for which to obtain the result is determined by its label value.
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, MblobGetResultSingle() 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 label value of the blob for which to get the result. The label value can be obtained, using MblobGetLabel() or MblobGetResult(). Note, you cannot obtain results for blobs that have been deleted from the result buffer, using MblobSelect().
Specifies the feature for which to retrieve results. The specified feature(s) must have already been calculated with MblobCalculate().
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the result retrieved from the blob analysis result buffer.
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 TargetVarPtr 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 TargetVarPtr parameter the address of a MIL_DOUBLE.
For retrieving results for a binary
feature
|
|||||||||||||||||||||||||||||||||||||||
Feature |
Description
|
||||||||||||||||||||||||||||||||||||||
TargetVarPtr - 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 the specified blob (holes are not counted). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BLOB_INCLUSION_STATE + |
Retrieves the inclusion state of the blob. (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 the 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 the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_ASPECT_RATIO + |
Retrieves the ratio between the horizontal size and the vertical size of the bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_FILL_RATIO + |
Retrieves the ratio between the area of the blob and the area of the bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_X_MAX + |
Retrieves the extreme right coordinate of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_X_MIN + |
Retrieves the extreme left coordinate of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_Y_MAX + |
Retrieves the extreme bottom coordinate of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_Y_MIN + |
Retrieves the extreme top coordinate of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BREADTH + |
Retrieves a measure of the true breadth of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CHAIN_INDEX + |
Retrieves the indices which differentiate each chain's pixels within the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
M_CHAIN_X + |
Retrieves the X-coordinate of each chained pixel in the specified blob, for all chains contained within the blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
M_CHAIN_Y + |
Retrieves the Y-coordinate of each chained pixel in the specified blob, for all chains contained within the blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
M_COMPACTNESS + |
Retrieves the compactness of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_AREA + |
Retrieves the area of the convex hull of a specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_COG_X + |
Retrieves the X-component of the center of gravity of the convex hull of a specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_COG_Y + |
Retrieves the Y-component of the center of gravity of the convex hull of a specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_FILL_RATIO + |
Retrieves the ratio of the area of a specified blob to the area of its convex hull. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_PERIMETER + |
Retrieves the perimeter of the convex hull of a specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_X + |
Retrieves the X-coordinate of each point on the convex perimeter of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_XY_PACKED + |
Retrieves the packed coordinates (X, Y) of each point on the perimeter of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_HULL_Y + |
Retrieves the Y-coordinate of each point on the convex perimeter of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: array of type MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
M_CONVEX_PERIMETER + |
Retrieves an approximation of the perimeter of the convex hull of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ELONGATION + |
Retrieves a value that is equal to M_LENGTH / M_BREADTH of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EULER_NUMBER + |
Retrieves the number of blobs - number of holes. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_AT_PRINCIPAL_AXIS_ANGLE + |
Retrieves the Feret diameter at the principal axis of the blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_AT_SECONDARY_AXIS_ANGLE + |
Retrieves the Feret diameter at the secondary axis of the blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_ELONGATION + |
Retrieves a measure of the shape of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MAX_ANGLE + |
Retrieves the angle, in degrees, at which the maximum Feret diameter is found for the specified 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 by its perpendicular Feret diameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MEAN_DIAMETER + |
Retrieves the average of the Feret diameters at the angles checked for the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_MIN_ANGLE + |
Retrieves the angle, in degrees, at which the minimum Feret diameter is found, 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 by its perpendicular Feret diameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_PERPENDICULAR_TO_MAX_DIAMETER + |
Retrieves the Feret diameter that is perpendicular to the maximum Feret diameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_PERPENDICULAR_TO_MIN_DIAMETER + |
Retrieves the Feret diameter that is perpendicular to the minimum Feret diameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_PRINCIPAL_AXIS_ELONGATION + |
Retrieves the ratio 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 the specified blob, in the horizontal direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_Y + |
Retrieves the dimension of the minimum bounding box of the specified blob, in the vertical direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FIRST_POINT_X + |
Retrieves (along with M_FIRST_POINT_Y) a unique point for the specified 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 the specified 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 the specified blob in an image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LENGTH + |
Retrieves a measure of the true length of an object, 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 the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_AREA + |
Retrieves the area of the minimum-area bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_CENTER_X + |
Retrieves the X-coordinate of the center of the minimum-area bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_CENTER_Y + |
Retrieves the Y-coordinate of the center of the minimum-area bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_HEIGHT + |
Retrieves the height (shortest side) of the minimum-area bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_PERIMETER + |
Retrieves the perimeter of the minimum-area bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_WIDTH + |
Retrieves the width (longest side) of the minimum-area bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_AREA_BOX_Xn + |
Retrieves the X-coordinate of the n th vertex of the minimum-area bounding box of the specified 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 the specified 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 the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_AREA + |
Retrieves the area of the minimum-perimeter bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_CENTER_X + |
Retrieves the X-coordinate of the center of the minimum-perimeter bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_CENTER_Y + |
Retrieves the Y-coordinate of the center of the minimum-perimeter bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_HEIGHT + |
Retrieves the height (shortest side) of the minimum-perimeter bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_PERIMETER + |
Retrieves the perimeter of the minimum-perimeter bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_WIDTH + |
Retrieves the width (longest side) of the minimum-perimeter bounding box of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PERIMETER_BOX_Xn + |
Retrieves the X-coordinate of the n th vertex of the minimum-perimeter bounding box of the specified 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 the specified 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 the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_CONVEX_HULL_POINTS + |
Retrieves the number of points on the convex perimeter of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_HOLES + |
Retrieves the number of holes in the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_RUNS + |
Retrieves the total number of runs in the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PERIMETER + |
Retrieves the total length of edges in the specified 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 the specified blob is similar to a rectangle. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ROUGHNESS + |
Retrieves a measure of how rough the specified blob is and is equal to M_PERIMETER / M_CONVEX_PERIMETER. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_BOX_X_MAX + |
Retrieves the extreme right X-coordinate of the specified blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_BOX_X_MIN + |
Retrieves the extreme left X-coordinate of the specified blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_BOX_Y_MAX + |
Retrieves the extreme Y-bottom coordinate of the specified blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_BOX_Y_MIN + |
Retrieves the extreme top Y-coordinate of the specified blob, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_FERET_X + |
Retrieves the dimension of the minimum bounding box of the specified blob, in the horizontal direction, calculated in the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_WORLD_FERET_Y + |
Retrieves the dimension of the minimum bounding box of the specified blob, 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 a contact point(s) of the Feret.
For retrieving a Feret contact
point(s)
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_FERET_CONTACT_POINTS_X1 |
Retrieves the X-coordinate for the first contact point of the Feret diameter of the blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_CONTACT_POINTS_X2 |
Retrieves the X-coordinate for the second contact point of the Feret diameter of the blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_CONTACT_POINTS_Y1 |
Retrieves the Y-coordinate for the first contact point of the Feret diameter of the blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FERET_CONTACT_POINTS_Y2 |
Retrieves the Y-coordinate for the second contact point of the Feret diameter of the blob. (more details...) |
The following features require grayscale pixel values, and were calculated only if you provided a grayscale image.
Unless otherwise specified, the following values require that you pass the TargetVarPtr parameter the address of a MIL_DOUBLE.
For grayscale pixel values
|
|||||||||||||||||||||||||||||||||||||||
Feature |
Description
|
||||||||||||||||||||||||||||||||||||||
TargetVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_BLOB_CONTRAST + |
Retrieves the difference between the maximum and minimum pixel values of a specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MAX_PIXEL + |
Retrieves the maximum pixel value found in the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MEAN_PIXEL + |
Retrieves the mean pixel value in the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_PIXEL + |
Retrieves the minimum pixel value found in the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SIGMA_PIXEL + |
Retrieves the standard deviation of pixel values in the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SUM_PIXEL + |
Retrieves the sum of all pixel values in the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SUM_PIXEL_SQUARED + |
Retrieves the sum of the squares of each pixel value in the specified 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 the specified 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. To specify which result to retrieve, see the combination values below. 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 TargetVarPtr parameter the address of a MIL_DOUBLE.
For a feature that has two different
definitions
|
|||||||||||||||||||||||||||||||||||||||
Feature |
Description
|
||||||||||||||||||||||||||||||||||||||
TargetVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_AXIS_PRINCIPAL_ANGLE + |
Retrieves the angle, in degrees, at which the specified blob has the least moment of inertia. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AXIS_SECONDARY_ANGLE + |
Retrieves the angle perpendicular to M_AXIS_PRINCIPAL_ANGLE, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CENTER_OF_GRAVITY_X + |
Retrieves the X-position of the center of gravity of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CENTER_OF_GRAVITY_Y + |
Retrieves the Y-position of the center of gravity of the specified blob. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOMENT_CENTRAL_X0_Y2 + |
Retrieves the central moment for the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 the specified 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 a feature that has two different
definitions and both versions have been calculated
|
|||||||||||||||||||||||||||||||||||||||
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 the data type
|
|||||||||||||||||||||||||||||||||||||||
Feature |
Description
|
||||||||||||||||||||||||||||||||||||||
TargetVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_TYPE_CHAR |
Casts the requested results to a char. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: char |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_DOUBLE |
Casts the requested results to a MIL_DOUBLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_FLOAT |
Casts the requested results to a MIL_FLOAT. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: MIL_FLOAT |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT |
Casts the requested results to a MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: MIL_INT |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT16 |
Casts the requested results to a MIL_INT16. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: MIL_INT16 |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT32 |
Casts the requested results to a MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: MIL_INT32 |
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT64 |
Casts the requested results to a MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
TargetVarPtr data type info |
Data
type: MIL_INT64 |
Header | Include mil.h. |
Library | Use mil.lib; milblob.lib. |
DLL | Requires mil.dll; milblob.dll. |