OTB  9.0.0
Orfeo Toolbox
otbPersistentImageFilter.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 otbPersistentImageFilter_h
22 #define otbPersistentImageFilter_h
23 
24 #include "itkImageToImageFilter.h"
25 
26 namespace otb
27 {
46 template <class TInputImage, class TOutputImage>
47 class ITK_EXPORT PersistentImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
48 {
49 public:
52  typedef itk::ImageToImageFilter<TInputImage, TOutputImage> Superclass;
53  typedef itk::SmartPointer<Self> Pointer;
54  typedef itk::SmartPointer<const Self> ConstPointer;
55 
57  itkTypeMacro(PersistentImageFilter, ImageToImageFilter);
58 
60  typedef TInputImage InputImageType;
61  typedef TOutputImage OutputImageType;
62 
66  virtual void Reset(void) = 0;
67 
71  virtual void Synthetize(void) = 0;
72 
73 protected:
76  {
77  }
78 
81  {
82  }
83 
85  void PrintSelf(std::ostream& os, itk::Indent indent) const override
86  {
87  Superclass::PrintSelf(os, indent);
88  }
89 
90 private:
91  PersistentImageFilter(const Self&) = delete;
92  void operator=(const Self&) = delete;
93 };
94 } // End namespace otb
95 
96 #endif
otb::PersistentImageFilter
This filter is the base class for all filter persisting data through multiple update....
Definition: otbPersistentImageFilter.h:47
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::PersistentImageFilter::PrintSelf
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition: otbPersistentImageFilter.h:85
otb::PersistentImageFilter::PersistentImageFilter
PersistentImageFilter()
Definition: otbPersistentImageFilter.h:75
otb::PersistentImageFilter::Superclass
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
Definition: otbPersistentImageFilter.h:52
otb::PersistentImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbPersistentImageFilter.h:54
otb::PersistentImageFilter::Self
PersistentImageFilter Self
Definition: otbPersistentImageFilter.h:51
otb::PersistentImageFilter::OutputImageType
TOutputImage OutputImageType
Definition: otbPersistentImageFilter.h:61
otb::PersistentImageFilter::InputImageType
TInputImage InputImageType
Definition: otbPersistentImageFilter.h:57
otb::PersistentImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbPersistentImageFilter.h:53
otb::PersistentImageFilter::~PersistentImageFilter
~PersistentImageFilter() override
Definition: otbPersistentImageFilter.h:80