Click here to show toolbars of the Web Online Help System: show toolbars |
Table: | For specifying the mode of interpolation |
+ combination: | For overscan |
MIL_ID SrcImageBufId, | //in |
MIL_ID DstImageOrArrayBufId, | //in |
MIL_DOUBLE ScaleFactorX, | //in |
MIL_DOUBLE ScaleFactorY, | //in |
MIL_INT64 InterpolationMode | //in |
This function resizes the source image by the specified factors and stores results in the destination buffer starting from the top-left corner. Alternatively, this function can generate the 3x3 or 3x2 matrix required to perform the transformation using MimWarp().
Specifies the source image to resize if performing the transformation. This parameter can be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
Specifies to ignore this parameter; this parameter must be set to M_NULL when generating the matrix that you can use with MimWarp() to perform the resizing. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | ||||||||||||||||
![]() ![]() |
Specifies the identifier of the source image buffer to rotate. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | ||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
The source image buffer must be unsigned monochrome 8- or 16-bit, or M_BGR32 packed. |
‡ | d |
Specifies the destination image buffer or array buffer, depending on whether performing the transformation. This parameter can be set to one of the following values:
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
Specifies the identifier of the destination M_ARRAY buffer when generating the matrix. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | ||||||||||||||||
![]() ![]() |
Specifies the identifier of the destination image buffer when resizing the source image. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | ||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
The destination image buffer must be unsigned monochrome 8- or 16-bit, or M_BGR32 packed. |
‡ | d |
Specifies the horizontal scaling factor. This parameter can be set to one of the values below.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a scaling factor that resizes the source image to fill the entire width of the destination buffer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the horizontal scaling factor. |
Specifies the vertical scaling factor. This parameter can be set to one of the values below.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use a scaling factor that resizes the source image to fill the entire height of the destination buffer. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the vertical scaling factor. |
Specifies the interpolation mode when resizing the source image. When only generating the matrix, this parameter is ignored and should be set to M_DEFAULT.
This parameter can be set to one of the values below.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
Specifies the default value. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | ||||||||||||||||
![]() ![]() |
Specifies averaging interpolation. |
‡ | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | |||||||||||||||||
![]() ![]() |
Specifies bicubic interpolation. |
‡ | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | |||||||||||||||||
![]() ![]() |
Specifies bilinear interpolation. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | ||||||||||||||||
![]() ![]() |
Specifies interpolated resizing: for zooming = bilinear, for dezooming = averaging. |
‡ | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | |||||||||||||||||
![]() ![]() |
Specifies an interpolation based on the maximum pixel value in the specified source image. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | ||||||||||||||||
![]() ![]() |
Specifies an interpolation based on the minimum pixel value in the specified source image. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | ||||||||||||||||
![]() ![]() |
Specifies the nearest neighbor interpolation. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u |
You can add one of the following values to the above-mentioned values to specify how to determine the value of a destination pixel when its associated point falls outside the source buffer.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
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 | t | u | ||||||||||||||||
![]() ![]() |
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 | t | u | ||||||||||||||||
![]() ![]() |
Uses pixels from the source buffer's ancestor buffer. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | ||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Points falling outside the source image are undefined. |
‡ | d | j | k | l | m | p | q | r | ||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that MIL will automatically select the overscan that optimizes speed, according to the specified operation and the target system. |
‡ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u |
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |