OTB  7.2.0
Orfeo Toolbox
otbVectorImageToImageListFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2020 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 otbVectorImageToImageListFilter_h
22 #define otbVectorImageToImageListFilter_h
23 
25 
26 namespace otb
27 {
43 template <class TVectorImageType, class TImageList>
44 class ITK_EXPORT VectorImageToImageListFilter : public ImageToImageListFilter<TVectorImageType, typename TImageList::ImageType>
45 {
46 public:
50  typedef itk::SmartPointer<Self> Pointer;
51  typedef itk::SmartPointer<const Self> ConstPointer;
52 
54  itkNewMacro(Self);
55 
58 
60  typedef TVectorImageType InputVectorImageType;
61  typedef typename InputVectorImageType::Pointer InputVectorImagePointerType;
62  typedef TImageList OutputImageListType;
63  typedef typename OutputImageListType::Pointer OutputImageListPointerType;
64  typedef typename OutputImageListType::ImageType OutputImageType;
65  typedef typename OutputImageType::Pointer OutputImagePointerType;
66 
68  void GenerateInputRequestedRegion(void) override;
69 
71  void GenerateOutputInformation(void) override;
72 
73 protected:
75  void GenerateData(void) override;
76 
79 
82  {
83  }
84 
86  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
87 
88 private:
89  VectorImageToImageListFilter(const Self&) = delete;
90  void operator=(const Self&) = delete;
91 };
92 } // End namespace otb
93 #ifndef OTB_MANUAL_INSTANTIATION
95 #endif
96 
97 #endif
OutputImageListType::Pointer OutputImageListPointerType
This class aims at converting a multi-band image to a list of scalar images.
itk::SmartPointer< const Self > ConstPointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Base class for all the filters taking an image input to produce an image list.
ImageToImageListFilter< TVectorImageType, typename TImageList::ImageType > Superclass
InputVectorImageType::Pointer InputVectorImagePointerType
OutputImageListType::ImageType OutputImageType