diff --git a/Modules/Core/ImageBase/test/otbFourierMellinImageFilterTestFFT.cxx b/Modules/Core/ImageBase/test/otbFourierMellinImageFilterTestFFT.cxx deleted file mode 100644 index 961828d4fc8cfff4b218e472c5d94c93aede3c3a..0000000000000000000000000000000000000000 --- a/Modules/Core/ImageBase/test/otbFourierMellinImageFilterTestFFT.cxx +++ /dev/null @@ -1,57 +0,0 @@ -/*========================================================================= - - Program: ORFEO Toolbox - Language: C++ - Date: $Date$ - Version: $Revision$ - - - Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. - See OTBCopyright.txt for details. - - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notices for more information. - -=========================================================================*/ - - - -#include "otbImage.h" -#include "otbImageFileReader.h" -#include "otbImageFileWriter.h" -#include "itkVnlFFTRealToComplexConjugateImageFilter.h" -#include <complex> - -int otbFourierMellinImageFilterTestFFT(int itkNotUsed(argc), char* argv[]) -{ - const char * inputFilename = argv[1]; - const char * outputFilename = argv[2]; - typedef double InputPixelType; - typedef std::complex<InputPixelType> OutputPixelType; - const unsigned int Dimension = 2; - - typedef itk::VnlFFTRealToComplexConjugateImageFilter<InputPixelType, Dimension> FourierImageFilterType; - - typedef otb::Image<InputPixelType, Dimension> InputImageType; - typedef otb::Image<OutputPixelType, Dimension> OutputImageType; - - typedef otb::ImageFileReader<InputImageType> ReaderType; - typedef otb::ImageFileWriter<OutputImageType> WriterType; - - FourierImageFilterType::Pointer FourierTransform = FourierImageFilterType::New(); - - ReaderType::Pointer reader = ReaderType::New(); - WriterType::Pointer writer = WriterType::New(); - - reader->SetFileName(inputFilename); - writer->SetFileName(outputFilename); - - FourierTransform->SetInput(reader->GetOutput()); - writer->SetInput(FourierTransform->GetOutput()); - - writer->Update(); - - return EXIT_SUCCESS; -}