OTB  9.0.0
Orfeo Toolbox
otbProfileToProfileDerivativeFilter.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 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:
100  ProfileToProfileDerivativeFilter(const Self&) = delete;
101  void operator=(const Self&) = delete;
102 
105 
108 };
109 } // End namespace otb
110 #ifndef OTB_MANUAL_INSTANTIATION
112 #endif
113 
114 #endif
otb::ProfileToProfileDerivativeFilter::~ProfileToProfileDerivativeFilter
~ProfileToProfileDerivativeFilter() override
Definition: otbProfileToProfileDerivativeFilter.h:92
otb::ProfileToProfileDerivativeFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbProfileToProfileDerivativeFilter.h:53
otb::ProfileToProfileDerivativeFilter::SubtractFilterPointerType
SubtractFilterType::Pointer SubtractFilterPointerType
Definition: otbProfileToProfileDerivativeFilter.h:74
otb::ProfileToProfileDerivativeFilter::AbsFilterType
itk::AbsImageFilter< InputImageType, InputImageType > AbsFilterType
Definition: otbProfileToProfileDerivativeFilter.h:73
otb::ProfileToProfileDerivativeFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbProfileToProfileDerivativeFilter.h:54
otb::ImageListSource
Base class for all the filters producing an otbImageList.
Definition: otbImageListSource.h:40
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ProfileToProfileDerivativeFilter
This filter computes the derivative of a given profile.
Definition: otbProfileToProfileDerivativeFilter.h:47
otb::ProfileToProfileDerivativeFilter::m_SubtractFilter
SubtractFilterPointerType m_SubtractFilter
Definition: otbProfileToProfileDerivativeFilter.h:104
otb::ProfileToProfileDerivativeFilter::Superclass
ImageListToImageListFilter< TInputImage, TOutputImage > Superclass
Definition: otbProfileToProfileDerivativeFilter.h:52
otb::ProfileToProfileDerivativeFilter::OutputImageListType
Superclass::OutputImageListType OutputImageListType
Definition: otbProfileToProfileDerivativeFilter.h:65
otb::ImageListToImageListFilter
Base class for all the filters taking an image list as input to produce an image list.
Definition: otbImageListToImageListFilter.h:37
otbImageListToImageListFilter.h
otb::ImageList::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbImageList.h:45
otb::ProfileToProfileDerivativeFilter::InputImagePointerType
InputImageType::Pointer InputImagePointerType
Definition: otbProfileToProfileDerivativeFilter.h:69
otb::ProfileToProfileDerivativeFilter::AbsFilterPointerType
AbsFilterType::Pointer AbsFilterPointerType
Definition: otbProfileToProfileDerivativeFilter.h:75
otb::ProfileToProfileDerivativeFilter::InputImageType
InputImageListType::ImageType InputImageType
Definition: otbProfileToProfileDerivativeFilter.h:68
otb::ProfileToProfileDerivativeFilter::m_AbsFilter
AbsFilterPointerType m_AbsFilter
Definition: otbProfileToProfileDerivativeFilter.h:107
otb::ProfileToProfileDerivativeFilter::OutputImageListPointerType
OutputImageListType::Pointer OutputImageListPointerType
Definition: otbProfileToProfileDerivativeFilter.h:66
otb::ImageList::ImageType
TImage ImageType
Definition: otbImageList.h:52
otb::ProfileToProfileDerivativeFilter::SubtractFilterType
itk::SubtractImageFilter< InputImageType, InputImageType, InputImageType > SubtractFilterType
Definition: otbProfileToProfileDerivativeFilter.h:72
otb::ProfileToProfileDerivativeFilter::OutputImageType
OutputImageListType::ImageType OutputImageType
Definition: otbProfileToProfileDerivativeFilter.h:67
otbProfileToProfileDerivativeFilter.hxx
otb::ProfileToProfileDerivativeFilter::Self
ProfileToProfileDerivativeFilter Self
Definition: otbProfileToProfileDerivativeFilter.h:51
otb::ProfileToProfileDerivativeFilter::InputImageListPointerType
InputImageListType::Pointer InputImageListPointerType
Definition: otbProfileToProfileDerivativeFilter.h:64
otb::ProfileToProfileDerivativeFilter::InputImageListType
Superclass::InputImageListType InputImageListType
Definition: otbProfileToProfileDerivativeFilter.h:60