OTB  10.0.0
Orfeo Toolbox
otbWaveletInverseImageFilter.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 
22 #ifndef otbWaveletInverseImageFilter_h
23 #define otbWaveletInverseImageFilter_h
24 
25 #include "otbWaveletOperator.h"
26 #include "otbWaveletFilterBank.h"
27 #include "otbWaveletTransform.h"
29 
30 namespace otb
31 {
32 
43 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
44 class WaveletInverseImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
45 {
46 public:
48  typedef TInputImage InputImageType;
49  typedef TOutputImage OutputImageType;
50 
51  itkStaticConstMacro(ImageDimension, unsigned int, InputImageType::ImageDimension);
52  itkStaticConstMacro(MotherWaveletOperator, short, TMotherWaveletOperator);
53  itkStaticConstMacro(DirectionOfTransformation, short, otb::Wavelet::FORWARD);
54 
56  typedef itk::ImageToImageFilter<InputImageType, OutputImageType> Superclass;
57  typedef itk::SmartPointer<Self> Pointer;
58  typedef itk::SmartPointer<const Self> ConstPointer;
59 
60  typedef typename InputImageType::PixelType InputPixelType;
61  typedef typename OutputImageType::PixelType OutputPixelType;
62 
67 
71 
72 
74  itkNewMacro(Self);
75 
77  itkTypeMacro(WaveletInverseImageFilter, ImageToImageFilter);
78 
79  itkGetMacro(NumberOfDecompositions, unsigned int);
80  itkSetMacro(NumberOfDecompositions, unsigned int);
81 
83  virtual void Modified() const override;
84 
85 protected:
88 
89  virtual void GenerateInputRequestedRegion() override;
90 
91  virtual void GenerateData() override;
92 
93  virtual void PrintSelf(std::ostream& os, itk::Indent indent) const override;
94 
95 private:
96  WaveletInverseImageFilter(const Self&) = delete;
97  void operator=(const Self&) = delete;
98 
102 };
103 }
104 
105 #ifndef OTB_MANUAL_INSTANTIATION
107 #endif
108 
109 #endif
One level stationary wavelet transform.
This filter performs wavelet inverse transform. It takes three template arguments: Input,...
otb::WaveletFilterBank< OutputImageType, OutputImageType, WaveletOperatorType, otb::Wavelet::INVERSE > FilterBankType
virtual void Modified() const override
otb::WaveletsSynopsisImageToWaveletsBandsListFilter< InputImageType, typename WaveletInverseTransformFilterType::InputImageListType > WaveletsSynopsisImageToWaveletsBandsListFilterType
itk::SmartPointer< const Self > ConstPointer
WaveletsSynopsisImageToWaveletsBandsListFilterType::Pointer WaveletsSynopsisImageToWaveletsBandsListFilterPointerType
otb::WaveletTransform< OutputImageType, OutputImageType, FilterBankType, otb::Wavelet::INVERSE > WaveletInverseTransformFilterType
virtual void GenerateInputRequestedRegion() override
WaveletInverseTransformFilterPointerType m_WaveletTransform
void operator=(const Self &)=delete
WaveletInverseImageFilter< InputImageType, OutputImageType, TMotherWaveletOperator > Self
WaveletsSynopsisImageToWaveletsBandsListFilterPointerType m_SynopsisImageToWaveletsBandsList
OutputImageType::PixelType OutputPixelType
otb::WaveletOperator< TMotherWaveletOperator, otb::Wavelet::INVERSE, OutputPixelType, ImageDimension > WaveletOperatorType
WaveletInverseTransformFilterType::Pointer WaveletInverseTransformFilterPointerType
WaveletInverseImageFilter(const Self &)=delete
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override
A Generic NeighborhoodOperator wavelets filter set defined for templation.
Wavelet transformation framework.
itk::SmartPointer< Self > Pointer
This class convert the standard wavelets view to a list of bands.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.