From 7007dc165d42aac281cfe58e8c730a60eb5b3399 Mon Sep 17 00:00:00 2001
From: Patrick Imbo <patrick.imbo@c-s.fr>
Date: Thu, 7 Sep 2006 15:02:31 +0000
Subject: [PATCH] =?UTF-8?q?otbLogPolarResampleImageFilter=20:=20impl=C3=A9?=
 =?UTF-8?q?mentation=20de=20la=20classe=20+=20tests?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ...rdFourierMellinTransformImageFilterNew.cxx | 58 +++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 Testing/Code/FeatureExtraction/otbForwardFourierMellinTransformImageFilterNew.cxx

diff --git a/Testing/Code/FeatureExtraction/otbForwardFourierMellinTransformImageFilterNew.cxx b/Testing/Code/FeatureExtraction/otbForwardFourierMellinTransformImageFilterNew.cxx
new file mode 100644
index 0000000000..6c6d8d864c
--- /dev/null
+++ b/Testing/Code/FeatureExtraction/otbForwardFourierMellinTransformImageFilterNew.cxx
@@ -0,0 +1,58 @@
+/*=========================================================================
+
+  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 otbForwardFourierMellinTransformImageFilterNew(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> FourierMellinTransformType;
+  try 
+    { 
+  
+    } 
+  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