OTB  6.7.0
Orfeo Toolbox
otbListSampleToListSampleFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbListSampleToListSampleFilter_h
22 #define otbListSampleToListSampleFilter_h
23 
24 #include "otbListSampleSource.h"
25 
26 namespace otb {
27 namespace Statistics {
28 
40 template < class TInputSampleList, class TOutputSampleList = TInputSampleList >
41 class ITK_EXPORT ListSampleToListSampleFilter :
42  public ListSampleSource<TOutputSampleList>
43 {
44 public:
50 
53 
55  itkNewMacro(Self);
56 
58  typedef TInputSampleList InputSampleListType;
59  typedef typename InputSampleListType::Pointer InputSampleListPointer;
60  typedef typename InputSampleListType::ConstPointer InputSampleListConstPointer;
61  typedef typename InputSampleListType::MeasurementVectorType InputMeasurementVectorType;
62  typedef typename InputMeasurementVectorType::ValueType InputValueType;
63 
65  typedef typename Superclass::OutputSampleListType OutputSampleListType;
66  typedef typename Superclass::OutputSampleListPointer OutputSampleListPointer;
67  typedef typename Superclass::OutputSampleListConstPointer OutputSampleListConstPointer;
68  typedef typename Superclass::OutputMeasurementVectorType OutputMeasurementVectorType;
69  typedef typename Superclass::OutputValueType OutputValueType;
70 
74  //typedef itk::DataObjectDecorator< InputSampleListType > InputSampleListObjectType;
75  //typedef typename Superclass::OutputSampleListObjectType OutputSampleListObjectType;
76 
78  using Superclass::SetInput;
79  void SetInput( const InputSampleListType * inputPtr );
80  //void SetInput( const InputSampleListObjectType * inputPtr );
82 
84  //const InputSampleListType * GetInputSampleList() const;
85 
87  const InputSampleListType * GetInput() const;
88 
89 protected:
90 
93  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
94 
95 private:
96  ListSampleToListSampleFilter(const Self&) = delete;
97  void operator=(const Self&) = delete;
98 
99 }; // end of class ListSampleToListSampleFilter
100 
101 } // end of namespace Statistics
102 } // end of namespace otb
103 
104 #ifndef OTB_MANUAL_INSTANTIATION
106 #endif
107 
108 #endif
Superclass::OutputSampleListConstPointer OutputSampleListConstPointer
This class is a base class for filters using ListSample as input and returning ListSample.
Superclass::OutputMeasurementVectorType OutputMeasurementVectorType
This class is a base class for filters using ListSample as input and returning ListSample.
InputSampleListType::MeasurementVectorType InputMeasurementVectorType
Superclass::OutputSampleListPointer OutputSampleListPointer