Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
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 
34 template < class TSampleList >
35 class ITK_EXPORT ConcatenateSampleListFilter :
36  public otb::Statistics::ListSampleToListSampleFilter<TSampleList, TSampleList>
37 {
38 public:
42  <TSampleList, TSampleList> Superclass;
45 
48 
50  itkNewMacro(Self);
51 
53  typedef TSampleList SampleListType;
54  typedef typename SampleListType::Pointer SampleListPointer;
55  typedef typename SampleListType::ConstPointer SampleListConstPointer;
56  typedef typename SampleListType::MeasurementVectorType MeasurementVectorType;
57  typedef typename MeasurementVectorType::ValueType ValueType;
58 
60  void AddInput( const SampleListType * inputPtr );
61 
62 protected:
64  virtual void GenerateData();
65 
68  void PrintSelf(std::ostream& os, itk::Indent indent) const;
69 
70 private:
71  ConcatenateSampleListFilter(const Self&); //purposely not implemented
72  void operator=(const Self&); //purposely not implemented
73 }; // end of class ImageToListGenerator
74 
75 } // end of namespace Statistics
76 } // end of namespace otb
77 
78 #ifndef OTB_MANUAL_INSTANTIATION
80 #endif
81 
82 #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.