OTB  10.0.0
Orfeo Toolbox
otbImageListToImageFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 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);
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
Base class for all the filters taking an images list as input to produce an image.
InputImageType::SizeType SizeType
virtual void SetInput(const InputImageListType *image)
itk::ImageSource< TOutputImage > Superclass
itk::SmartPointer< const Self > ConstPointer
InputImageType::PixelType InputImagePixelType
InputImageType::RegionType InputImageRegionType
void operator=(const Self &)=delete
InputImageType::ConstPointer InputImagePointer
OutputImageType::Pointer OutputImagePointerType
ImageListToImageFilter(const Self &)=delete
InputImageType::ValueType ValueType
InputImageListType * GetInput(void)
InputImageListType::ConstPointer InputImageListConstPointerType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Superclass::OutputImageType OutputImageType
ImageList< InputImageType > InputImageListType
itk::SmartPointer< Self > Pointer
This class represent a list of images.
Definition: otbImageList.h:40
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageList.h:46
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.