Orfeo Toolbox  4.0
otbListSampleToListSampleFilter.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 __otbListSampleToListSampleFilter_h
19 #define __otbListSampleToListSampleFilter_h
20 
21 #include "otbListSampleSource.h"
22 
23 namespace otb {
24 namespace Statistics {
25 
35 template < class TInputSampleList, class TOutputSampleList = TInputSampleList >
36 class ITK_EXPORT ListSampleToListSampleFilter :
37  public ListSampleSource<TOutputSampleList>
38 {
39 public:
45 
48 
50  itkNewMacro(Self);
51 
53  typedef TInputSampleList InputSampleListType;
54  typedef typename InputSampleListType::Pointer InputSampleListPointer;
55  typedef typename InputSampleListType::ConstPointer InputSampleListConstPointer;
56  typedef typename InputSampleListType::MeasurementVectorType InputMeasurementVectorType;
57  typedef typename InputMeasurementVectorType::ValueType InputValueType;
58 
60  typedef typename Superclass::OutputSampleListType OutputSampleListType;
61  typedef typename Superclass::OutputSampleListPointer OutputSampleListPointer;
62  typedef typename Superclass::OutputSampleListConstPointer OutputSampleListConstPointer;
63  typedef typename Superclass::OutputMeasurementVectorType OutputMeasurementVectorType;
64  typedef typename Superclass::OutputValueType OutputValueType;
65 
69  //typedef itk::DataObjectDecorator< InputSampleListType > InputSampleListObjectType;
70  //typedef typename Superclass::OutputSampleListObjectType OutputSampleListObjectType;
71 
73  void SetInput( const InputSampleListType * inputPtr );
74  //void SetInput( const InputSampleListObjectType * inputPtr );
75 
77  //const InputSampleListType * GetInputSampleList() const;
78 
80  const InputSampleListType * GetInput() const;
81 
82 protected:
83 
86  void PrintSelf(std::ostream& os, itk::Indent indent) const;
87 
88 private:
89  ListSampleToListSampleFilter(const Self&); //purposely not implemented
90  void operator=(const Self&); //purposely not implemented
91 
92 }; // end of class ListSampleToListSampleFilter
93 
94 } // end of namespace Statistics
95 } // end of namespace otb
96 
97 #ifndef OTB_MANUAL_INSTANTIATION
99 #endif
100 
101 #endif

Generated at Sat Mar 8 2014 16:05:58 for Orfeo Toolbox with doxygen 1.8.3.1