OTB  9.0.0
Orfeo Toolbox
otbImageToPathFilter.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 otbImageToPathFilter_h
22 #define otbImageToPathFilter_h
23 
24 #include "itkPathSource.h"
25 
26 namespace otb
27 {
35 template <class TInputImage, class TOutputPath>
36 class ITK_EXPORT ImageToPathFilter : public itk::PathSource<TOutputPath>
37 {
38 public:
41  typedef itk::PathSource<TOutputPath> Superclass;
42  typedef itk::SmartPointer<Self> Pointer;
43  typedef itk::SmartPointer<const Self> ConstPointer;
44  typedef itk::ProcessObject ProcessObjectType;
46  itkNewMacro(Self);
48  itkTypeMacro(PathToImageFilter, PathSource);
50  typedef TInputImage InputImageType;
51  typedef typename InputImageType::Pointer InputImagePointerType;
52  typedef TOutputPath OutputPathType;
53  typedef typename OutputPathType::Pointer OutputPathPointerType;
55  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
57  using Superclass::SetInput;
58  virtual void SetInput(const InputImageType* Image);
59  const InputImageType* GetInput(void);
61 
62 protected:
64  ~ImageToPathFilter() override
65  {
66  }
67  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
68 
69 private:
70  ImageToPathFilter(const Self&);
71  void operator=(const Self&);
72 };
73 } // end namespace otb
74 
75 #ifndef OTB_MANUAL_INSTANTIATION
76 #include "otbImageToPathFilter.hxx"
77 #endif
78 
79 #endif
otb::ImageToPathFilter::Superclass
itk::PathSource< TOutputPath > Superclass
Definition: otbImageToPathFilter.h:41
otb::ImageToPathFilter::InputImageType
TInputImage InputImageType
template parameters typedefs
Definition: otbImageToPathFilter.h:48
otbImageToPathFilter.hxx
otb::ImageToPathFilter::OutputPathType
TOutputPath OutputPathType
Definition: otbImageToPathFilter.h:52
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::Image
Creation of an "otb" image which contains metadata.
Definition: otbImage.h:89
otb::ImageToPathFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageToPathFilter.h:43
otb::ImageToPathFilter::InputImagePointerType
InputImageType::Pointer InputImagePointerType
Definition: otbImageToPathFilter.h:51
otb::ImageToPathFilter::Self
ImageToPathFilter Self
Standard class typedefs.
Definition: otbImageToPathFilter.h:40
otb::ImageToPathFilter::~ImageToPathFilter
~ImageToPathFilter() override
Definition: otbImageToPathFilter.h:64
otb::ImageToPathFilter::ProcessObjectType
itk::ProcessObject ProcessObjectType
Definition: otbImageToPathFilter.h:44
otb::ImageToPathFilter
Base class for filters taking an image as input, and producing an output of type Path.
Definition: otbImageToPathFilter.h:36
otb::ImageToPathFilter::OutputPathPointerType
OutputPathType::Pointer OutputPathPointerType
Definition: otbImageToPathFilter.h:53
otb::ImageToPathFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbImageToPathFilter.h:42