OTB  9.0.0
Orfeo Toolbox
otbImageListToSingleImageFilter.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 otbImageListToSingleImageFilter_h
22 #define otbImageListToSingleImageFilter_h
23 
25 
26 namespace otb
27 {
42 template <class TInputImageType>
43 class ITK_EXPORT ImageListToSingleImageFilter : public ImageListToImageFilter<TInputImageType, TInputImageType>
44 {
45 public:
49  typedef itk::SmartPointer<Self> Pointer;
50  typedef itk::SmartPointer<const Self> ConstPointer;
51 
52  typedef TInputImageType InputImageType;
53  typedef typename InputImageType::Pointer InputImagePointerType;
55  typedef TInputImageType OutputImageType;
56  typedef typename OutputImageType::Pointer OutputImagePointerType;
57 
59  itkNewMacro(Self);
60 
63 
65  itkGetMacro(ExtractedImagePosition, unsigned int);
66  itkSetMacro(ExtractedImagePosition, unsigned int);
68 
69  InputImagePointerType GetOutput(void);
70 
71 protected:
74 
77  {
78  }
79 
81  void GenerateData() override;
82 
84  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
85 
86 
87 private:
88  ImageListToSingleImageFilter(const Self&) = delete;
89  void operator=(const Self&) = delete;
90 
92 
93 }; // end of class
94 
95 } // end of namespace
96 
97 #ifndef OTB_MANUAL_INSTANTIATION
99 #endif
100 
101 #endif
otb::ImageListToSingleImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbImageListToSingleImageFilter.h:49
otb::ImageListToSingleImageFilter::Self
ImageListToSingleImageFilter Self
Definition: otbImageListToSingleImageFilter.h:47
otb::ImageListToImageFilter
Base class for all the filters taking an images list as input to produce an image.
Definition: otbImageListToImageFilter.h:40
otb::ImageListToSingleImageFilter::OutputImageType
TInputImageType OutputImageType
Definition: otbImageListToSingleImageFilter.h:55
otb::ImageListToSingleImageFilter::OutputImagePointerType
OutputImageType::Pointer OutputImagePointerType
Definition: otbImageListToSingleImageFilter.h:56
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ImageListToSingleImageFilter::InputImagePointerType
InputImageType::Pointer InputImagePointerType
Definition: otbImageListToSingleImageFilter.h:53
otb::ImageListToSingleImageFilter::InputImageType
TInputImageType InputImageType
Definition: otbImageListToSingleImageFilter.h:52
otb::ImageListToSingleImageFilter
This class aims at converting a image list to one (scalar or vector) image.
Definition: otbImageListToSingleImageFilter.h:43
otb::ImageListToSingleImageFilter::Superclass
ImageListToImageFilter< TInputImageType, TInputImageType > Superclass
Definition: otbImageListToSingleImageFilter.h:48
otb::ImageListToSingleImageFilter::~ImageListToSingleImageFilter
~ImageListToSingleImageFilter() override
Definition: otbImageListToSingleImageFilter.h:76
otb::ImageListToSingleImageFilter::m_ExtractedImagePosition
unsigned int m_ExtractedImagePosition
Definition: otbImageListToSingleImageFilter.h:91
otb::ImageListToSingleImageFilter::InputImageListType
ImageList< InputImageType > InputImageListType
Definition: otbImageListToSingleImageFilter.h:54
otbImageListToImageFilter.h
otb::ImageList
This class represent a list of images.
Definition: otbImageList.h:39
otbImageListToSingleImageFilter.hxx
otb::ImageListToSingleImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageListToSingleImageFilter.h:50