image = | backwardDiscreteFourierTransform2dImg (inDFTImg1,inDFTImg2) |
image = | backwardDiscreteFourierTransform2dImg (inDFTImg1,inDFTImg2,inOptDFTConfig) |
Backward Discrete Fourier Transform for an input 2d image.
This algorithm allows to compute the real part of Backward Discrete Fourier Transformation of an input complex 2d image reprensented by its two components
and
.
In two dimensions, the real part of Backward Discrete Fourier Transformation (BDFT) of input images
and
with
rows and
columns is defined as the following real image:
This transformation allows to retrieve forward domain and can be usefull for example in case of filtering of Fourier Frequencies. The following image is an illustration of Backward Discrete Fourier Transformation results:
As in case of Forward Discrete Fourier Transform (see Forward Discrete Fourier Transform 2d),
parameter allows to setup:
- input images coordinates domain : if input images are expressed using polar coordinates we proceed to a polar to cartesian conversion (see Polar to cartesian transformation),
- input quadrants policy : if input images quadrants are centered on lowest frequencies we proceed to a swap operation,
- scale policy: during processing, Backward Discrete Fourier Transformation can be scaled by a constant value
:
- See also
- https://en.wikipedia.org/wiki/Discrete_Fourier_transform
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLIntensityTransform as itrans
Code Example
inImg1 = PyIPSDK.loadTiffImageFile(inputImgPath1)
inImg2 = PyIPSDK.loadTiffImageFile(inputImgPath2)
outImg = itrans.backwardDiscreteFourierTransform2dImg(inImg1, inImg2)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLIntensityTransform/Processor/BackwardDiscreteFourierTransform2dImg/BackwardDiscreteFourierTransform2dImg.h>
Code Example
ImagePtr pOutImg = backwardDiscreteFourierTransform2dImg(pInImg1, pInImg2);