MIL_ID SrcImageBufId, | //in |
MIL_ID DstImageBufId, | //in |
MIL_DOUBLE DisplacementX, | //in |
MIL_DOUBLE DisplacementY, | //in |
MIL_INT64 InterpolationMode | //in |
This function translates the source image position by the specified amount, writing results to the destination buffer. This function can be used to align images to subpixel accuracy before, for example, subtracting them.
Specifies the source image buffer identifier.
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.
The source image buffer must be unsigned monochrome 8- or 16-bit, or M_BGR32 packed.
Specifies the destination image buffer identifier.
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.
Note that after performing the operation, the destination image will not be calibrated, even if the source image was calibrated.
The destination image buffer must be unsigned monochrome 8- or 16-bit, or M_BGR32 packed.
Specifies the amount by which to displace the source image in the X-direction. This parameter can be set to any positive or negative value.
Specifies the amount by which to displace the source image in the Y-direction. This parameter can be set to any positive or negative value.
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_BILINEAR + M_OVERSCAN_ENABLE. |
||||||||||||||||||||||||||||||||||||||
M_BILINEAR + |
Specifies bilinear interpolation. |
You can add one of the following values to the above-mentioned value to specify how to determine the value of a destination pixel when its associated point falls outside the source buffer.
For overscan
|
|||||||||||||||||||||||||||||||||||||||
Combination value |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_OVERSCAN_CLEAR |
Sets the destination pixel to 0. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_OVERSCAN_DISABLE |
Leaves the destination pixel as is. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_OVERSCAN_ENABLE |
Uses pixels from the source buffer's ancestor buffer. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Points falling outside the source image are undefined. |
† | d | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||||
M_OVERSCAN_FAST |
Specifies that MIL will automatically select the overscan that optimizes speed, according to the specified operation and the target system. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s |
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |