MIL_ID SysId, | //in |
MIL_INT NbEntries, | //in |
MIL_INT64 ResultType, | //in |
MIL_ID *ResultImIdPtr | //out |
This function allocates a result buffer with the specified number of entries, for use with some of the Image Processing module's functions (for example, the statistical functions).
When the result buffer is no longer required, you should release its memory, using MimFree().
Specifies the system on which to allocate the result buffer. This parameter should be set to one of the following values:
For specifying the system identifier
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies the number of buffer entries to allocate for the specified result buffer. This parameter should be set to one of the following values:
For specifying the number of buffer
entries
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that MIL automatically establishes the size of the result buffer. You can only use this value when the ResultType parameter is set to M_AUGMENTATION_RESULT, M_COUNT_LIST, M_LOCATE_PEAK_1D_RESULT, M_STATISTICS_RESULT, or M_WAVELET_TRANSFORM_RESULT. (summarize)Specifies that MIL automatically establishes the size of the result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the number of buffer entries. This value should take into account the type of result buffer being allocated. A specific number of entries must be specified when the ResultType parameter is set to M_EVENT_LIST, M_EXTREME_LIST, M_FIND_ORIENTATION_LIST, M_HIST_LIST, or M_PROJ_LIST. A specific number of entries cannot be specified when the ResultType parameter is set to M_COUNT_LIST, M_LOCATE_PEAK_1D_RESULT, M_STATISTICS_RESULT, or M_WAVELET_TRANSFORM_RESULT. (summarize)Specifies the number of buffer entries. (more details...) |
Specifies the type of data that will be stored in this result buffer. This parameter must be set to one of the following values:
For specifying the type of data
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_AUGMENTATION_RESULT |
Specifies that the buffer can hold MimAugment() results. |
||||||||||||||||||||||||||||||||||||||
M_COUNT_LIST |
Specifies that the buffer can hold MimCountDifference() results. |
||||||||||||||||||||||||||||||||||||||
M_EVENT_LIST + |
Specifies that the buffer can hold MimLocateEvent() results. |
||||||||||||||||||||||||||||||||||||||
M_EXTREME_LIST + |
Specifies that the buffer can hold MimFindExtreme() results. |
||||||||||||||||||||||||||||||||||||||
M_FIND_ORIENTATION_LIST + |
Specifies that the buffer can hold MimFindOrientation() results. |
||||||||||||||||||||||||||||||||||||||
M_HIST_LIST |
Specifies that the buffer can hold MimHistogram() results. |
||||||||||||||||||||||||||||||||||||||
M_LOCATE_PEAK_1D_RESULT |
Specifies that the buffer can hold MimLocatePeak1d() results. In this case, you must set the NbEntries parameter to M_DEFAULT. (summarize)Specifies that the buffer can hold MimLocatePeak1d() results. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PROJ_LIST + |
Specifies that the buffer can hold MimProjection() results. |
||||||||||||||||||||||||||||||||||||||
M_STATISTICS_RESULT |
Specifies that the buffer can hold MimStatCalculate() results. |
||||||||||||||||||||||||||||||||||||||
M_WAVELET_TRANSFORM_RESULT |
Specifies that the buffer can hold results from MimWaveletTransform() and MimWaveletDenoise(). Such results can themselves be processed. That is, you can use the wavelet result as the source with which to perform MimWaveletTransform() and MimWaveletDenoise(). (summarize)Specifies that the buffer can hold results from MimWaveletTransform() and MimWaveletDenoise(). (more details...) |
You can add the following value to the above-mentioned values to set the type of data stored in the result buffer.
For M_PROJ_LIST, M_EXTREME_LIST, or M_EVENT_LIST to
change the type of data to store
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description | ||||||||||||||||||||||||||||||||||||||
M_FLOAT |
Allocates a result buffer of type float. You should allocate a float result type buffer when the source buffer specified by MimProjection(), MimFindExtreme(), or MimLocateEvent() is of type float. If the specified source buffer is of type float and the result buffer is not, the functions can produce inaccurate results. Note that allocating a result buffer of type float when the source buffer is not, will slow down the operations performed by the MimProjection(), MimFindExtreme(), or MimLocateEvent() function. (summarize)Allocates a result buffer of type float. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |