MIL_ID ContextOrResultId, | //in |
MIL_INT Index, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function allows you to control a setting of a registration context itself, one (or all) of the registration elements contained therein (correlation-stitching registration context only), or a correlation-stitching registration result buffer. For registration contexts and registration elements, these settings control the execution of MregSetLocation() and MregCalculate() operations. For correlation-stitching registration result buffers, these settings control the execution of MregDraw() and MregTransformImage() operations.
All the control type settings can be inquired using MregInquire().
Specifies the identifier of the registration context or correlation-stitching registration result buffer whose settings to modify; you cannot control settings of an extended depth of field (EDoF) result buffer. The registration context or the registration result buffer must have been previously allocated on the system using MregAlloc() or MregAllocResult(), respectively.
Specifies that a registration context, an individual registration element (of a correlation-stitching registration context), or a registration result buffer is controlled. Set this parameter to one of the following values:
For the registration context,
registration element, or registration result buffer
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Applies the specified control setting to all registration elements, if a correlation-stitching registration context is specified. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CONTEXT |
Controls a general setting of a registration context, if one is specified. |
||||||||||||||||||||||||||||||||||||||
M_GENERAL |
Controls a general setting of a correlation-stitching registration result buffer, if one is specified. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the index of the individual registration element to control, if a correlation-stitching registration context is specified. (more details...) |
Specifies the setting to change.
See the Parameter associations section for possible values that can be specified.
Specifies the setting's new value.
See the Parameter associations section for possible values that can be specified.
The tables below list possible values for the ControlType and ControlValue parameters.
The following ControlType and corresponding ControlValue parameter settings are used to control M_STITCHING registration context settings; in this case, the Index parameter must have been set to M_CONTEXT.
For operation settings of M_STITCHING
registration contexts
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_ACCURACY |
Sets the accuracy of the registration calculation. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_HIGH. |
||||||||||||||||||||||||||||||||||||||
M_HIGH |
Specifies high accuracy. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LOW |
Specifies low accuracy. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LOCATION_DELTA |
Sets the maximum displacement that will be applied to any pixel in the images during registration, relative to its initial location set using MregSetLocation(). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 5%. |
||||||||||||||||||||||||||||||||||||||
0 < Value <= 100.0 |
Specifies the maximum displacement as a percentage. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MIN_OVERLAP |
Sets the minimum overlap that should exist between an image and its reference image so that the registration calculation can optimize the match in their overlapping region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 20.0%. |
||||||||||||||||||||||||||||||||||||||
0 < Value <= 100.0 |
Specifies the minimum overlap as a percentage. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_OF_ELEMENTS |
Sets the number of registration elements in the registration context. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 256. |
||||||||||||||||||||||||||||||||||||||
1 <= Value < 8192 |
Specifies the number of registration elements. |
||||||||||||||||||||||||||||||||||||||
M_SCORE_TYPE |
Sets the type of score calculated during registration. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CORRELATION |
Specifies to calculate the score based on the normalized grayscale correlation in the overlapped region. |
||||||||||||||||||||||||||||||||||||||
M_NONE |
Specifies that no score is calculated; it is set to 100%. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSFORMATION_TYPE |
Sets the type of transformation that the registration calculation will use to optimize the match in the images' overlapping regions. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_TRANSLATION. |
||||||||||||||||||||||||||||||||||||||
M_PERSPECTIVE |
Specifies that a perspective warping can be performed to optimize the match in the overlapping regions. |
||||||||||||||||||||||||||||||||||||||
M_TRANSLATION |
Specifies that a translation can be performed to optimize the match in the overlapping regions. |
||||||||||||||||||||||||||||||||||||||
M_TRANSLATION_ROTATION |
Specifies that a translation and a rotation can be performed to optimize the match in the overlapping regions. |
||||||||||||||||||||||||||||||||||||||
M_TRANSLATION_ROTATION_SCALE |
Specifies that a translation, a rotation, and a scale operation can be performed to optimize the match in the overlapping regions. |
The following ControlType and corresponding ControlValue parameter settings are used to control settings of registration elements (one or all) of a M_STITCHING registration context.
For registration elements (one or all) of
an M_STITCHING registration context
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_OPTIMIZE_LOCATION |
Sets whether to perform the optimization step of the registration calculation for the registration element's image. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ENABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies not to perform the optimization calculation. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies to perform the optimization calculation. |
||||||||||||||||||||||||||||||||||||||
M_REFERENCE_X |
Sets the X-coordinate of the origin of the image's pixel coordinate system. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the default X-coordinate of the origin will be used. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CENTER_ELEMENT |
Specifies the X-coordinate of the origin to be at the center of the image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate of the origin, in pixels. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_REFERENCE_Y |
Sets the Y-coordinate of the origin of the image's pixel coordinate system. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the default Y-coordinate of the origin will be used. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CENTER_ELEMENT |
Specifies the Y-coordinate of the origin to be at the center of the image. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate of the origin, in pixels. (more details...) |
The following ControlType and corresponding ControlValue parameter settings are used to control the settings of a M_STITCHING_RESULT result buffer; in this case, the Index parameter must be set to M_GENERAL.
For M_STITCHING_RESULT result
buffers
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_MOSAIC_COMPOSITION |
Sets which image's pixel values to use when composing the mosaic and two or more images overlap. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_LAST_IMAGE. |
||||||||||||||||||||||||||||||||||||||
M_AVERAGE_IMAGE |
Specifies to use the average value of the images' pixels in the overlapping region. |
||||||||||||||||||||||||||||||||||||||
M_FIRST_IMAGE |
Specifies to use the pixels of the image associated with the registration result element with the lowest index. |
||||||||||||||||||||||||||||||||||||||
M_FUSION_IMAGE |
Specifies to fuse the images by progressively blending overlapping pixels. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LAST_IMAGE |
Specifies to use the pixels of the image associated with the registration result element with the highest index. |
||||||||||||||||||||||||||||||||||||||
M_SUPER_RESOLUTION |
Specifies to use a super-resolution algorithm to create the mosaic. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOSAIC_OFFSET_X |
Sets the X-offset between the origin of the coordinate system used to compose the mosaic and the left side of the destination image buffer. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ALIGN_LEFT. |
||||||||||||||||||||||||||||||||||||||
M_ALIGN_LEFT |
Specifies that the X-offset (in pixels) will be calculated such that the left-most part of the mosaic will be aligned with the left side of the destination image buffer. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-offset, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_MOSAIC_OFFSET_Y |
Sets the Y-offset between the origin of the coordinate system used to compose the mosaic and the top of the destination image buffer. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ALIGN_TOP. |
||||||||||||||||||||||||||||||||||||||
M_ALIGN_TOP |
Specifies that the Y-offset (in pixels) will be calculated such that the top-most part of the mosaic will be aligned with the top of the destination image buffer. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_MOSAIC_SCALE |
Sets the scale factor to apply to the images before composition of the mosaic. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
0.0 < Value <= 10.0 |
Specifies the scale factor. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MOSAIC_STATIC_INDEX |
Sets the coordinate system relative to which the mosaic will be composed. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies that the coordinate system will be chosen such that the minimum change is done on all images during the mosaic composition. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_REGISTRATION_GLOBAL |
Specifies that the mosaic will be composed with respect to the global pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= NumberOfElements-1 |
Specifies the index of the registration result element whose image's pixel coordinate system will be used as the reference coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_SR_PSF_RADIUS |
Sets the radius of the M_CIRCULAR and M_GAUSSIAN point-spread functions (PSF). INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.5 pixels. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the radius of the PSF, in pixel units at the scale of the source images. |
||||||||||||||||||||||||||||||||||||||
M_SR_PSF_TYPE |
Sets the type of point-spread function (PSF) to use during super-resolution calculations to model the blurring in source images. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_GAUSSIAN. |
||||||||||||||||||||||||||||||||||||||
M_CIRCULAR |
Specifies to assume a PSF that models blurring of single points of light into uniform circles in the image. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that no PSF should be assumed during super-resolution calculations. |
||||||||||||||||||||||||||||||||||||||
M_GAUSSIAN |
Specifies to assume a PSF that models blurring of single points of light into radially symmetric gaussian functions in the image. |
||||||||||||||||||||||||||||||||||||||
M_SQUARE |
Specifies to assume a PSF that models blurring of single points of light into symmetric square functions in the image. |
||||||||||||||||||||||||||||||||||||||
M_SR_SMOOTHNESS |
Sets the smoothness value to use during super-resolution calculations. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 50.0. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the smoothness value. |
The following ControlType and corresponding ControlValue parameter settings are used to control M_EXTENDED_DEPTH_OF_FIELD registration context settings; in this case, the Index parameter must be set to M_CONTEXT.
For operation settings of
M_EXTENDED_DEPTH_OF_FIELD registration contexts
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_CIRCLE_OF_CONFUSION_RADIUS_MAX |
Sets the maximum radius of the circle of confusion (blurring circle), among the input images. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 8 pixels. |
||||||||||||||||||||||||||||||||||||||
1 <= Value <= 256 |
Specifies the maximum radius of the circle of confusion (blurring circle) in pixels. |
||||||||||||||||||||||||||||||||||||||
M_MODE |
Sets the computation mode of the extended depth of field operation. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_RECONSTRUCTION. |
||||||||||||||||||||||||||||||||||||||
M_FAST |
Specifies a faster computation mode. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_RECONSTRUCTION |
Specifies a computation mode that favors the quality of the extended depth of field (EDoF) image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TRANSLATION_TOLERANCE |
Sets the maximum distance 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. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 1 pixel. |
||||||||||||||||||||||||||||||||||||||
1 <= Value <= 4 |
Specifies the maximum translation distance of a point between two images, in pixels. |
void MregControlInt64
(MIL_ID ContextOrResultId,
MIL_INT Index,
MIL_INT64 ControlType,
MIL_INT64 ControlValue)
Parameters
ContextOrResultId See ContextOrResultId of the main function for a description. Index See Index of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
Header | Include mil.h. |
Library | Use mil.lib; milreg.lib. |
DLL | Requires mil.dll; milreg.dll. |