OTB  9.0.0
Orfeo Toolbox
otbImageToImageListFilter.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 otbImageToImageListFilter_h
22 #define otbImageToImageListFilter_h
23 
24 #include "otbImageListSource.h"
25 
26 namespace otb
27 {
38 template <class TInputImage, class TOutputImage>
39 class ITK_EXPORT ImageToImageListFilter : public ImageListSource<TOutputImage>
40 {
41 public:
45  typedef itk::SmartPointer<Self> Pointer;
46  typedef itk::SmartPointer<const Self> ConstPointer;
47 
49  itkNewMacro(Self);
50 
53 
55  typedef TInputImage InputImageType;
56  typedef typename InputImageType::ConstPointer InputImagePointer;
57  typedef typename InputImageType::RegionType InputImageRegionType;
58  typedef typename InputImageType::PixelType InputImagePixelType;
59  typedef typename InputImageType::SizeType SizeType;
60  typedef typename InputImageType::ValueType ValueType;
61 
63  typedef typename Superclass::OutputImageType OutputImageType;
64  typedef typename Superclass::OutputImageListType OutputImageListType;
65  typedef typename Superclass::OutputImagePointerType OutputImagePointerType;
66 
68  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
69 
71  using Superclass::SetInput;
72  virtual void SetInput(const InputImageType* image);
73  InputImageType* GetInput(void);
75 
76 protected:
79 
82  {
83  }
84 
86  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
87 
88 private:
89  ImageToImageListFilter(const Self&) = delete;
90  void operator=(const Self&) = delete;
91 };
92 } // End namespace otb
93 #ifndef OTB_MANUAL_INSTANTIATION
95 #endif
96 
97 #endif
otb::ImageListSource
Base class for all the filters producing an otbImageList.
Definition: otbImageListSource.h:40
otb::ImageToImageListFilter::InputImagePointer
InputImageType::ConstPointer InputImagePointer
Definition: otbImageToImageListFilter.h:56
otb::ImageToImageListFilter::OutputImageListType
Superclass::OutputImageListType OutputImageListType
Definition: otbImageToImageListFilter.h:64
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ImageToImageListFilter::OutputImagePointerType
Superclass::OutputImagePointerType OutputImagePointerType
Definition: otbImageToImageListFilter.h:65
otb::ImageToImageListFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbImageToImageListFilter.h:57
otb::ImageToImageListFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageToImageListFilter.h:46
otb::ImageToImageListFilter::~ImageToImageListFilter
~ImageToImageListFilter() override
Definition: otbImageToImageListFilter.h:81
otb::ImageToImageListFilter::ValueType
InputImageType::ValueType ValueType
Definition: otbImageToImageListFilter.h:60
otb::ImageToImageListFilter::OutputImageType
Superclass::OutputImageType OutputImageType
Definition: otbImageToImageListFilter.h:63
otb::ImageToImageListFilter::Superclass
ImageListSource< TOutputImage > Superclass
Definition: otbImageToImageListFilter.h:44
otb::ImageToImageListFilter::InputImagePixelType
InputImageType::PixelType InputImagePixelType
Definition: otbImageToImageListFilter.h:58
otbImageToImageListFilter.hxx
otb::ImageToImageListFilter::SizeType
InputImageType::SizeType SizeType
Definition: otbImageToImageListFilter.h:59
otb::ImageToImageListFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbImageToImageListFilter.h:45
otb::ImageToImageListFilter::InputImageType
TInputImage InputImageType
Definition: otbImageToImageListFilter.h:52
otbImageListSource.h
otb::ImageToImageListFilter
Base class for all the filters taking an image input to produce an image list.
Definition: otbImageToImageListFilter.h:39
otb::ImageToImageListFilter::Self
ImageToImageListFilter Self
Definition: otbImageToImageListFilter.h:43