MIL_ID SrcImageRBufId, | //in |
MIL_ID SrcImageIBufId, | //in |
MIL_ID DstImageRBufId, | //in |
MIL_ID DstImageIBufId, | //in |
MIL_INT64 TransformType, | //in |
MIL_INT64 ControlFlag | //in |
This function performs a forward or reverse FFT or DCT transformation on an image. It also perfoms a cartesian-to-polar or polar-to-catesian point-to-point coordinates transformation.
Specifies the identifier of the source buffer for the real component of the image.
The source image buffer for the real component must be unsigned monochrome 8- or 16-bit, or floating-point.
See the Parameter associations section for possible values that can be specified.
Specifies the identifier of the source buffer for the imaginary component of the image.
The source image buffer for the imaginary component must be unsigned monochrome 8- or 16-bit, or floating-point.
See the Parameter associations section for possible values that can be specified.
Specifies the identifier of the destination buffer for the real component of the image.
This parameter can be set to M_NULL. See the parameter association table for more details.
The destination image buffer for the real component must be unsigned monochrome 8- or 16-bit, or floating-point.
See the Parameter associations section for possible values that can be specified.
Specifies the identifier of the destination buffer for the imaginary component of the image.
This parameter can be set to M_NULL. See the parameter association table for more details.
The destination image buffer for the imaginary component must be unsigned monochrome 8- or 16-bit, or floating-point.
See the Parameter associations section for possible values that can be specified.
Specifies the type of transform to perform on the image.
See the Parameter associations section for possible values that can be specified.
Specifies if the transform is a forward transform or a reverse transform.
See the Parameter associations section for possible values that can be specified.
The table below lists possible values for the SrcImageRBufId, SrcImageIBufId, DstImageRBufId, DstImageIBufId, TransformType, and ControlFlag parameters.
For selecting the transformation
type.
|
|||||||||||||||||||||||||||||||||||||||
TransformType | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
ControlFlag | |||||||||||||||||||||||||||||||||||||||
SrcImageRBufId | |||||||||||||||||||||||||||||||||||||||
SrcImageIBufId | |||||||||||||||||||||||||||||||||||||||
DstImageRBufId | |||||||||||||||||||||||||||||||||||||||
DstImageIBufId | |||||||||||||||||||||||||||||||||||||||
M_DCT8X8 |
Performs a discrete cosine transform on each 8x8 pixel block in the image. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_DEFAULT + |
Same as M_FORWARD. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_FORWARD + |
Performs a forward transform on the image. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
SrcImageRBufId |
Specifies the identifier of the source buffer for the real component of the image in the spatial domain. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
8-bit signed/unsigned image buffer ID |
Performs calculations in fixed-point format and returns to the destinations in 23.9 fixed point format. |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
16-bit signed/unsigned image buffer ID |
Performs calculations in fixed-point format and returns to the destinations in 25.7 fixed point format. |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
32-bit signed image buffer ID |
Conserves the fixed point format between the destination buffer and the source buffer. |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
Floating-point image buffer ID |
Specifies that processing will be performed in floating-point arithmetic. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
SrcImageIBufId |
Specifies the identifier of the source buffer for the imaginary component of the image in the spatial domain. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
DstImageRBufId |
Specifies the identifier of the destination buffer for the real component of the image in the frequency domain. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
DstImageIBufId |
Specifies the identifier of the destination buffer for the imaginary component of the image in the frequency domain. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_REVERSE + |
Performs a reverse transform on the image. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
SrcImageRBufId |
Specifies the identifier of the source buffer for the real component of the image in the frequency domain. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
SrcImageIBufId |
Specifies the identifier of the source buffer for the imaginary component of the image in the frequency domain. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
DstImageRBufId |
Specifies the identifier of the destination buffer for the real component of the image in the spatial domain. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
8-bit signed/unsigned image buffer ID |
The format of the source buffer is assumed to be in 23.9 fixed point format. |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
16-bit signed/unsigned image buffer ID |
The format of the source buffer is assumed to be in 25.7 fixed point format. |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
32-bit signed image buffer ID |
The fixed point format of the destination buffer is the same as that of the source. |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
Floating-point image buffer ID |
If SrcImageRBufId is a floating-point buffer, this must also be a floating-point buffer and processing will be performed in floating-point arithmetic. |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
DstImageIBufId |
Specifies the identifier of the destination buffer for the imaginary component of the image in the spatial domain. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_FFT |
Performs a Fast Fourier transform. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
The transformation is always done in floating-point. |
† | d | |||||||||||||||||||||||||||||||||||||
M_DEFAULT + |
Same as M_FORWARD. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_FORWARD + |
Performs a forward transform on the image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
SrcImageRBufId |
Specifies the identifier of the source buffer for the real component of the image in the spatial domain. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
8-bit signed/unsigned image buffer ID |
Calculations are performed in fixed-point format and returned to the destinations in 23.9 fixed point format. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
16-bit signed/unsigned image buffer ID |
Calculations are performed in fixed-point format and returned to the destinations in 25.7 fixed point format. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
32-bit signed image buffer ID |
The fixed point format of the destination buffer will be the same as that of the source buffer. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Floating-point image buffer ID |
The destination buffer should also be a floating-point buffer and processing will be performed in floating-point arithmetic. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
SrcImageIBufId |
Specifies the identifier of the source buffer for the imaginary component of the image in the spatial domain. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_NULL |
Specifies that a faster version of the forward transform will be performed. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Image buffer ID |
Specifies the identifier of the source buffer. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
DstImageRBufId |
Specifies the identifier of the destination buffer for the real component of the image in the frequency domain. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
DstImageIBufId |
Specifies the identifier of the destination buffer for the imaginary component of the image in the frequency domain. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_REVERSE + |
Performs a reverse transform on the image. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
SrcImageRBufId |
Specifies the identifier of the source buffer for the real component of the image in the frequency domain. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
SrcImageIBufId |
Specifies the identifier of the source buffer for the imaginary component of the image in the frequency domain. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
DstImageRBufId |
Specifies the identifier of the destination buffer for the real component of the image in the spatial domain. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
8-bit signed/unsigned image buffer ID |
The format of the source buffer is assumed to be in 23.9 fixed point format. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
16-bit signed/unsigned image buffer ID |
The format of the source buffer is assumed to be in 25.7 fixed point format. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
32-bit signed image buffer ID |
The fixed point format of the destination buffer is the same as that of the source. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Floating-point image buffer ID |
If SrcImageRBufId is a floating-point buffer, this must also be a floating-point buffer and processing will be performed in floating-point arithmetic. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
DstImageIBufId |
Specifies the identifier of the destination buffer for the imaginary component of the image in the spatial domain. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_NULL |
Specifies that a faster version of the reverse transform will be performed. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
Image buffer ID |
Specifies the identifier of the destination buffer. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_POLAR |
Performs a cartesian-to-polar or a polar-to-cartesian transform on the coordinates of the source buffer. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_DEFAULT + |
Same as M_FORWARD. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_FORWARD + |
Converts the real and imaginary components of cartesian coordinates to the magnitude and phase components of polar coordinates. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
SrcImageRBufId |
Specifies the identifier of the source buffer for the real component of the cartesian coordinates. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
SrcImageIBufId |
Specifies the identifier of the source buffer for the imaginary component of the cartesian coordinates. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
DstImageRBufId |
Specifies the identifier of the destination buffer for the magnitude component of the polar coordinates. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_NULL |
Specifies that a faster version of the forward transform will be performed. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
Image buffer ID |
Specifies the identifier of the destination buffer. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
DstImageIBufId |
Specifies the identifier of the destination buffer for the phase component of the polar coordinates. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_NULL |
Specifies that a faster version of the forward transform will be performed. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
Image buffer ID |
Specifies the identifier of the destination buffer. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_REVERSE + |
Converts the magnitude and phase components of polar coordinates to the real and imaginary components of cartesian coordinates. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
SrcImageRBufId |
Specifies the identifier of the source buffer for the magnitude component of the polar coordinates. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
SrcImageIBufId |
Specifies the identifier of the source buffer for the phase component of the polar coordaintes. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
DstImageRBufId |
Specifies the identifier of the destination buffer for the real component of the cartesian coordinates. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
DstImageIBufId |
Specifies the identifier of the destination buffer for the imaginary component of the cartesian coordinates. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s |
You can add one or more of the following values to the above-mentioned values to set the transform characteristics.
Note that only M_NORMALIZE is supported with both FFT and DCT. All other values are supported only with the FFT.
For the ControlFlag
parameter
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_1D_COLUMNS |
Performs a 1-D transform on all columns of the image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_1D_ROWS |
Performs a 1-D transform on all rows of the image. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CENTER |
Centers the real part and the imaginary part of the spectrum. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MAGNITUDE + |
Specifies whether to compute or use the magnitude. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NORMALIZE |
Normalizes results (divide the final result by 8 for DCT and by (m x n) for FFT where m x n is the size of the image). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PHASE |
Specifies whether to compute or use the phase. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SATURATION |
Clips (saturates) the results of a reverse FFT according to the destination buffer's data type. (more details...) |
You can add the following value to the above-mentioned value to specify that the magnitude of the forward FFT is scaled logarithmically.
For M_MAGNITUDE
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_LOG_SCALE |
Scales logarithmically the magnitude of the forward FFT to be in the range of 0-255. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s |
You can add one of the following values to the above-mentioned values to specify the transform characteristics.
For specifying the transform
characteristics
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_FAST_PHASE |
Performs faster phase computation. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_NORMALIZE_PHASE |
Rescales the phase results. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_NORMALIZE_PHASE_255 |
Rescales the phase results. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
M_SQUARE_MAGNITUDE |
Specifies that the magnitude values are returned or used squared. (more details...) |
† | a | b | c | 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. |