OTB  10.0.0
Orfeo Toolbox
otbImageToEdgePathFilter.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 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
This filter compute the closed edge path of a labelled object in an image (for example coming from a ...
Superclass::InputImagePointerType InputImagePointerType
ImageToPathFilter< TInputImage, TOutputPath > Superclass
itk::SmartPointer< Self > Pointer
Superclass::OutputPathPointerType OutputPathPointerType
ImageToEdgePathFilter(const Self &)=delete
InputImageType::PixelType PixelType
InputImageType::SizeType SizeType
itk::SmartPointer< const Self > ConstPointer
OutputPathType::ContinuousIndexType ContinuousIndexType
void operator=(const Self &)=delete
Superclass::InputImageType InputImageType
Template parameters typedef.
Superclass::OutputPathType OutputPathType
Base class for filters taking an image as input, and producing an output of type Path.
InputImageType::Pointer InputImagePointerType
TInputImage InputImageType
template parameters typedefs
OutputPathType::Pointer OutputPathPointerType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.