OTB  6.7.0
Orfeo Toolbox
otbWaveletsSynopsisImageToWaveletsBandsListFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 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 
26 
27 
28 namespace otb
29 {
30 
38 template <class TImage, class TImageList>
40  : public ImageToImageListFilter<TImage,typename TImageList::ImageType>
41 {
42 public:
45  typedef ImageToImageListFilter<TImage,
46  typename TImageList::ImageType> Superclass;
49 
51  itkNewMacro(Self);
52 
55 
57  typedef TImage InputImageType;
58  typedef typename InputImageType::RegionType RegionType;
59  typedef TImageList OutputImageListType;
60  typedef typename OutputImageListType::ImageType OutputImageType;
61 
65 
67 
68  typedef std::vector<ExtractFilterPointerType> ExtractFilterVectorType;
69 
71  itkSetMacro(NumberOfLevels,unsigned int);
72 
74  itkGetMacro(NumberOfLevels,unsigned int);
75 
77  itkSetMacro(DecimationRatio,unsigned int);
78 
80  itkGetMacro(DecimationRatio,unsigned int);
81 
83  virtual void Modified() const override;
84 
85 protected:
88 
91 
93  virtual void PrintSelf(std::ostream& os, itk::Indent indent) const override;
94 
96  virtual void GenerateInputRequestedRegion(void) override;
97 
99  virtual void GenerateOutputInformation(void) override;
100 
102  virtual void GenerateData(void) override;
103 
104 private:
106  void operator=(const Self&) = delete;
107 
109  unsigned int m_NumberOfLevels;
110 
112  unsigned int m_DecimationRatio;
113 
116 
119 };
120 }// End namespace otb
121 #ifndef OTB_MANUAL_INSTANTIATION
123 #endif
124 
125 #endif
ImageToImageListFilter< TImage, typename TImageList::ImageType > Superclass
This class convert the standard wavelets view to a list of bands.
Base class for all the filters taking an image input to produce an image list.
itk::RegionOfInterestImageFilter< InputImageType, InputImageType > ExtractFilterType