MIL_ID RegResultId, | //in |
const MIL_ID *ImageArrayPtr, | //in |
MIL_ID DestImageBufId, | //in |
MIL_INT NumImages, | //in |
MIL_INT64 InterpolationMode, | //in |
MIL_INT64 ControlFlag | //in |
This function composes a mosaic from the specified source images and stores it in the destination image buffer. The source images are transformed according to the results, stored in the registration result buffer, that were calculated during the MregCalculate() operation.
Each image in the image array is associated with the registration result element with the same index (for example, the third image in the array is associated with the third registration result element). Note that for the image to appear at the correct location in the mosaic, its index in the array must match the index of the registration result element containing the image's transformation.
It is possible to use some images and omit others when composing the mosaic. In this case, replace the images that you want to omit by M_NULL in the image array. It can be useful to omit images from a mosaic if you want to add images to a preexisting mosaic, for example. In this case, replace all the images in the array by M_NULL, except the ones to add, and call MregTransformImage() with the preexisting mosaic passed in DestImageBufId.
When composing the mosaic, you can control how it will appear in the destination image buffer. You can specify which image to place first, using M_MOSAIC_STATIC_INDEX. This image will be placed upright and will not be scaled. The other images in the mosaic will be positioned relative to this image's pixel coordinate system. In addition, you can also adjust the vertical and horizontal offsets between the origin of the mosaic's coordinate system and the origin of the destination image buffer, using MregControl() with M_MOSAIC_OFFSET_X and M_MOSAIC_OFFSET_Y.
Specifies the identifier of the registration result buffer with which to perform the mosaicing operation. The registration result buffer must have been previously allocated or restored on the required system using MregAllocResult() or MregRestore(), respectively.
Specifies the address of the array containing the identifiers of the image buffers. To omit images from the mosaic, replace their identifiers with M_NULL in the array.
These images must not have a region of interest (ROI) associated with them. Using images with an ROI will cause an error.
Specifies the destination image buffer that will contain the mosaic after the MregTransformImage() operation is performed.
This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
Specifies the interpolation mode. This parameter must be set to one of the values below.
For specifying the interpolation
mode
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_NEAREST_NEIGHBOR + M_OVERSCAN_ENABLE. |
||||||||||||||||||||||||||||||||||||||
M_BICUBIC + |
Specifies bicubic interpolation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BILINEAR + |
Specifies bilinear interpolation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NEAREST_NEIGHBOR + |
Specifies nearest neighbor interpolation. (more details...) |
You can add one of the following values to the above-mentioned values to specify the type of overscan to use for a destination pixel when its associated point falls outside the source buffers.
For overscan
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_OVERSCAN_CLEAR |
Sets the destination pixel to 0. |
||||||||||||||||||||||||||||||||||||||
M_OVERSCAN_DISABLE |
Leaves the destination pixel as is. |
||||||||||||||||||||||||||||||||||||||
M_OVERSCAN_ENABLE |
Uses pixels from the source buffer's ancestor buffer. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milreg.lib. |
DLL | Requires mil.dll; milreg.dll. |