OTB  9.0.0
Orfeo Toolbox
otbWaveletImageFilter.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 otbWaveletImageFilter_hxx
23 #define otbWaveletImageFilter_hxx
24 
25 #include "otbWaveletImageFilter.h"
26 
27 namespace otb
28 {
30 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
32 {
34  m_WaveletTransform->SetSubsampleImageFactor(2);
36 
39 }
40 
42 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
44 {
45 }
46 
50 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
52 {
53  // call the superclass' implementation of this method
54  Superclass::GenerateInputRequestedRegion();
55 
56  // get pointers to the inputs
57  typename InputImageType::Pointer input = const_cast<InputImageType*>(this->GetInput());
58 
59  if (!input)
60  {
61  return;
62  }
63 
64  input->SetRequestedRegionToLargestPossibleRegion();
65 }
66 
70 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
72 {
73  m_WaveletTransform->SetInput(this->GetInput());
74  m_WaveletTransform->SetNumberOfDecompositions(m_NumberOfDecompositions);
75  m_WaveletBandsListToWaveletsSynopsis->GraftOutput(this->GetOutput());
76  m_WaveletBandsListToWaveletsSynopsis->Update();
77  this->GraftOutput(m_WaveletBandsListToWaveletsSynopsis->GetOutput());
78 }
80 
84 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
86 {
87  Superclass::PrintSelf(os, indent);
88 }
89 }
91 
92 #endif
otb::WaveletImageFilter::InputImageType
TInputImage InputImageType
Definition: otbWaveletImageFilter.h:49
otb::WaveletImageFilter::GenerateData
virtual void GenerateData() override
Definition: otbWaveletImageFilter.hxx:71
otb::WaveletsBandsListToWaveletsSynopsisImageFilter::New
static Pointer New()
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::WaveletImageFilter::m_WaveletBandsListToWaveletsSynopsis
WaveletBandsListToWaveletsSynopsisImageFilterPointerType m_WaveletBandsListToWaveletsSynopsis
Definition: otbWaveletImageFilter.h:98
otb::WaveletImageFilter::WaveletImageFilter
WaveletImageFilter()
Definition: otbWaveletImageFilter.hxx:31
otb::WaveletImageFilter::GenerateInputRequestedRegion
virtual void GenerateInputRequestedRegion() override
Definition: otbWaveletImageFilter.hxx:51
otb::WaveletImageFilter::m_WaveletTransform
WaveletTransformFilterPointerType m_WaveletTransform
Definition: otbWaveletImageFilter.h:97
otb::WaveletImageFilter::PrintSelf
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition: otbWaveletImageFilter.hxx:85
otb::WaveletImageFilter::~WaveletImageFilter
virtual ~WaveletImageFilter()
Definition: otbWaveletImageFilter.hxx:43
otbWaveletImageFilter.h
otb::WaveletTransform::New
static Pointer New()