MIL_ID MarkerOrMeasResultId, | //in |
MIL_INT64 ResultType, | //in |
void *FirstResultArrayPtr, | //out |
void *SecondResultArrayPtr, | //out |
MIL_INT ResultIndex | //in |
This function retrieves the specified result of the specified type for a point, edge, stripe, or circle 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 an incorrect result.
If you are using a multiple-occurrence marker, MmeasGetResultSingle() returns the specified result for a single occurrence, which you must specify with the ResultIndex parameter. To return results for all occurrences, use MmeasGetResult().
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, MmeasGetResultSingle() 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 the result to FirstResultArrayPtr; SecondResultArrayPtr must be set to M_NULL.
When retrieving a result for a stripe marker, result types can return one general result for the stripe, a result for both edges of the stripe, or a result for one edge of the stripe. To return the result 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 result to FirstResultArrayPtr and you must set SecondResultArrayPtr to M_NULL. When retrieving a result for both edges of a stripe marker, MIL returns the result for the first edge to FirstResultArrayPtr and for the second edge to SecondResultArrayPtr.
Specifies the identifier of the measurement marker (allocated with MmeasAllocMarker()) or measurement result buffer (allocated with MmeasAllocResult()) from which to retrieve results.
Specifies the type of result to retrieve.
See the Parameter associations section for possible values that can be specified.
Specifies the address of the first variable or array in which to write the requested information.
See the Parameter associations section for possible values that can be returned.
Specifies the address of the second variable or 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.
See the Parameter associations section for possible values that can be returned.
Specifies the index of the occurrence for which to retrieve information.
For specifying the index
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
0 <= Value <= NumberOfOccurrences-1 |
Specifies the index of the occurrence. |
The tables below list possible values for the ResultType parameter and possible values returned to the FirstResultArrayPtr and SecondResultArrayPtr parameters.
To retrieve a result 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. 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()).
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 a result 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 a MIL_DOUBLE. 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 of the edge for the marker occurrence, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LINE_A + |
Retrieves the coefficient A of the line equation, for the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LINE_B + |
Retrieves the coefficient B of the line equation, for the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LINE_C + |
Retrieves the coefficient C of the line equation, for the marker occurrence. (more details...) |
To retrieve a result 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 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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the position on the X-axis. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the position on the Y-axis. |
To retrieve a result from an edge, stripe, or circle marker (measurement marker buffer), ResultType can be set to one of the values specified in the table below.
Unless otherwise specified, the following values require that you pass the FirstResultArrayPtr parameter and the SecondResultArrayPtr parameter the address of a MIL_DOUBLE.
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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data 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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the number of outliers for the edge or circle. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data 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 search region was clipped. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Returns one of the following. (more details...) |
||||||||||||||||||||||||||||||||||||||
0 |
Specifies that the search region was not clipped. |
||||||||||||||||||||||||||||||||||||||
1 |
Specifies that the search region was clipped. |
||||||||||||||||||||||||||||||||||||||
M_SUB_EDGES_MARKER_INDEX + |
Retrieves the index on which each subedge is located, for the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Returns the index value. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
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 the 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 the 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. |
||||||||||||||||||||||||||||||||||||||
M_VALID_FLAG + |
Retrieves whether the marker was found. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Returns one of the following. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FALSE |
Specifies that the marker was not found. |
||||||||||||||||||||||||||||||||||||||
M_TRUE |
Specifies that the marker was found. |
To retrieve a result 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 and 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...) |
||||||||||||||||||||||||||||||||||||||
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 position on the X-axis. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the position on the Y-axis. |
||||||||||||||||||||||||||||||||||||||
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 position on the X-axis. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the position on the Y-axis. |
||||||||||||||||||||||||||||||||||||||
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 position on the X-axis. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the position on the Y-axis. |
||||||||||||||||||||||||||||||||||||||
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 position on the X-axis. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the position on the Y-axis. |
||||||||||||||||||||||||||||||||||||||
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. |
||||||||||||||||||||||||||||||||||||||
M_BOX_EDGEVALUES_NUMBER + |
Retrieves the number of edgevalues that M_BOX_EDGEVALUES returns. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Returns the number of edgevalues. |
||||||||||||||||||||||||||||||||||||||
M_DISTANCE_FROM_BOX_ORIGIN + |
Retrieves the position, as a distance value relative to the origin of the box search region, for the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the position as the distance to the second edge of a stripe. (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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data 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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-coordinate of the end of the edge. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data 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 the 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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-coordinate of the start of the edge. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the Y-coordinate of the start of the edge. |
||||||||||||||||||||||||||||||||||||||
M_EDGE_STRENGTH + |
Retrieves the greatest edgevalue of the edge, for the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the strength for 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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE 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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data 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 position of the edge peak (that is, the maximum edgevalue along the first derivative representation of the intensity profile), for the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-coordinate of the maximum position of the edge peak. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data 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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-coordinate of the minimum position of the edge peak. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data 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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE 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 the marker occurrence, between the edge's mean line and the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-coordinate of the intersection point. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data 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 the marker occurrence, between the edge's mean line and the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the X-coordinate of the intersection point. |
||||||||||||||||||||||||||||||||||||||
SecondResultArrayPtr |
Data
type info
Data type: MIL_DOUBLE Returns the Y-coordinate of the intersection point. |
||||||||||||||||||||||||||||||||||||||
M_ORIENTATION + |
Retrieves the orientation of the marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr |
Returns one of the following. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_HORIZONTAL |
Specifies a horizontal orientation. |
||||||||||||||||||||||||||||||||||||||
M_VERTICAL |
Specifies a vertical orientation. |
||||||||||||||||||||||||||||||||||||||
M_POLARITY + |
Retrieves the polarity, for the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstResultArrayPtr | |||||||||||||||||||||||||||||||||||||||
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: 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 the marker occurrence. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SCORE_TOTAL + |
Retrieves the marker's final score. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SPACING + |
Retrieves the distance between the marker occurrence and the next. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_STRIPE_WIDTH + |
Retrieves the width of the stripe, for the 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 the result (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 the result (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 a result 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 a MIL_DOUBLE. 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 the occurrence of the two markers. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISTANCE_X + |
Retrieves the distance on the X-axis between the occurrence of the two markers. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DISTANCE_Y + |
Retrieves the distance on the Y-axis between the occurrence of the two markers. (more details...) |
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 required 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. |