OTB  6.7.0
Orfeo Toolbox
otbImageListToImageListApplyFilter.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 otbImageListToImageListApplyFilter_h
22 #define otbImageListToImageListApplyFilter_h
23 
25 
26 namespace otb
27 {
46 template <class TInputImageList, class TOutputImageList, class TFilter>
48  : public ImageListToImageListFilter<typename TInputImageList::ImageType,
49  typename TOutputImageList::ImageType>
50 {
51 public:
54  typedef ImageListToImageListFilter<typename TInputImageList::ImageType,
55  typename TOutputImageList::ImageType> Superclass;
58 
60  itkNewMacro(Self);
61 
64 
66  typedef TInputImageList InputImageListType;
67  typedef typename InputImageListType::Pointer InputImageListPointerType;
68  typedef typename InputImageListType::ImageType InputImageType;
69  typedef TOutputImageList OutputImageListType;
70  typedef typename OutputImageListType::Pointer OutputImageListPointerType;
71  typedef typename OutputImageListType::ImageType OutputImageType;
72  typedef TFilter FilterType;
73  typedef typename FilterType::Pointer FilterPointerType;
74 
76  itkSetObjectMacro(Filter, FilterType);
77  itkGetObjectMacro(Filter, FilterType);
79 
80  itkGetMacro(OutputIndex, unsigned int);
81  itkSetMacro(OutputIndex, unsigned int);
82 
85  void GenerateOutputInformation(void) override;
86 
88  void GenerateInputRequestedRegion(void) override;
89 
90 protected:
92  void GenerateData(void) override;
93 
96 
99 
101  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
102 
103 private:
104  ImageListToImageListApplyFilter(const Self &) = delete;
105  void operator =(const Self&) = delete;
106 
109 
111  unsigned int m_OutputIndex;
112 };
113 } // End namespace otb
114 #ifndef OTB_MANUAL_INSTANTIATION
116 #endif
117 
118 #endif
Base class for all the filters taking an image list as input to produce an image list.
static const std::string Filter
ImageListToImageListFilter< typename TInputImageList::ImageType, typename TOutputImageList::ImageType > Superclass
This filter applies the filter given as template to the input image list.