MIL_ID ResultImId, | //in |
MIL_INT OffEntry, | //in |
MIL_INT NbEntries, | //in |
MIL_INT64 ResultType, | //in |
void *UserArrayPtr | //out |
This function retrieves the specified number of result entries from the specified result buffer and stores them in the specified one-dimensional destination user array.
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 MimControl() 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, MimGetResult1d() will generate an error.
Specifies the identifier of the image processing result buffer from which to get results.
Specifies the offset of the first result to read. The given value must be within the number of allocated result entries.
Specifies the number of result entries to get, starting from the entry specified by the OffEntry parameter.
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 one-dimensional array in which to write the results read from the MIL result buffer.
See the Parameter associations section for possible values that can be returned.
The table below lists possible values for the ResultType parameter and possible values returned to the UserArrayPtr parameter.
Unless otherwise specified, the following values require that you pass the UserArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to 1.
For specifying the type of result to
retrieve
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_ANGLE + |
Retrieves the best orientations (angle values) calculated by MimFindOrientation() and stored in an M_FIND_ORIENTATION_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
Data
type: array of type MIL_INT |
||||||||||||||||||||||||||||||||||||||
M_ANGULAR_DATA_COHERENCE + |
Retrieves the coherence, from an M_STAT_LIST result buffer, of pixels representing angles and as such, treated as unit vectors. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ANGULAR_DATA_MEAN + |
Retrieves the angle of the vector sum, from an M_STAT_LIST result buffer, of pixels representing angles, and as such, treated as unit vectors. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CUMULATIVE_VALUE + |
Retrieves the cumulative histogram values from an M_HIST_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
Data
type: array of type MIL_INT |
||||||||||||||||||||||||||||||||||||||
M_MAX + |
Retrieves the maximum pixel value from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MAX_ABS + |
Retrieves the maximum absolute pixel value from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MEAN + |
Retrieves the mean pixel value from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN + |
Retrieves the minimum pixel value from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_ABS + |
Retrieves the minimum absolute pixel value from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NB_EVENT + |
Retrieves the number of events from an M_EVENT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_NUMBER + |
Retrieves the number of pixels from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PERCENTILE_VALUE + |
Retrieves the inverse cumulative histogram from a M_HIST_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
Data
type: array of type MIL_INT |
||||||||||||||||||||||||||||||||||||||
M_POSITION_X + |
Retrieves the image X-coordinate of each event from an M_EVENT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_POSITION_Y + |
Retrieves the image Y-coordinate of each event from an M_EVENT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_SCORE + |
Retrieves the score attributed to each orientation (angle) value calculated by MimFindOrientation() and stored in an M_FIND_ORIENTATION_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
Data
type: array of type MIL_INT |
||||||||||||||||||||||||||||||||||||||
M_STANDARD_DEVIATION + |
Retrieves the pixel standard deviation value from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SUM + |
Retrieves the sum of the pixel values from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SUM_ABS + |
Retrieves the sum of the absolute pixel values from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SUM_OF_SQUARES + |
Retrieves the sum of the squared pixel values from an M_STAT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_VALUE + |
Retrieves values from an M_HIST_LIST, M_PROJ_LIST, M_EXTREME_LIST, M_EVENT_LIST, or M_COUNT_LIST result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
|
You can add the following value to the above-mentioned values to get the requested results as a percentage.
For retrieving results as a
percentage
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_PERCENTAGE |
Retrieves the histogram values or cumulative histogram values, as a percentage. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
Data
type: array of type MIL_INT |
You can add one of the following values to the above-mentioned values to cast the requested results to the required data type.
For the ResultType parameter to cast the
required results to the requested data type
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_DOUBLE |
Casts the requested results to a MIL_DOUBLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_FLOAT |
Casts the requested results to a MIL_FLOAT. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT |
Casts the requested results to a MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT32 |
Casts the requested results to a MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT64 |
Casts the requested results to a MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserArrayPtr data type info |
|
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |