OTB  10.0.0
Orfeo Toolbox
otbProfileToProfileDerivativeFilter.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 otbProfileToProfileDerivativeFilter_h
22 #define otbProfileToProfileDerivativeFilter_h
23 
25 #include "itkSubtractImageFilter.h"
26 #include "itkAbsImageFilter.h"
27 
28 namespace otb
29 {
46 template <class TInputImage, class TOutputImage>
47 class ITK_EXPORT ProfileToProfileDerivativeFilter : public ImageListToImageListFilter<TInputImage, TOutputImage>
48 {
49 public:
53  typedef itk::SmartPointer<Self> Pointer;
54  typedef itk::SmartPointer<const Self> ConstPointer;
55 
57  itkNewMacro(Self);
58 
61 
63  typedef typename Superclass::InputImageListType InputImageListType;
65  typedef typename Superclass::OutputImageListType OutputImageListType;
69  typedef typename InputImageType::Pointer InputImagePointerType;
70 
72  typedef itk::SubtractImageFilter<InputImageType, InputImageType, InputImageType> SubtractFilterType;
73  typedef itk::AbsImageFilter<InputImageType, InputImageType> AbsFilterType;
74  typedef typename SubtractFilterType::Pointer SubtractFilterPointerType;
75  typedef typename AbsFilterType::Pointer AbsFilterPointerType;
76 
79  void GenerateOutputInformation(void) override;
80 
82  void GenerateInputRequestedRegion(void) override;
83 
84 protected:
86  void GenerateData(void) override;
87 
90 
93  {
94  }
95 
97  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
98 
99 private:
101  void operator=(const Self&) = delete;
102 
105 
108 };
109 } // End namespace otb
110 #ifndef OTB_MANUAL_INSTANTIATION
112 #endif
113 
114 #endif
Base class for all the filters producing an otbImageList.
Base class for all the filters taking an image list as input to produce an image list.
itk::SmartPointer< Self > Pointer
Definition: otbImageList.h:45
TImage ImageType
Definition: otbImageList.h:52
This filter computes the derivative of a given profile.
itk::SubtractImageFilter< InputImageType, InputImageType, InputImageType > SubtractFilterType
void operator=(const Self &)=delete
ImageListToImageListFilter< TInputImage, TOutputImage > Superclass
itk::AbsImageFilter< InputImageType, InputImageType > AbsFilterType
ProfileToProfileDerivativeFilter(const Self &)=delete
void GenerateOutputInformation(void) override
void PrintSelf(std::ostream &os, itk::Indent indent) const override
void GenerateInputRequestedRegion(void) override
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.