OTB  7.2.0
Orfeo Toolbox
otbImageListToVectorImageFilter.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 otbImageListToVectorImageFilter_h
22 #define otbImageListToVectorImageFilter_h
23 
25 
26 namespace otb
27 {
41 template <class TImageList, class TVectorImage>
42 class ITK_EXPORT ImageListToVectorImageFilter : public ImageListToImageFilter<typename TImageList::ImageType, TVectorImage>
43 {
44 public:
48  typedef itk::SmartPointer<Self> Pointer;
49  typedef itk::SmartPointer<const Self> ConstPointer;
50 
52  itkNewMacro(Self);
53 
56 
58  typedef TVectorImage OutputVectorImageType;
59  typedef typename OutputVectorImageType::Pointer OutputVectorImagePointerType;
60  typedef TImageList InputImageListType;
61  typedef typename InputImageListType::Pointer InputImageListPointerType;
62  typedef typename InputImageListType::ImageType InputImageType;
63  typedef typename InputImageType::Pointer InputImagePointerType;
64 
65 protected:
67  void GenerateData(void) override;
68 
73  void GenerateOutputInformation(void) override;
74 
79  void GenerateInputRequestedRegion(void) override;
80 
83 
86  {
87  }
88 
90  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
91 
92 private:
93  ImageListToVectorImageFilter(const Self&) = delete;
94  void operator=(const Self&) = delete;
95 };
96 } // End namespace otb
97 #ifndef OTB_MANUAL_INSTANTIATION
99 #endif
100 
101 #endif
itk::SmartPointer< const Self > ConstPointer
ImageListToImageFilter< typename TImageList::ImageType, TVectorImage > Superclass
Base class for all the filters taking an images list as input to produce an image.
Converts an ImageList to a VectorImage.
InputImageListType::Pointer InputImageListPointerType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
OutputVectorImageType::Pointer OutputVectorImagePointerType
Base class for all the filters taking an image input to produce an image list.