OTB  10.0.0
Orfeo Toolbox
otbImageToPathListFilter.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 otbImageToPathListFilter_h
22 #define otbImageToPathListFilter_h
23 
24 #include "otbPathListSource.h"
25 namespace otb
26 {
37 template <class TInputImage, class TOutputPath>
38 // class ITK_EXPORT ImageToPathListFilter : public itk::PathSource<TOutputPath>
39 class ITK_EXPORT ImageToPathListFilter : public PathListSource<TOutputPath>
40 {
41 public:
45  typedef itk::SmartPointer<Self> Pointer;
46  typedef itk::SmartPointer<const Self> ConstPointer;
47 
48  typedef itk::ProcessObject ProcessObjectType;
49 
51  itkNewMacro(Self);
52 
55 
57  typedef TInputImage InputImageType;
58  typedef typename InputImageType::ConstPointer InputImagePointer;
59  typedef typename InputImageType::RegionType InputImageRegionType;
60  typedef typename InputImageType::PixelType InputImagePixelType;
61  typedef typename InputImageType::SizeType SizeType;
62  typedef typename InputImageType::ValueType ValueType;
63 
67 
69  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
70 
72  using Superclass::SetInput;
73  virtual void SetInput(const InputImageType* image);
74  const InputImageType* GetInput(void);
76 
77 protected:
80  {
81  }
82 
83  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
84 
85 private:
86  ImageToPathListFilter(const Self&) = delete;
87  void operator=(const Self&) = delete;
88 };
89 
90 } // end namespace otb
91 
92 #ifndef OTB_MANUAL_INSTANTIATION
94 #endif
95 
96 #endif
Base class used to implement filters that have a image as input and a paths list as output.
Superclass::OutputPathPointerType OutputPathPointerType
InputImageType::ValueType ValueType
Superclass::OutputPathListType OutputPathListType
itk::SmartPointer< const Self > ConstPointer
InputImageType::SizeType SizeType
InputImageType::ConstPointer InputImagePointer
void operator=(const Self &)=delete
PathListSource< TOutputPath > Superclass
InputImageType::RegionType InputImageRegionType
InputImageType::PixelType InputImagePixelType
ImageToPathListFilter(const Self &)=delete
itk::SmartPointer< Self > Pointer
Superclass::OutputPathType OutputPathType
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
Definition: otbObjectList.h:41
Base class for filters with a PathList output type.
OutputPathType::Pointer OutputPathPointerType
TOutputPath OutputPathType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.