OTB  9.0.0
Orfeo Toolbox
otbWaveletInverseImageFilter.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 
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
otbWaveletTransform.h
otb::WaveletInverseImageFilter::m_WaveletTransform
WaveletInverseTransformFilterPointerType m_WaveletTransform
Definition: otbWaveletInverseImageFilter.h:100
otb::WaveletInverseImageFilter::GenerateData
virtual void GenerateData() override
Definition: otbWaveletInverseImageFilter.hxx:82
otb::WaveletInverseImageFilter
This filter performs wavelet inverse transform. It takes three template arguments: Input,...
Definition: otbWaveletInverseImageFilter.h:44
otb::WaveletTransform
Wavelet transformation framework.
Definition: otbWaveletTransform.h:58
otb::WaveletInverseImageFilter::OutputPixelType
OutputImageType::PixelType OutputPixelType
Definition: otbWaveletInverseImageFilter.h:61
otb::WaveletInverseImageFilter::FilterBankType
otb::WaveletFilterBank< OutputImageType, OutputImageType, WaveletOperatorType, otb::Wavelet::INVERSE > FilterBankType
Definition: otbWaveletInverseImageFilter.h:64
otb::WaveletInverseImageFilter::WaveletInverseTransformFilterPointerType
WaveletInverseTransformFilterType::Pointer WaveletInverseTransformFilterPointerType
Definition: otbWaveletInverseImageFilter.h:66
otb::WaveletInverseImageFilter::WaveletsSynopsisImageToWaveletsBandsListFilterType
otb::WaveletsSynopsisImageToWaveletsBandsListFilter< InputImageType, typename WaveletInverseTransformFilterType::InputImageListType > WaveletsSynopsisImageToWaveletsBandsListFilterType
Definition: otbWaveletInverseImageFilter.h:69
otb::WaveletInverseImageFilter::m_SynopsisImageToWaveletsBandsList
WaveletsSynopsisImageToWaveletsBandsListFilterPointerType m_SynopsisImageToWaveletsBandsList
Definition: otbWaveletInverseImageFilter.h:99
otb::WaveletInverseImageFilter::InputPixelType
InputImageType::PixelType InputPixelType
Definition: otbWaveletInverseImageFilter.h:60
otb::WaveletInverseImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbWaveletInverseImageFilter.h:57
otb::WaveletInverseImageFilter::operator=
void operator=(const Self &)=delete
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::m_NumberOfDecompositions
unsigned int m_NumberOfDecompositions
Definition: otbWaveletInverseImageFilter.h:101
otb::WaveletInverseImageFilter::GenerateInputRequestedRegion
virtual void GenerateInputRequestedRegion() override
Definition: otbWaveletInverseImageFilter.hxx:62
otbWaveletsSynopsisImageToWaveletsBandsListFilter.h
otb::WaveletOperator
A Generic NeighborhoodOperator wavelets filter set defined for templation.
Definition: otbWaveletOperator.h:56
otb::WaveletInverseImageFilter::Self
WaveletInverseImageFilter< InputImageType, OutputImageType, TMotherWaveletOperator > Self
Definition: otbWaveletInverseImageFilter.h:55
otb::WaveletInverseImageFilter::Modified
virtual void Modified() const override
Definition: otbWaveletInverseImageFilter.hxx:50
otb::WaveletInverseImageFilter::DirectionOfTransformation
static const short DirectionOfTransformation
Definition: otbWaveletInverseImageFilter.h:53
otb::WaveletInverseImageFilter::WaveletInverseImageFilter
WaveletInverseImageFilter()
Definition: otbWaveletInverseImageFilter.hxx:31
otb::WaveletInverseImageFilter::WaveletInverseTransformFilterType
otb::WaveletTransform< OutputImageType, OutputImageType, FilterBankType, otb::Wavelet::INVERSE > WaveletInverseTransformFilterType
Definition: otbWaveletInverseImageFilter.h:65
otb::WaveletInverseImageFilter::PrintSelf
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition: otbWaveletInverseImageFilter.hxx:97
otb::WaveletInverseImageFilter::OutputImageType
TOutputImage OutputImageType
Definition: otbWaveletInverseImageFilter.h:49
otb::WaveletInverseImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbWaveletInverseImageFilter.h:58
otbWaveletOperator.h
otbWaveletInverseImageFilter.hxx
otb::WaveletInverseImageFilter::WaveletOperatorType
otb::WaveletOperator< TMotherWaveletOperator, otb::Wavelet::INVERSE, OutputPixelType, ImageDimension > WaveletOperatorType
Definition: otbWaveletInverseImageFilter.h:63
otbWaveletFilterBank.h
otb::WaveletInverseImageFilter::Superclass
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
Definition: otbWaveletInverseImageFilter.h:56
otb::WaveletTransform::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbWaveletTransform.h:64
otb::WaveletInverseImageFilter::InputImageType
TInputImage InputImageType
Definition: otbWaveletInverseImageFilter.h:48
otb::Wavelet::FORWARD
@ FORWARD
Definition: otbWaveletOperatorBase.h:38
otb::WaveletFilterBank
One level stationary wavelet transform.
Definition: otbWaveletFilterBank.h:87
otb::WaveletInverseImageFilter::ImageDimension
static const unsigned int ImageDimension
Definition: otbWaveletInverseImageFilter.h:51
otb::WaveletInverseImageFilter::WaveletsSynopsisImageToWaveletsBandsListFilterPointerType
WaveletsSynopsisImageToWaveletsBandsListFilterType::Pointer WaveletsSynopsisImageToWaveletsBandsListFilterPointerType
Definition: otbWaveletInverseImageFilter.h:70
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:45
otb::WaveletInverseImageFilter::MotherWaveletOperator
static const short MotherWaveletOperator
Definition: otbWaveletInverseImageFilter.h:52
otb::WaveletsSynopsisImageToWaveletsBandsListFilter
This class convert the standard wavelets view to a list of bands.
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:39