From 296d1f2c58dee5591ed92098356ca697d9c30e98 Mon Sep 17 00:00:00 2001
From: Patrick Imbo <patrick.imbo@c-s.fr>
Date: Fri, 8 Sep 2006 15:43:13 +0000
Subject: [PATCH] =?UTF-8?q?otbForwardFourierMellinTransformImageFilter=20:?=
 =?UTF-8?q?=20impl=C3=A9mentation=20de=20la=20classe=20+=20tests?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../otbFourierMellinImageFilterNew.cxx        | 59 +++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100644 Testing/Code/FeatureExtraction/otbFourierMellinImageFilterNew.cxx

diff --git a/Testing/Code/FeatureExtraction/otbFourierMellinImageFilterNew.cxx b/Testing/Code/FeatureExtraction/otbFourierMellinImageFilterNew.cxx
new file mode 100644
index 0000000000..a348f68d52
--- /dev/null
+++ b/Testing/Code/FeatureExtraction/otbFourierMellinImageFilterNew.cxx
@@ -0,0 +1,59 @@
+/*=========================================================================
+
+  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;
+}
-- 
GitLab