MimGetResult()函数

Synopsis

Get values from an image processing result buffer.

Format

void MimGetResult(ImResultId, ResultType, UserArrayPtr)

MIL_ID ImResultId; Image processing result buffer identifier
long ResultType; Type of result to read
void *UserArrayPtr; Array in which to return results

Description

This function copies all the results from the specified result buffer to the specified one-dimensional destination user array.

The ImResultId parameter specifies the identifier of the image processing result buffer from which to get results.

The ResultType parameter specifies the type of data to read from the MIL result buffer. This parameter can be set to one of the following:

ResultType Description
M_VALUE Read values from M_HIST_LIST, M_PROJ_LIST, M_EXTREME_LIST, M_EVENT_LIST, or M_COUNT_LIST type buffer.
M_POSITION_X Read image X-coordinate of values in M_EVENT_LIST type buffer.
M_POSITION_Y Read image Y-coordinate of values in M_EVENT_LIST type buffer.
M_NB_EVENT Read the number of occurrences in M_EVENT_LIST type buffer. Only one value is returned.

If an M_EXTREME_LIST type result buffer contains both the minimum and maximum value of an image, the minimum value followed by the maximum value are written. If it contains only one of these values, this value is stored in the first location.

The UserArrayPtr parameter specifies the address of the one-dimensional array in which to write results read from the MIL result buffer. This array must have at least the same number of elements as the total number of entries to get (NbEntries), specified at MimAllocResult time.

See also

MimAllocResult, MimGetResult1d

《MimGetResult()函数》上有5条评论

评论已关闭。