OTB  9.0.0
Orfeo Toolbox
otbImageToEdgePathFilter.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 otbImageToEdgePathFilter_h
22 #define otbImageToEdgePathFilter_h
23 
24 #include "otbImageToPathFilter.h"
25 
26 namespace otb
27 {
57 template <class TInputImage, class TOutputPath>
58 class ITK_EXPORT ImageToEdgePathFilter : public ImageToPathFilter<TInputImage, TOutputPath>
59 {
60 public:
64  typedef itk::SmartPointer<Self> Pointer;
65  typedef itk::SmartPointer<const Self> ConstPointer;
66 
68  itkNewMacro(Self);
71 
77  typedef typename OutputPathType::ContinuousIndexType ContinuousIndexType;
78 
79  typedef typename InputImageType::PixelType PixelType;
80  typedef typename InputImageType::SizeType SizeType;
81 
83  itkSetMacro(ForegroundValue, PixelType);
84  itkGetConstMacro(ForegroundValue, PixelType);
86 
87 protected:
90  {
91  }
92  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
93  void GenerateOutputInformation() override
94  {
95  } // does nothing
96  void GenerateData() override;
97 
98 private:
99  ImageToEdgePathFilter(const Self&) = delete;
100  void operator=(const Self&) = delete;
101 
103 };
104 
105 } // end namespace otb
106 
107 #ifndef OTB_MANUAL_INSTANTIATION
109 #endif
110 
111 #endif
otb::ImageToPathFilter::InputImageType
TInputImage InputImageType
template parameters typedefs
Definition: otbImageToPathFilter.h:48
otb::ImageToEdgePathFilter::OutputPathPointerType
Superclass::OutputPathPointerType OutputPathPointerType
Definition: otbImageToEdgePathFilter.h:76
otb::ImageToEdgePathFilter::Self
ImageToEdgePathFilter Self
Definition: otbImageToEdgePathFilter.h:62
otb::ImageToEdgePathFilter::InputImagePointerType
Superclass::InputImagePointerType InputImagePointerType
Definition: otbImageToEdgePathFilter.h:74
otb::ImageToPathFilter::OutputPathType
TOutputPath OutputPathType
Definition: otbImageToPathFilter.h:52
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::ImageToEdgePathFilter::OutputPathType
Superclass::OutputPathType OutputPathType
Definition: otbImageToEdgePathFilter.h:75
otb::ImageToEdgePathFilter::m_ForegroundValue
PixelType m_ForegroundValue
Definition: otbImageToEdgePathFilter.h:102
otb::ImageToPathFilter::InputImagePointerType
InputImageType::Pointer InputImagePointerType
Definition: otbImageToPathFilter.h:51
otbImageToPathFilter.h
otb::ImageToPathFilter
Base class for filters taking an image as input, and producing an output of type Path.
Definition: otbImageToPathFilter.h:36
otb::ImageToEdgePathFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbImageToEdgePathFilter.h:64
otb::ImageToEdgePathFilter::InputImageType
Superclass::InputImageType InputImageType
Template parameters typedef.
Definition: otbImageToEdgePathFilter.h:70
otb::ImageToEdgePathFilter::PixelType
InputImageType::PixelType PixelType
Definition: otbImageToEdgePathFilter.h:79
otb::ImageToEdgePathFilter
This filter compute the closed edge path of a labelled object in an image (for example coming from a ...
Definition: otbImageToEdgePathFilter.h:58
otb::ImageToEdgePathFilter::GenerateOutputInformation
void GenerateOutputInformation() override
Definition: otbImageToEdgePathFilter.h:93
otb::ImageToEdgePathFilter::SizeType
InputImageType::SizeType SizeType
Definition: otbImageToEdgePathFilter.h:80
otb::ImageToEdgePathFilter::Superclass
ImageToPathFilter< TInputImage, TOutputPath > Superclass
Definition: otbImageToEdgePathFilter.h:63
otb::ImageToEdgePathFilter::~ImageToEdgePathFilter
~ImageToEdgePathFilter() override
Definition: otbImageToEdgePathFilter.h:89
otbImageToEdgePathFilter.hxx
otb::ImageToEdgePathFilter::ContinuousIndexType
OutputPathType::ContinuousIndexType ContinuousIndexType
Definition: otbImageToEdgePathFilter.h:77
otb::ImageToPathFilter::OutputPathPointerType
OutputPathType::Pointer OutputPathPointerType
Definition: otbImageToPathFilter.h:53
otb::ImageToEdgePathFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbImageToEdgePathFilter.h:65