Performing an Inverse Fourier Transform

using Euresys.Open_eVision;

static partial class Snippet
{
  static void InverseFourierTransform()
  {
    ///////////////////////////////////////////////////////
    // This code snippet shows how to compute            //
    // the inverse Fourier transform to get              //
    // the original grayscale image                      //
    // (from the frequency domain to the spatial domain) //
    ///////////////////////////////////////////////////////
    int width = 256;
    int height = 256;

    // Assuming you have the following loaded image
    EFourierImage frequencyImage = new EFourierImage(EFrequentialDomainFormat.ComplexExtended, width * 2, height);

    // Initialize an empty image that will contain spatial information
    // Be aware of the specified dimensions
    EImageBW8 spatialImage = new EImageBW8(frequencyImage.Width / 2, frequencyImage.Height);

    // Compute the inverse Fourier transform
    EFourierTransformer fourier = new EFourierTransformer();
    fourier.InverseTransform(frequencyImage, spatialImage);
  }
}
#include <Open_eVision.h>

void InverseFourierTransform()
{
  ///////////////////////////////////////////////////////
  // This code snippet shows how to compute            //
  // the inverse Fourier transform to get              //
  // the original grayscale image                      //
  // (from the frequency domain to the spatial domain) //
  ///////////////////////////////////////////////////////
  using namespace Euresys::Open_eVision;

  int width = 256;
  int height = 256;

  // Assuming you have the following loaded image
  EFourierImage frequencyImage(EFrequentialDomainFormat_ComplexExtended, width, height);

  // Initialize an empty image that will contain spatial information
  // Be aware of the specified dimensions
  EImageBW8 spatialImage(frequencyImage.GetWidth() / 2, frequencyImage.GetHeight());

  // Compute the inverse Fourier transform
  EFourierTransformer fourier;
  fourier.InverseTransform(frequencyImage, spatialImage);
}
def InverseFourierTransform():
    #######################################################
    ## This code snippet shows how to compute            ##
    ## the inverse Fourier transform to get              ##
    ## the original grayscale image                      ##
    ## (from the frequency domain to the spatial domain) ##
    #######################################################
    import open_evision as oev

    width = 256
    height = 256

    # Assuming you have the following loaded image
    frequencyImage = oev.EFourierImage(oev.EFrequentialDomainFormat.ComplexExtended, width * 2, height)

    # Initialize an empty image that will contain spatial information
    # Be aware of the specified dimensions
    spatialImage = oev.EImageBW8(int(frequencyImage.Width / 2), frequencyImage.Height)

    # Compute the inverse Fourier transform
    fourier = oev.EFourierTransformer()
    fourier.InverseTransform(frequencyImage, spatialImage)