OTB  10.0.0
Orfeo Toolbox
otbWaveletImageFilter.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 otbWaveletImageFilter_h
23 #define otbWaveletImageFilter_h
24 
25 #include "otbWaveletOperator.h"
26 #include "otbWaveletFilterBank.h"
27 #include "otbWaveletTransform.h"
29 
30 namespace otb
31 {
32 
44 template <class TInputImage, class TOutputImage, Wavelet::Wavelet TMotherWaveletOperator>
45 class WaveletImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
46 {
47 public:
49  typedef TInputImage InputImageType;
50  typedef TOutputImage OutputImageType;
51 
52  itkStaticConstMacro(ImageDimension, unsigned int, InputImageType::ImageDimension);
53  itkStaticConstMacro(MotherWaveletOperator, short, TMotherWaveletOperator);
54  itkStaticConstMacro(DirectionOfTransformation, short, otb::Wavelet::FORWARD);
55 
57  typedef itk::ImageToImageFilter<InputImageType, OutputImageType> Superclass;
58  typedef itk::SmartPointer<Self> Pointer;
59  typedef itk::SmartPointer<const Self> ConstPointer;
60 
61  typedef typename InputImageType::PixelType InputPixelType;
62 
67 
68  typedef typename WaveletTransformFilterType::OutputImageListType WaveletTransformFilterOutputImageListType;
72 
73 
75  itkNewMacro(Self);
76 
78  itkTypeMacro(WaveletImageFilter, ImageToImageFilter);
79 
80  itkGetMacro(NumberOfDecompositions, unsigned int);
81  itkSetMacro(NumberOfDecompositions, unsigned int);
82 
83 protected:
85  virtual ~WaveletImageFilter();
86 
87  virtual void GenerateInputRequestedRegion() override;
88 
89  virtual void GenerateData() override;
90 
91  virtual void PrintSelf(std::ostream& os, itk::Indent indent) const override;
92 
93 private:
94  WaveletImageFilter(const Self&) = delete;
95  void operator=(const Self&) = delete;
96 
100 };
101 }
102 
103 #ifndef OTB_MANUAL_INSTANTIATION
104 #include "otbWaveletImageFilter.hxx"
105 #endif
106 
107 #endif
One level stationary wavelet transform.
This filter performs wavelet forward transform. It takes three template arguments: Input,...
WaveletTransformFilterType::Pointer WaveletTransformFilterPointerType
itk::SmartPointer< Self > Pointer
itk::SmartPointer< const Self > ConstPointer
WaveletImageFilter(const Self &)=delete
otb::WaveletOperator< TMotherWaveletOperator, otb::Wavelet::FORWARD, InputPixelType, ImageDimension > WaveletOperatorType
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
virtual void GenerateData() override
static const unsigned int ImageDimension
WaveletBandsListToWaveletsSynopsisImageFilterPointerType m_WaveletBandsListToWaveletsSynopsis
otb::WaveletFilterBank< InputImageType, InputImageType, WaveletOperatorType, otb::Wavelet::FORWARD > FilterBankType
static const short MotherWaveletOperator
static const short DirectionOfTransformation
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override
void operator=(const Self &)=delete
InputImageType::PixelType InputPixelType
otb::WaveletsBandsListToWaveletsSynopsisImageFilter< WaveletTransformFilterOutputImageListType, OutputImageType > WaveletBandsListToWaveletsSynopsisImageFilterType
WaveletImageFilter< InputImageType, OutputImageType, TMotherWaveletOperator > Self
virtual void GenerateInputRequestedRegion() override
WaveletBandsListToWaveletsSynopsisImageFilterType::Pointer WaveletBandsListToWaveletsSynopsisImageFilterPointerType
WaveletTransformFilterPointerType m_WaveletTransform
otb::WaveletTransform< InputImageType, InputImageType, FilterBankType, otb::Wavelet::FORWARD > WaveletTransformFilterType
WaveletTransformFilterType::OutputImageListType WaveletTransformFilterOutputImageListType
A Generic NeighborhoodOperator wavelets filter set defined for templation.
Wavelet transformation framework.
itk::SmartPointer< Self > Pointer
Converts a list of wavelets bands to the traditional multi-resolution wavelets view.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.