OTB  9.0.0
Orfeo Toolbox
otbWaveletsSynopsisImageToWaveletsBandsListFilter.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 #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;
58  typedef typename OutputImageListType::ImageType OutputImageType;
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
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::m_ExtractFilters
ExtractFilterVectorType m_ExtractFilters
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:111
otbImageToImageListFilter.h
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::Superclass
ImageToImageListFilter< TImage, typename TImageList::ImageType > Superclass
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:44
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::m_DecimationRatio
unsigned int m_DecimationRatio
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:108
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::RegionType
InputImageType::RegionType RegionType
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:56
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::m_NumberOfLevels
unsigned int m_NumberOfLevels
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:105
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::InputImageType
TImage InputImageType
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:52
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::OutputImageType
OutputImageListType::ImageType OutputImageType
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:58
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::ExtractFilterPointerType
ExtractFilterType::Pointer ExtractFilterPointerType
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:62
otbWaveletsSynopsisImageToWaveletsBandsListFilter.hxx
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::m_ExtractFiltersUpToDate
bool m_ExtractFiltersUpToDate
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:114
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:46
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::OutputImageListType
TImageList OutputImageListType
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:57
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::ExtractFilterType
itk::RegionOfInterestImageFilter< InputImageType, InputImageType > ExtractFilterType
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:60
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::ExtractFilterVectorType
std::vector< ExtractFilterPointerType > ExtractFilterVectorType
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:64
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::Self
WaveletsSynopsisImageToWaveletsBandsListFilter Self
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:43
otb::WaveletsSynopsisImageToWaveletsBandsListFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:45
otb::ImageToImageListFilter
Base class for all the filters taking an image input to produce an image list.
Definition: otbImageToImageListFilter.h:39
otb::WaveletsSynopsisImageToWaveletsBandsListFilter
This class convert the standard wavelets view to a list of bands.
Definition: otbWaveletsSynopsisImageToWaveletsBandsListFilter.h:39