MIL_ID RegResultId, | //in |
MIL_INT ResultIndex, | //in |
MIL_INT64 ResultType, | //in |
void *ResultArrayPtr | //out |
This function retrieves the result(s) of the specified type from a registration result buffer.
The result(s) that can be retrieved from an M_STITCHING_RESULT result buffer are only available after calling MregCalculate() with an M_STITCHING registration context. Result(s) from an M_EXTENDED_DEPTH_OF_FIELD_RESULT can only be retrieved after calling MregCalculate() with an M_EXTENDED_DEPTH_OF_FIELD registration context.
Specifies the identifier of the registration result buffer from which to retrieve results.
Specifies which results to get. This parameter can be set to one of the following values:
For retrieving results
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies to retrieve the results of the specified type for all registration result elements. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GENERAL |
Specifies to retrieve a result relating to the entire registration result buffer. |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= M_NUMBER_OF_ELEMENTS-1 |
Specifies the registration result element's index. (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 array in which to write the requested information.
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 ResultArrayPtr parameter.
To retrieve a general result or the result for one or all registration result elements of an M_STITCHING_RESULT result buffer, the ResultType parameter can be set to one of the following values.
Unless otherwise specified, for one registration result element or M_GENERAL, the following values require that you pass the ResultArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to 1. For M_ALL, the following values require that you pass the ResultArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to MregInquire() with M_NUMBER_OF_ELEMENTS.
For general results or registration
result element results from an M_STITCHING_RESULT result
buffer
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_RESULT + |
Retrieves whether the registration calculation (MregCalculate()) was successful. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FAILURE |
Specifies that the registration calculation failed. |
||||||||||||||||||||||||||||||||||||||
M_SUCCESS |
Specifies that the registration calculation was successful. |
||||||||||||||||||||||||||||||||||||||
M_SCORE + |
Retrieves the score of the registration calculation (MregCalculate()). (more details...) |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the score of the registration calculation. (more details...) |
To retrieve a general result from an M_STITCHING_RESULT result buffer, the ResultType parameter can be set to one of the following values:
Unless otherwise specified, the following values require that you pass the ResultArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to 1.
For general results from an
M_STITCHING_RESULT result buffer
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_MOSAIC_OFFSET_X + |
Retrieves the horizontal offset that will exist between the origin of the mosaic's coordinate system and the left side of the destination image buffer, when you compose the mosaic. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOSAIC_OFFSET_Y + |
Retrieves the vertical offset that will exist between the origin of the mosaic's coordinate system and the top of the destination image buffer, when you compose the mosaic. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOSAIC_SIZE_X + |
Retrieves the width that the mosaic will have when it is composed. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOSAIC_SIZE_Y + |
Retrieves the height that the mosaic will have when it is composed. (more details...) |
To retrieve the result from one or all the registration result elements of an M_STITCHING_RESULT result buffer, the ResultType parameter can be set to one of the following values:
Unless otherwise specified, for one registration result element, the following values require that you pass the ResultArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to 1. For multiple registration result elements (M_ALL), the following values require that you pass the ResultArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to M_NUMBER_OF_ELEMENTS.
For results from one or all registration
result elements of an M_STITCHING_RESULT result buffer
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_POSITION_X + |
Retrieves the X-coordinate of the registration result element image's origin in the global/reference coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_POSITION_Y + |
Retrieves the Y-coordinate of the registration result element image's origin in the global/reference coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_REVERSE_TRANSFORMATION_MATRIX + |
Retrieves the 9 elements of the 3x3 transformation matrix that performs a reverse transformation. (more details...) |
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_REVERSE_TRANSFORMATION_MATRIX_ID + |
Retrieves the identifier of the MIL array buffer containing the 3x3 transformation matrix that performs a reverse transformation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMATION_MATRIX + |
Retrieves the 9 elements of the 3x3 transformation matrix. (more details...) |
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMATION_MATRIX_ID + |
Retrieves the identifier of the MIL array buffer containing the 3x3 transformation matrix. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMED_BL_X + |
Retrieves the X-coordinate of the bottom left corner of the specified registration result element's image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMED_BL_Y + |
Retrieves the Y-coordinate of the bottom left corner of the specified registration result element's image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMED_BR_X + |
Retrieves the X-coordinate of the bottom right corner of the specified registration result element's image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMED_BR_Y + |
Retrieves the Y-coordinate of the bottom right corner of the specified registration result element's image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMED_UL_X + |
Retrieves the X-coordinate of the upper left corner of the specified registration result element's image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMED_UL_Y + |
Retrieves the Y-coordinate of the upper left corner of the specified registration result element's image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMED_UR_X + |
Retrieves the X-coordinate of the upper right corner of the specified registration result element's image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMED_UR_Y + |
Retrieves the Y-coordinate of the upper right corner of the specified registration result element's image. (more details...) |
You can add one of the following values to the above-mentioned values to get the requested results with respect to the required coordinate system.
For specifying the coordinate
system
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_REFERENCE |
Retrieves the results with respect to the reference coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_REGISTRATION_GLOBAL |
Retrieves the results with respect to the global pixel coordinate system. (more details...) |
To retrieve a general result from an M_EXTENDED_DEPTH_OF_FIELD_RESULT result buffer, the result type parameter can be set to one of the following values:
Unless otherwise specified, the following values require that you pass the ResultArrayPtr parameter the address of an array of type MIL_DOUBLE with a size equal to 1.
For general results from an
M_EXTENDED_DEPTH_OF_FIELD_RESULT result buffer
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_CIRCLE_OF_CONFUSION_RADIUS_MAX + |
Retrieves the radius of the maximum circle of confusion (blurring circle) used during calculations, in pixels. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDOF_IMAGE_SIZE_BAND + |
Retrieves the number of bands of the EDoF image (or the expected EDoF image, in the case of M_ACCUMULATE). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDOF_IMAGE_SIZE_X + |
Retrieves the width of the EDoF image (or the expected EDoF image, in the case of M_ACCUMULATE). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDOF_IMAGE_SIZE_Y + |
Retrieves the height of the EDoF image (or the expected EDoF image, in the case of M_ACCUMULATE). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDOF_IMAGE_TYPE + |
Retrieves the type of the EDoF image (or the expected EDoF image, in the case of M_ACCUMULATE). (more details...) |
||||||||||||||||||||||||||||||||||||||
depth value + M_FLOAT |
Specifies the data depth and that the data type is floating-point. |
||||||||||||||||||||||||||||||||||||||
depth value + M_SIGNED |
Specifies the data depth and that the data type is signed. |
||||||||||||||||||||||||||||||||||||||
depth value + M_UNSIGNED |
Specifies the data depth and that the data type is unsigned. |
||||||||||||||||||||||||||||||||||||||
M_EDOF_STATUS + |
Retrieves whether the EDoF image is available. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ACCUMULATE |
Specifies that the result buffer has been filled with some preprocessing information, but the EDoF image is not yet available. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_COMPLETE |
Specifies that the EDoF image is available and can be retrieved using MregDraw(). |
||||||||||||||||||||||||||||||||||||||
M_EMPTY |
Specifies that the result buffer is empty. |
||||||||||||||||||||||||||||||||||||||
M_MODE + |
Retrieves the computation mode used. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FAST |
Specifies that the extended depth of field registration operation used the fast computation mode. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_RECONSTRUCTION |
Specifies that the extended depth of field registration operation used the reconstruction computation mode. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_IMAGES + |
Retrieves the number of images used to calculate the results that are stored in the result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSLATION_TOLERANCE + |
Retrieves the maximum distance, used during calculations, between a point of an object that is in focus in one image, and the same point in an image in which the object is out of focus, in pixels. (more details...) |
You can add the following value to the above-mentioned values to determine if the requested result type is available.
You should always check the availability of a result type with M_AVAILABLE before getting the actual result. Otherwise, if the requested result type is unavailable, getting the result will cause an error.
For requesting availability
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_AVAILABLE + |
Retrieves whether the requested result type is available for retrieval. (more details...) |
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr data type info |
Data
type: MIL_DOUBLE |
||||||||||||||||||||||||||||||||||||||
M_FALSE |
Specifies that the requested result type is not available. |
||||||||||||||||||||||||||||||||||||||
M_TRUE |
Specifies that the requested result type is available. |
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 data type
|
|||||||||||||||||||||||||||||||||||||||
ResultType |
Description
|
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_DOUBLE |
Casts the requested results to a MIL_DOUBLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_ID |
Casts the requested results to a MIL_ID. (more details...) |
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT |
Casts the requested results to a MIL_INT. (more details...) |
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT32 |
Casts the requested results to a MIL_INT32. (more details...) |
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr data type info |
|
||||||||||||||||||||||||||||||||||||||
M_TYPE_MIL_INT64 |
Casts the requested results to a MIL_INT64. (more details...) |
||||||||||||||||||||||||||||||||||||||
ResultArrayPtr data type info |
|
Header | Include mil.h. |
Library | Use mil.lib; milreg.lib. |
DLL | Requires mil.dll; milreg.dll. |