MIL_ID MarkerOrMeasResultId, | //in |
MIL_INT64 ResultType, | //in |
void *FirstResultArrayPtr, | //out |
void *SecondResultArrayPtr | //out |
This function retrieves the result(s) of the specified type for all points, edges, stripes, or circles from a measurement marker buffer or a measurement result buffer. Measurement marker buffers hold the results of an MmeasFindMarker() operation, while measurement result buffers hold the results of an MmeasCalculate() operation. Depending on the buffer you are using, you must call either MmeasFindMarker() or MmeasCalculate() prior to calling MmeasGetResult(); otherwise, you will get incorrect results.
If you are using a multiple-occurrence marker, MmeasGetResult() typically returns the specified result for all occurrences. The result for the marker's first occurrence will be followed by the result for the marker's second occurrence, and so on. To return results for a single occurrence, use MmeasGetResultSingle(). Note that some results cannot be returned for each occurrence since they are based on the marker itself (for example, M_BOX_ANGLE_FOUND, which returns the angle of the marker's box search region); in such cases, you will get a single result, even if you are using a multiple-occurrence marker.
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 and you want to retrieve positional and dimensional results in pixel units, use MmeasSetMarker() for a measurement marker buffer, or MmeasControl() for a measurement result buffer, with M_RESULT_OUTPUT_UNITS set to M_PIXEL. If you set M_RESULT_OUTPUT_UNITS to M_WORLD without specifying a calibrated image in which to calculate the results, MmeasGetResult() will generate an error.
For certain result types, MIL returns one value for an edge marker, and two values for a stripe marker. In these cases, for an edge marker, MIL returns all results to FirstResultArrayPtr; SecondResultArrayPtr must be set to M_NULL.
When retrieving results for a stripe marker, result types can return one general result for the stripe, results for both edges of the stripe, or results for one edge of the stripe. To return results for one edge of the stripe, you must specify the edge using the combination value M_EDGE_FIRST or M_EDGE_SECOND. In this case, MIL returns the results to FirstResultArrayPtr and you must set SecondResultArrayPtr to M_NULL. When retrieving results for both edges of a stripe marker, MIL returns results for the first edge to FirstResultArrayPtr and for the second edge to SecondResultArrayPtr.
Specifies the identifier of the measurement marker buffer (allocated with MmeasAllocMarker()) or measurement result buffer (allocated with MmeasAllocResult()) from which to retrieve results.
Specifies the type of result(s) to retrieve.
See the Parameter associations section for possible values that can be specified.
Specifies the address of the first array in which to write the requested information.
With a multiple-occurrence marker, the results for each occurrence of the marker will be stored in a separate element of the specified arrays.
See the Parameter associations section for possible values that can be returned.
Specifies the address of the second array in which to write the requested information.
For most result types, only FirstResultArrayPtr will be used, and SecondResultArrayPtr should be set to M_NULL.
With a multiple-occurrence marker, results for each edge or stripe are held in an array. The results for each occurrence of the marker will be stored in a separate element of the specified arrays.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the ResultType parameter and possible values returned to the FirstResultArrayPtr and SecondResultArrayPtr parameters.
To retrieve results from any type of marker (measurement marker buffer), or from a measurement result buffer, ResultType can be set to one of the values specified in the table below.
For any type of marker (measurement
marker buffer) or a measurement result buffer
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_NUMBER + |
Retrieves the number of points, edges, stripes, or circles measured. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the number of points, edges, stripes, or circles measured. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
To retrieve results from an edge or stripe marker (measurement marker buffer), or from a measurement result buffer, ResultType can be set to one of the values specified in the table below. If you are getting results from a measurement result buffer, and you are using two multiple-occurrence markers that have a different number of occurrences, MIL uses the fewest number of occurrences to calculate results (MmeasCalculate()).
Unless otherwise specified, the following values require that you pass the FirstResultArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to the number of marker occurrences found. In addition, you must pass the SecondResultArrayPtr parameter M_NULL.
For an edge or stripe marker (measurement
marker buffer) or a measurement result buffer
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_ANGLE + |
Retrieves the angle for each marker occurrence, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LINE_A + |
Retrieves the coefficient A of the line equation, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LINE_B + |
Retrieves the coefficient B of the line equation, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LINE_C + |
Retrieves the coefficient C of the line equation, for each marker occurrence. (more details...) |
To retrieve results from any type of marker (measurement marker buffer), ResultType can be set to one of the values specified in the table below.
For any type of marker (measurement
marker buffer)
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_POSITION + |
Retrieves the X- and Y-coordinates of the position, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the position on the X-axis. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the position on the Y-axis. |
To retrieve results from an edge, stripe, or circle marker (measurement marker buffer), ResultType can be set to one of the values specified in the table below.
For an edge, stripe, or circle marker
(measurement marker buffer)
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_FIT_ERROR_MAX + |
Retrieves the maximum distance from a subedge to the fitted line equation (for edge or stripe markers) or to the fitted circle (for circle markers), for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the maximum fit error. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the maximum fit error for the second edge of a stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_OUTLIERS + |
Retrieves the number of subedges considered outliers, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the number of outliers for the edge or circle. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the number of outliers for the second edge of a stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_REGION_WAS_CLIPPED + |
Retrieves whether the marker's search region was clipped. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
0 |
Specifies that the search region was not clipped. |
||||||||||||||||||||||||||||||||||||||
1 |
Specifies that the search region was clipped. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_SUB_EDGES_MARKER_INDEX + |
Retrieves the index of the occurrence on which each subedge is located, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Returns the index values. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns whether the result refers to the first or second edge of the stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDGE_FIRST |
Specifies that the edge is the first edge in the stripe. |
||||||||||||||||||||||||||||||||||||||
M_EDGE_SECOND |
Specifies that the edge is the second edge in the stripe. |
||||||||||||||||||||||||||||||||||||||
M_SUB_EDGES_POSITION + |
Retrieves the X- and Y-coordinates of the subedges, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Returns the position on the X-axis. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Returns the position on the Y-axis. |
||||||||||||||||||||||||||||||||||||||
M_SUB_EDGES_WEIGHT + |
Retrieves the weight of the subedges, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Returns one of the following. (more details...) |
||||||||||||||||||||||||||||||||||||||
0 |
Specifies that the subedge was not found. |
||||||||||||||||||||||||||||||||||||||
1 |
Specifies that the subedge was found. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_VALID_FLAG + |
Retrieves whether the marker was found. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
M_FALSE |
Specifies that the marker was not found. |
||||||||||||||||||||||||||||||||||||||
M_TRUE |
Specifies that the marker was found. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
To retrieve results from an edge or stripe marker (measurement marker buffer), ResultType can be set to one of the values specified in the table below, unless otherwise specified.
Unless otherwise specified, the following values require that you pass the FirstResultArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to the number of marker occurrences found. In addition, you must pass the SecondResultArrayPtr parameter the address of a MIL_DOUBLE.
For an edge or stripe marker (measurement
marker buffer)
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_BOX_ANGLE_FOUND + |
Retrieves the angle found for the box search region when the angle is internally determined by MIL. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the angle of the box search region, in degrees. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_BOX_CORNER_BOTTOM_LEFT + |
Retrieves the coordinates of the bottom-left corner of the marker's box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-position. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the Y-position. |
||||||||||||||||||||||||||||||||||||||
M_BOX_CORNER_BOTTOM_RIGHT + |
Retrieves the coordinates of the bottom-right corner of the marker's box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-position. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the Y-position. |
||||||||||||||||||||||||||||||||||||||
M_BOX_CORNER_TOP_LEFT + |
Retrieves the coordinates of the top-left corner of the marker's box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-position. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the Y-position. |
||||||||||||||||||||||||||||||||||||||
M_BOX_CORNER_TOP_RIGHT + |
Retrieves the coordinates of the top-right corner of the marker's box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-position. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the Y-position. |
||||||||||||||||||||||||||||||||||||||
M_BOX_EDGEVALUES + |
Retrieves the edgevalues of the marker's box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the edgevalues. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_BOX_EDGEVALUES_NUMBER + |
Retrieves the number of edgevalues that M_BOX_EDGEVALUES returns. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the number of edgevalues. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_DISTANCE_FROM_BOX_ORIGIN + |
Retrieves the position, as a distance value relative to the origin of the box search region, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the position as a distance value. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the position as the distance to the second edge of a stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_PROFILE_SCALE_OFFSET + |
Retrieves the scale and offset used to draw a profile. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Returns the scale used to draw a profile. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Returns the offset used to draw a profile. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDGE_CONTRAST + |
Retrieves the grayscale difference between the start (M_EDGE_START) and end (M_EDGE_END) of the intensity transition from which the edge is established, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the contrast. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the contrast of the second edge of a stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDGE_END + |
Retrieves the X- and Y-coordinates of the end of the edge (that is, the end of the intensity transition from which the edge is established), for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the X-coordinate of the end of the edge. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the Y-coordinate of the end of the edge. |
||||||||||||||||||||||||||||||||||||||
M_EDGE_INSIDE + |
Retrieves the number of edges located between the two exterior edges of a stripe, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDGE_START + |
Retrieves the X- and Y-coordinates of the start of the edge (that is, the start of the intensity transition from which the edge is established), for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the X-coordinate of the start of the edge. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the Y-coordinate of the start of the edge. |
||||||||||||||||||||||||||||||||||||||
M_EDGE_STRENGTH + |
Retrieves the greatest edgevalue of the edge, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the edge strength. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the strength of the second edge of a stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDGE_WIDTH + |
Retrieves the distance between the start (M_EDGE_START) and end (M_EDGE_END) of the intensity transition from which the edge is established, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Returns the edge width. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Returns the edge width of the second edge of a stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDGEVALUE_PEAK_CONTRAST + |
Retrieves the grayscale difference of the intensity transition between the first zero edgevalues on both sides of the established edge peak (before M_EDGEVALUE_PEAK_POS_MIN, and after M_EDGEVALUE_PEAK_POS_MAX), for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the contrast. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the contrast of the second edge of a stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDGEVALUE_PEAK_POS_MAX + |
Retrieves the X- and Y-coordinates of the maximum value of the edge peak (that is, the maximum edgevalue along the first derivative representation of the intensity profile), known as the summit, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the X-coordinate of the maximum position of the edge peak. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the Y-coordinate of the maximum position of the edge peak. |
||||||||||||||||||||||||||||||||||||||
M_EDGEVALUE_PEAK_POS_MIN + |
Retrieves the X- and Y-coordinates of the minimum position of the edge peak (that is, the minimum edgevalue along the first derivative representation of the intensity profile), for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the X-coordinate of the minimum position of the edge peak. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the Y-coordinate of the minimum position of the edge peak. |
||||||||||||||||||||||||||||||||||||||
M_EDGEVALUE_PEAK_WIDTH + |
Retrieves the distance between the minimum (M_EDGEVALUE_PEAK_POS_MIN) and maximum (M_EDGEVALUE_PEAK_POS_MAX) position of the edge peak (that is, the minimum and maximum positions of the edgevalue along the first derivative representation of the intensity profile), for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Returns the edge width. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Returns the edge width of the second edge of a stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LENGTH + |
Retrieves the length of the side of the search region perpendicular to the search direction. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LINE_END_POINT_FIRST + |
Retrieves the X- and Y-coordinates of the first intersection point, for each marker occurrence, between the edge's mean line and the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the X-coordinate of the intersection point. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the Y-coordinate of the intersection point. |
||||||||||||||||||||||||||||||||||||||
M_LINE_END_POINT_SECOND + |
Retrieves the X- and Y-coordinates of the second intersection point, for each marker occurrence, between the edge's mean line and the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the X-coordinate of the intersection point. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the Y-coordinate of the intersection point. |
||||||||||||||||||||||||||||||||||||||
M_ORIENTATION + |
Retrieves the orientation of the marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
M_HORIZONTAL |
Specifies a horizontal orientation. |
||||||||||||||||||||||||||||||||||||||
M_VERTICAL |
Specifies a vertical orientation. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_POLARITY + |
Retrieves the polarity, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the polarity of the edge. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NEGATIVE |
Specifies that the polarity of the edge is negative. |
||||||||||||||||||||||||||||||||||||||
M_POSITIVE |
Specifies that the polarity of the edge is positive. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: array of type MIL_DOUBLE Returns the polarity of the second edge of a stripe. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NEGATIVE |
Specifies that the polarity of the second edge is negative. |
||||||||||||||||||||||||||||||||||||||
M_POSITIVE |
Specifies that the polarity of the second edge is positive. |
||||||||||||||||||||||||||||||||||||||
M_SCORE + |
Retrieves the score, for each marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SCORE_TOTAL + |
Retrieves the marker's final score. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the score, as a percentage. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_SPACING + |
Retrieves the distance between each marker occurrence and the next. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_STRIPE_WIDTH + |
Retrieves the width of the stripe, for each marker occurrence. (more details...) |
You can add one of the following values to the above-mentioned values to specify the edge for which to retrieve results (stripe markers only).
Note that if you explicitly request the result for a specific edge of a stripe, using M_EDGE_FIRST or M_EDGE_SECOND, you must retrieve the result for that edge with FirstResultArrayPtr. In this case, you must set SecondResultArrayPtr to M_NULL.
For specifying the edge for which to
retrieve results (stripe markers only)
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_EDGE_FIRST |
Retrieves the specified result for the first outermost edge of a stripe. |
||||||||||||||||||||||||||||||||||||||
M_EDGE_SECOND |
Retrieves specified result for the second outermost edge of a stripe. |
To retrieve results from a circle marker (measurement marker buffer), ResultType can be set to the value specified in the table below.
Unless otherwise specified, the following values require that you pass the FirstResultArrayPtr parameter the address of a MIL_DOUBLE. In addition, you must pass the SecondResultArrayPtr parameter M_NULL.
For a circle marker (measurement marker
buffer)
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_RADIUS + |
Retrieves the circle's radius. (more details...) |
To retrieve results from a measurement result buffer, the ResultType parameter can be set to one of the following values. If you are using two multiple-occurrence markers that have a different number of occurrences, MIL uses the fewest number of occurrences to calculate results (MmeasCalculate()).
Unless otherwise specified, the following values require that you pass the FirstResultArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to the number of occurrences of the marker found the fewest times. In addition, you must pass the SecondResultArrayPtr parameter M_NULL.
For a measurement result
buffer
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_DISTANCE + |
Retrieves the distance between each occurrence of the two markers. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISTANCE_X + |
Retrieves the distance on the X-axis between each occurrence of the two markers. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISTANCE_Y + |
Retrieves the distance on the Y-axis between each occurrence of the two markers. (more details...) |
You can add one of the following values to the above-mentioned values to get the type of statistic to be performed.
For specifying the type of statistic to
be performed
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_MAX |
Retrieves the maximum value for the requested characteristic for all the occurrences of a marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_MEAN |
Retrieves the mean value for the requested characteristic for all the occurrences of a marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_MIN |
Retrieves the minimum value for the requested characteristic for all the occurrences of a marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
||||||||||||||||||||||||||||||||||||||
M_STANDARD_DEVIATION |
Retrieves the standard deviation of the values for the requested characteristic for all the occurrences of a marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: M_NULL |
You can add one of the following values to the above-mentioned values to cast the requested results to the required data type.
For specifying the data
type
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_DOUBLE |
Casts the requested results to a MIL_DOUBLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr and SecondResultArrayPtr |
Data
type info
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT |
Casts the requested results to a MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr and SecondResultArrayPtr |
Data
type info
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT32 |
Casts the requested results to a MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr and SecondResultArrayPtr |
Data
type info
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT64 |
Casts the requested results to a MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr and SecondResultArrayPtr |
Data
type info
|
Header | Include mil.h. |
Library | Use mil.lib; milmeas.lib. |
DLL | Requires mil.dll; milmeas.dll. |