MIL_ID ResultImId, | //in |
MIL_INT Index1, | //in |
MIL_INT Index2, | //in |
MIL_INT64 ResultType, | //in |
void *UserArrayPtr | //out |
This function retrieves a result of the specified type from a wavelet transformation or 1D locate peak result buffer. MIL performs wavelet transformations with MimWaveletTransform() and 1D peak intensity detection with MimLocatePeak1d().
Specifies the identifier of the wavelet transformation or 1D locate peak result buffer from which to get results.
Specifies the first index with which to indicate the result to retrieve.
For a wavelet transformation result, this parameter specifies a specific wavelet coefficient and level for which to get information. To retrieve the actual number of levels calculated, call MimGetResult() with M_NUMBER_OF_LEVELS. You can also use this parameter to retrieve information about the approximation (the low frequency rendition) of the wavelet transformation.
Set this parameter to one of the following:
For specifying the first index, with
which to indicate the wavelet transformation result
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
||||||||||||||||||||||||||||||||||||||
Retrieves results about the diagonal wavelet coefficient, at the specified transformation level. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the transformation level. It must be greater than 0, and be less than or equal to the number of levels calculated for the specified wavelet transformation result. |
|||||||||||||||||||||||||||||||||||||||
Retrieves results about the horizontal wavelet coefficient, at the specified transformation level. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the transformation level. It must be greater than 0, and be less than or equal to the number of levels calculated for the specified wavelet transformation result. |
|||||||||||||||||||||||||||||||||||||||
Retrieves results about the vertical wavelet coefficient, at the specified transformation level. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the transformation level. It must be greater than 0, and be less than or equal to the number of levels calculated for the specified wavelet transformation result. |
|||||||||||||||||||||||||||||||||||||||
M_APPROXIMATION |
Retrieves results about the approximation (the low frequency rendition) of the wavelet transformation at the last calculated level. |
For a locate peak result 1D, set this parameter to one of the following values.
For specifying the index of the peak in
the lane, with which to indicate the locate peak 1D
result
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_NULL |
Specifies that no information is required for the Index1 parameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies that the returned buffer will contain the requested result information for each rank. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the peak for which to return the requested information. (more details...) |
Specifies the second index with which to indicate the result to retrieve. For a wavelet transformation result, this information is not required; set this parameter to M_NULL.
For a locate peak result 1D, set this parameter to one of the following values.
For specifying the index of the lane,
with which to indicate the locate peak 1D result
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_NULL |
Specifies that no information is required for the Index2 parameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies that the returned buffer will contain the requested result information for each scan lane. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the lane for which to return the requested information. (more details...) |
Specifies the type of result 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 tables below list possible values for the ResultType parameter and possible values returned to the UserArrayPtr parameter.
To retrieve a result from the specified wavelet coefficient and detail level (Index1), set ResultType to one of the following:
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, when using a wavelet transformation result
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_WAVELET_COEFFICIENTS_IMAGE_ID + |
Retrieves the identifier of the internal image buffer that holds the wavelet data specified by the Index1 parameter. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL image buffer identifier |
Specifies the identifier of the internal image buffer. |
||||||||||||||||||||||||||||||||||||||
M_WAVELET_LEVEL_PADDING_OFFSET_X + |
Retrieves the X-offset of the padding used to calculate the result. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the X-offset, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_WAVELET_LEVEL_PADDING_OFFSET_Y + |
Retrieves the Y-offset of the padding used to calculate the result. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the Y-offset, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_WAVELET_LEVEL_SIZE_X + |
Retrieves the width of the undistorted (non-padded) region that was used to calculate the result. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the width, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_WAVELET_LEVEL_SIZE_Y + |
Retrieves the height of the undistorted (non-padded) region that was used to calculate the result. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0 |
Specifies the height, in pixels. |
You can add one of the following values to the above-mentioned value to specify whether to retrieve information about the real or imaginary numbers in the wavelet result.
For specifying whether to retrieve
information about the real or imaginary numbers in the wavelet
result
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_IMAGINARY_PART |
Retrieves information about the imaginary part of the values in the wavelet result. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_REAL_PART |
Retrieves information about the real numbers in the result. (more details...) |
To retrieve a result from a 1D locate peak result buffer, ResultType can be set to one of the following:
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 M_NUMBER .
For specifying the type of result to
retrieve, when using a 1D locate peak result
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_NUMBER + |
Retrieves a single numerical element, indicating the number of elements that would be returned, given the values specified for the Index1 and Index2 parameters (including any specified combination value). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_SCAN_LANES + |
Retrieves the number of elements that would be required by an array to contain the result if exactly one peak was found in each lane. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PEAK_INTENSITY + |
Retrieves the peak's intensity. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PEAK_POSITION + |
Retrieves the peak's position along the scan lane, in pixels. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PEAK_POSITION_X + |
Retrieves the X-coordinate of the peak's position along the image's X-axis, in pixels. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PEAK_POSITION_Y + |
Retrieves the Y-coordinate of the peak's position along the image's Y-axis, in pixels. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PEAK_WIDTH + |
Retrieves the peak's detected width. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_RANK_INDEX + |
Retrieves the peak's index of the data. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SCAN_LANE_INDEX + |
Retrieves the lane's index of the data. (more details...) |
You can add one of the following values to the above-mentioned values to specify how to handle missing data, when using a 1D locate peak result.
If you do not specify any of these combination constants, MIL does not include missing data when returning information about the specified result type. That is, empty scan lanes and ranks are skipped.
For specifying how to handle missing
data, when using a 1D locate peak result
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
UserArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_INCLUDE_MISSING_DATA |
Specifies that missing data is included as part of the information returned by the result type. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INVALID |
Specifies an empty lane or rank. |
||||||||||||||||||||||||||||||||||||||
M_ONLY_MISSING_DATA |
Specifies that only empty elements are returned by the result type. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INVALID |
Specifies an empty lane or rank. |
You can add the following value to the above-mentioned values to specify returned data using fixed point with fractional bits, when using a 1D locate peak result.
For using fixed point with fractional
bits, when using a 1D locate peak result
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_FIXED_POINT + n |
Expresses results using fixed point with n fractional bits. (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 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_ID |
Casts the requested results to a MIL_ID. (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. |