OTB  9.0.0
Orfeo Toolbox
otbShiftScaleSampleListFilter.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 otbShiftScaleSampleListFilter_h
22 #define otbShiftScaleSampleListFilter_h
23 
25 
26 
27 namespace otb
28 {
29 namespace Statistics
30 {
31 
50 template <class TInputSampleList, class TOutputSampleList = TInputSampleList>
51 class ITK_EXPORT ShiftScaleSampleListFilter : public otb::Statistics::ListSampleToListSampleFilter<TInputSampleList, TOutputSampleList>
52 {
53 public:
57  typedef itk::SmartPointer<Self> Pointer;
58  typedef itk::SmartPointer<const Self> ConstPointer;
59 
62 
64  itkNewMacro(Self);
65 
67  typedef TInputSampleList InputSampleListType;
68  typedef typename InputSampleListType::Pointer InputSampleListPointer;
69  typedef typename InputSampleListType::ConstPointer InputSampleListConstPointer;
70  typedef typename InputSampleListType::MeasurementVectorType InputMeasurementVectorType;
71  typedef typename InputMeasurementVectorType::ValueType InputValueType;
72 
74  typedef TOutputSampleList OutputSampleListType;
75  typedef typename OutputSampleListType::Pointer OutputSampleListPointer;
76  typedef typename OutputSampleListType::ConstPointer OutputSampleListConstPointer;
77  typedef typename OutputSampleListType::MeasurementVectorType OutputMeasurementVectorType;
78  typedef typename OutputMeasurementVectorType::ValueType OutputValueType;
79 
81  itkSetMacro(Shifts, InputMeasurementVectorType);
82  itkGetMacro(Shifts, InputMeasurementVectorType);
84 
86  itkSetMacro(Scales, InputMeasurementVectorType);
87  itkGetMacro(Scales, InputMeasurementVectorType);
89 
90 protected:
92  void GenerateData() override;
93 
96  {
97  }
98  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
99 
100 private:
101  ShiftScaleSampleListFilter(const Self&) = delete;
102  void operator=(const Self&) = delete;
103 
106 
109 
110 }; // end of class ShiftScaleSampleListFilter
111 
112 } // end of namespace Statistics
113 } // end of namespace otb
114 
115 #ifndef OTB_MANUAL_INSTANTIATION
117 #endif
118 
119 #endif
otbShiftScaleSampleListFilter.hxx
otb::Statistics::ShiftScaleSampleListFilter::InputSampleListPointer
InputSampleListType::Pointer InputSampleListPointer
Definition: otbShiftScaleSampleListFilter.h:68
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::Statistics::ShiftScaleSampleListFilter::Superclass
otb::Statistics::ListSampleToListSampleFilter< TInputSampleList, TOutputSampleList > Superclass
Definition: otbShiftScaleSampleListFilter.h:56
otb::Statistics::ShiftScaleSampleListFilter::InputSampleListType
TInputSampleList InputSampleListType
Definition: otbShiftScaleSampleListFilter.h:64
otb::Statistics::ShiftScaleSampleListFilter::OutputSampleListPointer
OutputSampleListType::Pointer OutputSampleListPointer
Definition: otbShiftScaleSampleListFilter.h:75
otb::Statistics::ShiftScaleSampleListFilter::~ShiftScaleSampleListFilter
~ShiftScaleSampleListFilter() override
Definition: otbShiftScaleSampleListFilter.h:95
otb::Statistics::ShiftScaleSampleListFilter::m_Scales
InputMeasurementVectorType m_Scales
Definition: otbShiftScaleSampleListFilter.h:108
otb::Statistics::ShiftScaleSampleListFilter::m_Shifts
InputMeasurementVectorType m_Shifts
Definition: otbShiftScaleSampleListFilter.h:105
otb::Statistics::ListSampleToListSampleFilter
This class is a base class for filters using ListSample as input and returning ListSample.
Definition: otbListSampleToListSampleFilter.h:43
otb::Statistics::ShiftScaleSampleListFilter::InputSampleListConstPointer
InputSampleListType::ConstPointer InputSampleListConstPointer
Definition: otbShiftScaleSampleListFilter.h:69
otbListSampleToListSampleFilter.h
otb::Statistics::ShiftScaleSampleListFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbShiftScaleSampleListFilter.h:57
otb::Statistics::ShiftScaleSampleListFilter
This class generate a shifted and scaled version of the input sample list.
Definition: otbShiftScaleSampleListFilter.h:51
otb::Statistics::ShiftScaleSampleListFilter::Self
ShiftScaleSampleListFilter Self
Definition: otbShiftScaleSampleListFilter.h:55
otb::Statistics::ShiftScaleSampleListFilter::OutputSampleListConstPointer
OutputSampleListType::ConstPointer OutputSampleListConstPointer
Definition: otbShiftScaleSampleListFilter.h:76
otb::Statistics::ShiftScaleSampleListFilter::OutputSampleListType
TOutputSampleList OutputSampleListType
Definition: otbShiftScaleSampleListFilter.h:74
otb::Statistics::ShiftScaleSampleListFilter::InputMeasurementVectorType
InputSampleListType::MeasurementVectorType InputMeasurementVectorType
Definition: otbShiftScaleSampleListFilter.h:70
otb::Statistics::ShiftScaleSampleListFilter::OutputValueType
OutputMeasurementVectorType::ValueType OutputValueType
Definition: otbShiftScaleSampleListFilter.h:78
otb::Statistics::ShiftScaleSampleListFilter::OutputMeasurementVectorType
OutputSampleListType::MeasurementVectorType OutputMeasurementVectorType
Definition: otbShiftScaleSampleListFilter.h:77
otb::Statistics::ShiftScaleSampleListFilter::InputValueType
InputMeasurementVectorType::ValueType InputValueType
Definition: otbShiftScaleSampleListFilter.h:71
otb::Statistics::ShiftScaleSampleListFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbShiftScaleSampleListFilter.h:58