Skip to content
Snippets Groups Projects
Commit 296d1f2c authored by Patrick Imbo's avatar Patrick Imbo
Browse files

otbForwardFourierMellinTransformImageFilter : implémentation de la classe + tests

parent 462792ce
No related branches found
No related tags found
No related merge requests found
/*=========================================================================
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.
=========================================================================*/
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#define MAIN
#include "otbImage.h"
#include "otbImageFileReader.h"
#include "otbImageFileWriter.h"
#include "otbForwardFourierMellinTransformImageFilter.h"
#include "itkLinearInterpolateImageFunction.h"
int otbFourierMellinImageFilterNew(int argc, char* argv[])
{
typedef double PixelType;
const unsigned int Dimension = 2;
typedef otb::Image< PixelType, Dimension > InputImageType;
typedef otb::Image< PixelType, Dimension > OutputImageType;
typedef itk::LinearInterpolateImageFunction< InputImageType, double > InterpolatorType;
typedef otb::ForwardFourierMellinTransformImageFilter<PixelType,
InterpolatorType,Dimension> FourierMellinTransformType;
try
{
FourierMellinTransformType::Pointer fourierMellinTransform = FourierMellinTransformType::New();
}
catch( itk::ExceptionObject & err )
{
std::cerr << "itk::Exception detected: " << err.GetDescription();
return EXIT_FAILURE;
}
catch( ... )
{
std::cout << "unknown exception detected !" << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment