Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
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 
33 template <class TInputImageR, class TInputImageNIR, class TOutputImage,
34  class TFunction = Functor::NDVI<typename TInputImageR::PixelType,
35  typename TInputImageNIR::PixelType,
36  typename TOutputImage::PixelType> >
37 class ITK_EXPORT RAndNIRIndexImageFilter : public itk::BinaryFunctorImageFilter<TInputImageR, TInputImageNIR,
38  TOutputImage, TFunction>
39 {
40 public:
41 
47 
49  itkNewMacro(Self);
50 
52  itkTypeMacro(RAndNIRIndexImageFilter, BinaryFunctorImageFilter);
53 
54  void SetInputR(const TInputImageR * image1);
55  void SetInputNIR(const TInputImageNIR * image2);
56 
66 
67 protected:
70 
71  void PrintSelf(std::ostream& os, itk::Indent indent) const;
72 
73  /* void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
74  itk::ThreadIdType threadId );
75  */
76 private:
77  RAndNIRIndexImageFilter(const Self &); //purposely not implemented
78  void operator =(const Self&); //purposely not implemented
79 
80 };
81 
82 } // end namespace otb
83 
84 #ifndef OTB_MANUAL_INSTANTIATION
86 #endif
87 
88 #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