OTB  9.0.0
Orfeo Toolbox
otbPersistentFilterStreamingDecorator.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 otbPersistentFilterStreamingDecorator_h
22 #define otbPersistentFilterStreamingDecorator_h
23 
25 #include "itkProcessObject.h"
26 
27 namespace otb
28 {
46 template <class TFilter>
47 class ITK_EXPORT PersistentFilterStreamingDecorator : public itk::ProcessObject
48 {
49 public:
52  typedef itk::ProcessObject Superclass;
53  typedef itk::SmartPointer<Self> Pointer;
54  typedef itk::SmartPointer<const Self> ConstPointer;
55 
57  itkNewMacro(Self);
58 
60  itkTypeMacro(PersistentFilterStreamingDecorator, ProcessObject);
61 
63  typedef TFilter FilterType;
64  typedef typename FilterType::Pointer FilterPointerType;
66 
68  typedef typename StreamerType::Pointer StreamerPointerType;
69 
70  itkSetObjectMacro(Filter, FilterType);
71  itkGetObjectMacro(Filter, FilterType);
72  itkGetConstObjectMacro(Filter, FilterType);
73  itkGetObjectMacro(Streamer, StreamerType);
74 
75  void Update(void) override;
76 
77 protected:
80 
83  {
84  }
85 
87  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
88 
89  void GenerateData(void) override;
90 
93 
96 
97 private:
99  void operator=(const Self&) = delete;
100 };
101 } // End namespace otb
102 #ifndef OTB_MANUAL_INSTANTIATION
104 #endif
105 
106 #endif
otbPersistentFilterStreamingDecorator.hxx
otb::PersistentFilterStreamingDecorator::StreamerType
StreamingImageVirtualWriter< ImageType > StreamerType
Definition: otbPersistentFilterStreamingDecorator.h:67
otb::PersistentFilterStreamingDecorator::ImageType
FilterType::InputImageType ImageType
Definition: otbPersistentFilterStreamingDecorator.h:65
otbStreamingImageVirtualWriter.h
otb::PersistentFilterStreamingDecorator::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbPersistentFilterStreamingDecorator.h:53
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::PersistentFilterStreamingDecorator::FilterType
TFilter FilterType
Definition: otbPersistentFilterStreamingDecorator.h:60
otb::Wrapper::Tags::Filter
static const std::string Filter
Definition: otbWrapperTags.h:39
otb::PersistentFilterStreamingDecorator::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbPersistentFilterStreamingDecorator.h:54
otb::PersistentFilterStreamingDecorator::FilterPointerType
FilterType::Pointer FilterPointerType
Definition: otbPersistentFilterStreamingDecorator.h:64
otb::PersistentFilterStreamingDecorator
This filter link a persistent filter with a StreamingImageVirtualWriter.
Definition: otbPersistentFilterStreamingDecorator.h:47
otb::PersistentImageFilter< TInputImage, TInputImage >::InputImageType
TInputImage InputImageType
Definition: otbPersistentImageFilter.h:57
otb::PersistentFilterStreamingDecorator::StreamerPointerType
StreamerType::Pointer StreamerPointerType
Definition: otbPersistentFilterStreamingDecorator.h:68
otb::PersistentFilterStreamingDecorator::~PersistentFilterStreamingDecorator
~PersistentFilterStreamingDecorator() override
Definition: otbPersistentFilterStreamingDecorator.h:82
otb::PersistentFilterStreamingDecorator::m_Filter
FilterPointerType m_Filter
Object responsible for computation.
Definition: otbPersistentFilterStreamingDecorator.h:95
otb::PersistentCompareImageFilter
Compute mean squared error, mean absolute error and PSNR of two imagee using the output requested reg...
Definition: otbStreamingCompareImageFilter.h:51
otb::PersistentFilterStreamingDecorator::Self
PersistentFilterStreamingDecorator Self
Definition: otbPersistentFilterStreamingDecorator.h:51
otb::StreamingImageVirtualWriter
This class acts like a StreamingImageFileWriter, but without actually writing data to the disk.
Definition: otbStreamingImageVirtualWriter.h:60
otb::PersistentFilterStreamingDecorator::m_Streamer
StreamerPointerType m_Streamer
Object responsible for streaming.
Definition: otbPersistentFilterStreamingDecorator.h:92
otb::PersistentFilterStreamingDecorator::Superclass
itk::ProcessObject Superclass
Definition: otbPersistentFilterStreamingDecorator.h:52