OTB  9.0.0
Orfeo Toolbox
otbImageToPathListFilter.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 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
otb::ImageToPathListFilter::InputImagePixelType
InputImageType::PixelType InputImagePixelType
Definition: otbImageToPathListFilter.h:60
otb::ImageToPathListFilter::~ImageToPathListFilter
~ImageToPathListFilter() override
Definition: otbImageToPathListFilter.h:79
otb::ImageToPathListFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbImageToPathListFilter.h:45
otb::ImageToPathListFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageToPathListFilter.h:46
otb::ImageToPathListFilter::OutputPathListType
Superclass::OutputPathListType OutputPathListType
Definition: otbImageToPathListFilter.h:65
otb::ImageToPathListFilter::Superclass
PathListSource< TOutputPath > Superclass
Definition: otbImageToPathListFilter.h:44
otb::PathListSource
Base class for filters with a PathList output type.
Definition: otbPathListSource.h:45
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ImageToPathListFilter::InputImageType
TInputImage InputImageType
Definition: otbImageToPathListFilter.h:54
otb::ImageToPathListFilter::SizeType
InputImageType::SizeType SizeType
Definition: otbImageToPathListFilter.h:61
otb::ImageToPathListFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbImageToPathListFilter.h:59
otbImageToPathListFilter.hxx
otb::PathListSource::OutputPathType
TOutputPath OutputPathType
Definition: otbPathListSource.h:64
otbPathListSource.h
otb::ImageToPathListFilter::ValueType
InputImageType::ValueType ValueType
Definition: otbImageToPathListFilter.h:62
otb::ImageToPathListFilter::OutputPathType
Superclass::OutputPathType OutputPathType
Definition: otbImageToPathListFilter.h:64
otb::ImageToPathListFilter::OutputPathPointerType
Superclass::OutputPathPointerType OutputPathPointerType
Definition: otbImageToPathListFilter.h:66
otb::ImageToPathListFilter::ProcessObjectType
itk::ProcessObject ProcessObjectType
Definition: otbImageToPathListFilter.h:48
otb::PathListSource::OutputPathPointerType
OutputPathType::Pointer OutputPathPointerType
Definition: otbPathListSource.h:65
otb::ImageToPathListFilter
Base class used to implement filters that have a image as input and a paths list as output.
Definition: otbImageToPathListFilter.h:39
otb::ImageToPathListFilter::InputImagePointer
InputImageType::ConstPointer InputImagePointer
Definition: otbImageToPathListFilter.h:58
otb::ImageToPathListFilter::Self
ImageToPathListFilter Self
Definition: otbImageToPathListFilter.h:43
otb::ObjectList
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
Definition: otbObjectList.h:40