From 48cd68588f2473ba8593941d464675d61724f284 Mon Sep 17 00:00:00 2001
From: Guillaume Borrut <guillaume.borrut@c-s.fr>
Date: Fri, 6 Feb 2009 16:29:12 +0100
Subject: [PATCH] ENH : Adding filter RAndGAndNIRVegetationIndexImageFilter

---
 ...bRAndGAndNIRVegetationIndexImageFilter.txx | 85 +++++++++++++++++++
 1 file changed, 85 insertions(+)
 create mode 100644 Code/Radiometry/otbRAndGAndNIRVegetationIndexImageFilter.txx

diff --git a/Code/Radiometry/otbRAndGAndNIRVegetationIndexImageFilter.txx b/Code/Radiometry/otbRAndGAndNIRVegetationIndexImageFilter.txx
new file mode 100644
index 0000000000..0f29d62de7
--- /dev/null
+++ b/Code/Radiometry/otbRAndGAndNIRVegetationIndexImageFilter.txx
@@ -0,0 +1,85 @@
+/*=========================================================================
+
+  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.
+
+=========================================================================*/
+#ifndef __otbRAndGAndNIRVegetationIndexImageFilter_txx
+#define __otbRAndGAndNIRVegetationIndexImageFilter_txx
+
+#include "otbRAndGAndNIRVegetationIndexImageFilter.h"
+
+namespace otb
+{
+
+/**
+ * Constructor
+ */
+template <class TInputImageR, class TInputImageG, class TInputImageNIR,
+class TOutputImage, class TFunction  >
+RAndGAndNIRVegetationIndexImageFilter<TInputImageR,TInputImageG,TInputImageNIR,TOutputImage,TFunction>
+::RAndGAndNIRVegetationIndexImageFilter()
+{
+}
+
+
+/**
+ * Connect one of the operands for pixel-wise addition
+ */
+template <class TInputImageR, class TInputImageG, class TInputImageNIR,
+class TOutputImage, class TFunction  >
+void
+RAndGAndNIRVegetationIndexImageFilter<TInputImageR,TInputImageG,TInputImageNIR,TOutputImage,TFunction>
+::SetInputR( const TInputImageR * image )
+{
+  // Process object is not const-correct so the const casting is required.
+  SetInput1( image );
+}
+
+
+/**
+ * Connect one of the operands for pixel-wise addition
+ */
+template <class TInputImageR, class TInputImageG, class TInputImageNIR,
+class TOutputImage, class TFunction  >
+void
+RAndGAndNIRVegetationIndexImageFilter<TInputImageR,TInputImageG,TInputImageNIR,TOutputImage,TFunction>
+::SetInputG( const TInputImageG * image )
+{
+  SetInput2( image );
+}
+
+/**
+ * Connect one of the operands for pixel-wise addition
+ */
+template <class TInputImageR, class TInputImageG, class TInputImageNIR,
+class TOutputImage, class TFunction  >
+void
+RAndGAndNIRVegetationIndexImageFilter<TInputImageR,TInputImageG,TInputImageNIR,TOutputImage,TFunction>
+::SetInputNIR( const TInputImageNIR * image )
+{
+  SetInput3( image );
+}
+
+template <class TInputImageR, class TInputImageG, class TInputImageNIR, class TOutputImage, class TFunction  >
+void
+RAndGAndNIRVegetationIndexImageFilter<TInputImageR, TInputImageG, TInputImageNIR, TOutputImage, TFunction>
+::PrintSelf(std::ostream& os, itk::Indent indent) const
+{
+  Superclass::PrintSelf(os,indent);
+}
+
+}
+
+#endif
-- 
GitLab