OTB  9.0.0
Orfeo Toolbox
otbWaveletInverseImageFilter.hxx
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 
22 #ifndef __otbWaveletInverseImageFilter_hxx
23 #define __otbWaveletInverseImageFilter_hxx
24 
26 
27 namespace otb
28 {
30 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
32 {
34  m_SynopsisImageToWaveletsBandsList->SetDecimationRatio(2);
36 
38  m_WaveletTransform->SetSubsampleImageFactor(2);
40 }
41 
43 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
45 {
46 }
47 
49 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
51 {
52  Superclass::Modified();
53  m_SynopsisImageToWaveletsBandsList->Modified();
54  m_WaveletTransform->Modified();
55 }
57 
61 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
63 {
64  // call the superclass' implementation of this method
65  Superclass::GenerateInputRequestedRegion();
66 
67  // get pointers to the inputs
68  typename InputImageType::Pointer input = const_cast<InputImageType*>(this->GetInput());
69 
70  if (!input)
71  {
72  return;
73  }
74 
75  input->SetRequestedRegionToLargestPossibleRegion();
76 }
77 
81 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
83 {
84  m_SynopsisImageToWaveletsBandsList->SetInput(this->GetInput());
85  m_SynopsisImageToWaveletsBandsList->SetNumberOfLevels(m_NumberOfDecompositions);
87 
88  m_WaveletTransform->GraftOutput(this->GetOutput());
89  m_WaveletTransform->Update();
90  this->GraftOutput(m_WaveletTransform->GetOutput());
91 }
92 
96 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
98 {
99  Superclass::PrintSelf(os, indent);
100 }
101 }
103 
104 #endif
otb::WaveletInverseImageFilter::m_WaveletTransform
WaveletInverseTransformFilterPointerType m_WaveletTransform
Definition: otbWaveletInverseImageFilter.h:100
otb::WaveletInverseImageFilter::GenerateData
virtual void GenerateData() override
Definition: otbWaveletInverseImageFilter.hxx:82
otb::WaveletInverseImageFilter::m_SynopsisImageToWaveletsBandsList
WaveletsSynopsisImageToWaveletsBandsListFilterPointerType m_SynopsisImageToWaveletsBandsList
Definition: otbWaveletInverseImageFilter.h:99
otb::WaveletInverseImageFilter::~WaveletInverseImageFilter
virtual ~WaveletInverseImageFilter()
Definition: otbWaveletInverseImageFilter.hxx:44
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::WaveletInverseImageFilter::GenerateInputRequestedRegion
virtual void GenerateInputRequestedRegion() override
Definition: otbWaveletInverseImageFilter.hxx:62
otb::WaveletInverseImageFilter::Modified
virtual void Modified() const override
Definition: otbWaveletInverseImageFilter.hxx:50
otb::WaveletInverseImageFilter::WaveletInverseImageFilter
WaveletInverseImageFilter()
Definition: otbWaveletInverseImageFilter.hxx:31
otb::WaveletInverseImageFilter::PrintSelf
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition: otbWaveletInverseImageFilter.hxx:97
otb::WaveletInverseImageFilter::InputImageType
TInputImage InputImageType
Definition: otbWaveletInverseImageFilter.h:48
otbWaveletInverseImageFilter.h
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::New
static Pointer New()
otb::WaveletTransform::New
static Pointer New()