OTB  9.0.0
Orfeo Toolbox
otbImageListToImageFilter.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 otbImageListToImageFilter_h
22 #define otbImageListToImageFilter_h
23 
24 #include "itkImageSource.h"
25 #include "otbImageList.h"
26 
27 namespace otb
28 {
39 template <class TInputImage, class TOutputImage>
40 class ITK_EXPORT ImageListToImageFilter : public itk::ImageSource<TOutputImage>
41 {
42 public:
45  typedef itk::ImageSource<TOutputImage> Superclass;
46  typedef itk::SmartPointer<Self> Pointer;
47  typedef itk::SmartPointer<const Self> ConstPointer;
48 
50  itkNewMacro(Self);
51 
53  itkTypeMacro(ImageListToImageFilter, ImageSource);
54 
56  typedef TInputImage InputImageType;
57  typedef typename InputImageType::ConstPointer InputImagePointer;
58  typedef typename InputImageType::RegionType InputImageRegionType;
59  typedef typename InputImageType::PixelType InputImagePixelType;
60  typedef typename InputImageType::SizeType SizeType;
61  typedef typename InputImageType::ValueType ValueType;
64 
66  typedef typename Superclass::OutputImageType OutputImageType;
67  typedef typename OutputImageType::Pointer OutputImagePointerType;
68 
70  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
71 
73  using Superclass::SetInput;
74  virtual void SetInput(const InputImageListType* image);
75  InputImageListType* GetInput(void);
77 
78 protected:
81 
84  {
85  }
86 
88  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
89 
90 private:
91  ImageListToImageFilter(const Self&) = delete;
92  void operator=(const Self&) = delete;
93 };
94 } // End namespace otb
95 #ifndef OTB_MANUAL_INSTANTIATION
97 #endif
98 
99 #endif
otbImageList.h
otb::ImageListToImageFilter
Base class for all the filters taking an images list as input to produce an image.
Definition: otbImageListToImageFilter.h:40
otb::ImageListToImageFilter::OutputImageType
Superclass::OutputImageType OutputImageType
Definition: otbImageListToImageFilter.h:66
otb::ImageListToImageFilter::InputImagePixelType
InputImageType::PixelType InputImagePixelType
Definition: otbImageListToImageFilter.h:59
otb::ImageListToImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbImageListToImageFilter.h:46
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ImageListToImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageListToImageFilter.h:47
otb::ImageListToImageFilter::ValueType
InputImageType::ValueType ValueType
Definition: otbImageListToImageFilter.h:61
otb::ImageListToImageFilter::~ImageListToImageFilter
~ImageListToImageFilter() override
Definition: otbImageListToImageFilter.h:83
otb::ImageListToImageFilter::OutputImagePointerType
OutputImageType::Pointer OutputImagePointerType
Definition: otbImageListToImageFilter.h:67
otb::ImageListToImageFilter::InputImagePointer
InputImageType::ConstPointer InputImagePointer
Definition: otbImageListToImageFilter.h:57
otb::ImageListToImageFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbImageListToImageFilter.h:58
otb::ImageListToImageFilter::SizeType
InputImageType::SizeType SizeType
Definition: otbImageListToImageFilter.h:60
otb::ImageListToImageFilter::Self
ImageListToImageFilter Self
Definition: otbImageListToImageFilter.h:44
otb::ImageListToImageFilter::InputImageListType
ImageList< InputImageType > InputImageListType
Definition: otbImageListToImageFilter.h:62
otbImageListToImageFilter.hxx
otb::ImageListToImageFilter::Superclass
itk::ImageSource< TOutputImage > Superclass
Definition: otbImageListToImageFilter.h:45
otb::ImageList
This class represent a list of images.
Definition: otbImageList.h:39
otb::ImageListToImageFilter::InputImageListConstPointerType
InputImageListType::ConstPointer InputImageListConstPointerType
Definition: otbImageListToImageFilter.h:63
otb::ImageList::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageList.h:46
otb::ImageListToImageFilter::InputImageType
TInputImage InputImageType
Definition: otbImageListToImageFilter.h:53