OTB  10.0.0
Orfeo Toolbox
otbPersistentImageFilter.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 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  virtual void VerifyInputInformation() const {};
91 
92 private:
93  PersistentImageFilter(const Self&) = delete;
94  void operator=(const Self&) = delete;
95 };
96 } // End namespace otb
97 
98 #endif
This filter is the base class for all filter persisting data through multiple update....
itk::SmartPointer< const Self > ConstPointer
virtual void Synthetize(void)=0
itk::SmartPointer< Self > Pointer
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
PersistentImageFilter(const Self &)=delete
virtual void Reset(void)=0
virtual void VerifyInputInformation() const
void operator=(const Self &)=delete
void PrintSelf(std::ostream &os, itk::Indent indent) const override
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.