OTB  5.0.0
Orfeo Toolbox
otbRAndNIRIndexImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8 
9  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
10  See OTBCopyright.txt for details.
11 
12 
13  This software is distributed WITHOUT ANY WARRANTY; without even
14  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  PURPOSE. See the above copyright notices for more information.
16 
17 =========================================================================*/
18 #ifndef __otbRAndNIRIndexImageFilter_h
19 #define __otbRAndNIRIndexImageFilter_h
20 
23 
24 namespace otb
25 {
26 
35 template <class TInputImageR, class TInputImageNIR, class TOutputImage,
36  class TFunction = Functor::NDVI<typename TInputImageR::PixelType,
37  typename TInputImageNIR::PixelType,
38  typename TOutputImage::PixelType> >
39 class ITK_EXPORT RAndNIRIndexImageFilter : public itk::BinaryFunctorImageFilter<TInputImageR, TInputImageNIR,
40  TOutputImage, TFunction>
41 {
42 public:
43 
49 
51  itkNewMacro(Self);
52 
54  itkTypeMacro(RAndNIRIndexImageFilter, BinaryFunctorImageFilter);
55 
56  void SetInputR(const TInputImageR * image1);
57  void SetInputNIR(const TInputImageNIR * image2);
58 
60  typedef typename Superclass::Input1ImageType RInputImageType;
61  typedef typename Superclass::Input1ImagePointer RInputImagePointer;
62  typedef typename Superclass::Input2ImageType NIRInputImageType;
63  typedef typename Superclass::Input2ImagePointer NIRInputImagePointer;
64  typedef typename Superclass::OutputImageType OutputImageType;
65  typedef typename Superclass::OutputImagePointer OutputImagePointer;
66  typedef typename Superclass::FunctorType FunctorType;
67  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
68 
69 protected:
72 
73  void PrintSelf(std::ostream& os, itk::Indent indent) const;
74 
75  /* void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
76  itk::ThreadIdType threadId );
77  */
78 private:
79  RAndNIRIndexImageFilter(const Self &); //purposely not implemented
80  void operator =(const Self&); //purposely not implemented
81 
82 };
83 
84 } // end namespace otb
85 
86 #ifndef OTB_MANUAL_INSTANTIATION
88 #endif
89 
90 #endif
Superclass::Input1ImageType RInputImageType
itk::BinaryFunctorImageFilter< TInputImageR, TInputImageNIR, TOutputImage, TFunction > Superclass
Superclass::Input1ImagePointer RInputImagePointer
Superclass::OutputImagePointer OutputImagePointer
Superclass::OutputImageRegionType OutputImageRegionType
Superclass::Input2ImageType NIRInputImageType
Superclass::OutputImageType OutputImageType
Superclass::Input2ImagePointer NIRInputImagePointer
itk::SmartPointer< const Self > ConstPointer