OTB  10.0.0
Orfeo Toolbox
otbWaveletsSynopsisImageToWaveletsBandsListFilter.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 #ifndef otbWaveletsSynopsisImageToWaveletsBandsListFilter_h
22 #define otbWaveletsSynopsisImageToWaveletsBandsListFilter_h
23 
25 #include "itkRegionOfInterestImageFilter.h"
26 
27 
28 namespace otb
29 {
30 
38 template <class TImage, class TImageList>
39 class ITK_EXPORT WaveletsSynopsisImageToWaveletsBandsListFilter : public ImageToImageListFilter<TImage, typename TImageList::ImageType>
40 {
41 public:
45  typedef itk::SmartPointer<Self> Pointer;
46  typedef itk::SmartPointer<const Self> ConstPointer;
47 
49  itkNewMacro(Self);
50 
53 
55  typedef TImage InputImageType;
56  typedef typename InputImageType::RegionType RegionType;
57  typedef TImageList OutputImageListType;
59 
60  typedef itk::RegionOfInterestImageFilter<InputImageType, InputImageType> ExtractFilterType;
61 
62  typedef typename ExtractFilterType::Pointer ExtractFilterPointerType;
63 
64  typedef std::vector<ExtractFilterPointerType> ExtractFilterVectorType;
65 
67  itkSetMacro(NumberOfLevels, unsigned int);
68 
70  itkGetMacro(NumberOfLevels, unsigned int);
71 
73  itkSetMacro(DecimationRatio, unsigned int);
74 
76  itkGetMacro(DecimationRatio, unsigned int);
77 
79  virtual void Modified() const override;
80 
81 protected:
84 
87 
89  virtual void PrintSelf(std::ostream& os, itk::Indent indent) const override;
90 
92  virtual void GenerateInputRequestedRegion(void) override;
93 
95  virtual void GenerateOutputInformation(void) override;
96 
98  virtual void GenerateData(void) override;
99 
100 private:
102  void operator=(const Self&) = delete;
103 
105  unsigned int m_NumberOfLevels;
106 
108  unsigned int m_DecimationRatio;
109 
112 
115 };
116 } // End namespace otb
117 #ifndef OTB_MANUAL_INSTANTIATION
119 #endif
120 
121 #endif
Base class for all the filters producing an otbImageList.
TImage ImageType
Definition: otbImageList.h:52
Base class for all the filters taking an image input to produce an image list.
This class convert the standard wavelets view to a list of bands.
WaveletsSynopsisImageToWaveletsBandsListFilter(const Self &)=delete
virtual void GenerateInputRequestedRegion(void) override
virtual void GenerateOutputInformation(void) override
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const override
ImageToImageListFilter< TImage, typename TImageList::ImageType > Superclass
itk::RegionOfInterestImageFilter< InputImageType, InputImageType > ExtractFilterType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.