OTB  10.0.0
Orfeo Toolbox
otbListSampleToListSampleFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 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 {
28 namespace Statistics
29 {
30 
42 template <class TInputSampleList, class TOutputSampleList = TInputSampleList>
43 class ITK_EXPORT ListSampleToListSampleFilter : public ListSampleSource<TOutputSampleList>
44 {
45 public:
49  typedef itk::SmartPointer<Self> Pointer;
50  typedef itk::SmartPointer<const Self> ConstPointer;
51 
54 
56  itkNewMacro(Self);
57 
59  typedef TInputSampleList InputSampleListType;
60  typedef typename InputSampleListType::Pointer InputSampleListPointer;
61  typedef typename InputSampleListType::ConstPointer InputSampleListConstPointer;
62  typedef typename InputSampleListType::MeasurementVectorType InputMeasurementVectorType;
63  typedef typename InputMeasurementVectorType::ValueType InputValueType;
64 
66  typedef typename Superclass::OutputSampleListType OutputSampleListType;
67  typedef typename Superclass::OutputSampleListPointer OutputSampleListPointer;
68  typedef typename Superclass::OutputSampleListConstPointer OutputSampleListConstPointer;
69  typedef typename Superclass::OutputMeasurementVectorType OutputMeasurementVectorType;
70  typedef typename Superclass::OutputValueType OutputValueType;
71 
74  typedef itk::DataObject::Pointer DataObjectPointer;
75  // typedef itk::DataObjectDecorator< InputSampleListType > InputSampleListObjectType;
76  // typedef typename Superclass::OutputSampleListObjectType OutputSampleListObjectType;
77 
79  using Superclass::SetInput;
80  void SetInput(const InputSampleListType* inputPtr);
81  // void SetInput( const InputSampleListObjectType * inputPtr );
83 
85  // const InputSampleListType * GetInputSampleList() const;
86 
88  const InputSampleListType* GetInput() const;
89 
90 protected:
93  {
94  }
95  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
96 
97 private:
99  void operator=(const Self&) = delete;
100 
101 }; // end of class ListSampleToListSampleFilter
102 
103 } // end of namespace Statistics
104 } // end of namespace otb
105 
106 #ifndef OTB_MANUAL_INSTANTIATION
108 #endif
109 
110 #endif
This class is a base class for filters using ListSample as input and returning ListSample.
This class is a base class for filters using ListSample as input and returning ListSample.
Superclass::OutputSampleListPointer OutputSampleListPointer
Superclass::OutputSampleListConstPointer OutputSampleListConstPointer
Superclass::OutputMeasurementVectorType OutputMeasurementVectorType
InputSampleListType::MeasurementVectorType InputMeasurementVectorType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.