OTB  9.0.0
Orfeo Toolbox
otbListSampleToListSampleFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 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:
98  ListSampleToListSampleFilter(const Self&) = delete;
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
otb::Statistics::ListSampleToListSampleFilter::InputSampleListConstPointer
InputSampleListType::ConstPointer InputSampleListConstPointer
Definition: otbListSampleToListSampleFilter.h:61
otb::Statistics::ListSampleToListSampleFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbListSampleToListSampleFilter.h:49
otb::Statistics::ListSampleSource
This class is a base class for filters using ListSample as input and returning ListSample.
Definition: otbListSampleSource.h:45
otb::Statistics::ListSampleToListSampleFilter::InputValueType
InputMeasurementVectorType::ValueType InputValueType
Definition: otbListSampleToListSampleFilter.h:63
otb::Statistics::ListSampleToListSampleFilter::InputSampleListPointer
InputSampleListType::Pointer InputSampleListPointer
Definition: otbListSampleToListSampleFilter.h:60
otb::Statistics::ListSampleToListSampleFilter::~ListSampleToListSampleFilter
~ListSampleToListSampleFilter() override
Definition: otbListSampleToListSampleFilter.h:92
otb::Statistics::ListSampleToListSampleFilter::OutputSampleListConstPointer
Superclass::OutputSampleListConstPointer OutputSampleListConstPointer
Definition: otbListSampleToListSampleFilter.h:68
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::Statistics::ListSampleToListSampleFilter::OutputSampleListPointer
Superclass::OutputSampleListPointer OutputSampleListPointer
Definition: otbListSampleToListSampleFilter.h:67
otbListSampleSource.h
otb::Statistics::ListSampleToListSampleFilter::DataObjectPointer
itk::DataObject::Pointer DataObjectPointer
Definition: otbListSampleToListSampleFilter.h:74
otb::Statistics::ListSampleToListSampleFilter::OutputValueType
Superclass::OutputValueType OutputValueType
Definition: otbListSampleToListSampleFilter.h:70
otb::Statistics::ListSampleToListSampleFilter
This class is a base class for filters using ListSample as input and returning ListSample.
Definition: otbListSampleToListSampleFilter.h:43
otb::Statistics::ListSampleToListSampleFilter::Self
ListSampleToListSampleFilter Self
Definition: otbListSampleToListSampleFilter.h:47
otbListSampleToListSampleFilter.hxx
otb::Statistics::ListSampleToListSampleFilter::OutputMeasurementVectorType
Superclass::OutputMeasurementVectorType OutputMeasurementVectorType
Definition: otbListSampleToListSampleFilter.h:69
otb::Statistics::ListSampleToListSampleFilter::OutputSampleListType
Superclass::OutputSampleListType OutputSampleListType
Definition: otbListSampleToListSampleFilter.h:66
otb::Statistics::ListSampleToListSampleFilter::InputMeasurementVectorType
InputSampleListType::MeasurementVectorType InputMeasurementVectorType
Definition: otbListSampleToListSampleFilter.h:62
otb::Statistics::ListSampleToListSampleFilter::InputSampleListType
TInputSampleList InputSampleListType
Definition: otbListSampleToListSampleFilter.h:56
otb::Statistics::ListSampleToListSampleFilter::Superclass
ListSampleSource< TOutputSampleList > Superclass
Definition: otbListSampleToListSampleFilter.h:48
otb::Statistics::ListSampleToListSampleFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbListSampleToListSampleFilter.h:50