OTB  5.0.0
Orfeo Toolbox
otbConcatenateSampleListFilter.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 __otbConcatenateSampleListFilter_h
19 #define __otbConcatenateSampleListFilter_h
20 
22 
23 namespace otb {
24 namespace Statistics {
25 
36 template < class TSampleList >
37 class ITK_EXPORT ConcatenateSampleListFilter :
38  public otb::Statistics::ListSampleToListSampleFilter<TSampleList, TSampleList>
39 {
40 public:
44  <TSampleList, TSampleList> Superclass;
47 
50 
52  itkNewMacro(Self);
53 
55  typedef TSampleList SampleListType;
56  typedef typename SampleListType::Pointer SampleListPointer;
57  typedef typename SampleListType::ConstPointer SampleListConstPointer;
58  typedef typename SampleListType::MeasurementVectorType MeasurementVectorType;
59  typedef typename MeasurementVectorType::ValueType ValueType;
60 
62  void AddInput( const SampleListType * inputPtr );
63  using Superclass::AddInput;
64 
65 protected:
67  virtual void GenerateData();
68 
71  void PrintSelf(std::ostream& os, itk::Indent indent) const;
72 
73 private:
74  ConcatenateSampleListFilter(const Self&); //purposely not implemented
75  void operator=(const Self&); //purposely not implemented
76 }; // end of class ImageToListGenerator
77 
78 } // end of namespace Statistics
79 } // end of namespace otb
80 
81 #ifndef OTB_MANUAL_INSTANTIATION
83 #endif
84 
85 #endif
SampleListType::MeasurementVectorType MeasurementVectorType
otb::Statistics::ListSampleToListSampleFilter< TSampleList, TSampleList > Superclass
This class is a base class for fitlers using ListSample as input and returning ListSample.
This class concatenates several sample list into a single one.