OTB  10.0.0
Orfeo Toolbox
otbDrawPathFilter.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 otbDrawPathFilter_h
22 #define otbDrawPathFilter_h
23 
24 #include "itkImageAndPathToImageFilter.h"
25 
26 namespace otb
27 {
45 template <class TInputImage, class TInputPath, class TOutputImage>
46 class ITK_EXPORT DrawPathFilter : public itk::ImageAndPathToImageFilter<TInputImage, TInputPath, TOutputImage>
47 {
48 public:
51  typedef itk::ImageAndPathToImageFilter<TInputImage, TInputPath, TOutputImage> Superclass;
52  typedef itk::SmartPointer<Self> Pointer;
53  typedef itk::SmartPointer<const Self> ConstPointer;
54 
56  itkNewMacro(Self);
57 
59  itkTypeMacro(DrawPathFilter, itk::ImageAndPathToImageFilter);
60 
62  typedef TInputImage InputImageType;
63  typedef typename InputImageType::Pointer InputImagePointer;
64  typedef typename InputImageType::ConstPointer InputImageConstPointer;
65  typedef typename InputImageType::RegionType InputImageRegionType;
66  typedef typename InputImageType::PixelType InputImagePixelType;
67  typedef TInputPath InputPathType;
68  typedef typename InputPathType::Pointer InputPathPointer;
69  typedef typename InputPathType::ConstPointer InputPathConstPointer;
70  typedef typename InputPathType::InputType InputPathInputType;
71  typedef typename InputPathType::OutputType InputPathOutputType;
72  typedef typename InputPathType::IndexType InputPathIndexType;
73  typedef typename InputPathType::OffsetType InputPathOffsetType;
74  typedef TOutputImage OutputImageType;
75  typedef typename OutputImageType::Pointer OutputImagePointer;
76  typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
77 
78  typedef typename OutputImageType::RegionType OutputImageRegionType;
79  typedef typename OutputImageType::PixelType OutputImagePixelType;
80  typedef typename OutputImageType::ValueType OutputImageValueType;
81 
82  itkSetMacro(Value, OutputImagePixelType);
83  itkGetConstReferenceMacro(Value, OutputImagePixelType);
84 
87  void SetInputPath(const TInputPath* path);
88 
89  const TInputPath* GetInputPath(void);
90 
91 protected:
93  ~DrawPathFilter() override
94  {
95  }
96 
97  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
98  void GenerateData() override;
99 
100 private:
101  DrawPathFilter(const Self&) = delete;
102  void operator=(const Self&) = delete;
103 
105 };
106 
107 } // end namespace otb
108 
109 #ifndef OTB_MANUAL_INSTANTIATION
110 #include "otbDrawPathFilter.hxx"
111 #endif
112 
113 #endif
This class can be used to draw a single path on an image.
InputImageType::PixelType InputImagePixelType
InputImageType::RegionType InputImageRegionType
itk::SmartPointer< Self > Pointer
InputPathType::IndexType InputPathIndexType
InputPathType::InputType InputPathInputType
InputPathType::ConstPointer InputPathConstPointer
OutputImageType::ConstPointer OutputImageConstPointer
OutputImageType::Pointer OutputImagePointer
InputPathType::Pointer InputPathPointer
TOutputImage OutputImageType
OutputImagePixelType m_Value
TInputImage InputImageType
InputImageType::Pointer InputImagePointer
InputPathType::OutputType InputPathOutputType
void operator=(const Self &)=delete
itk::ImageAndPathToImageFilter< TInputImage, TInputPath, TOutputImage > Superclass
InputImageType::ConstPointer InputImageConstPointer
OutputImageType::RegionType OutputImageRegionType
DrawPathFilter(const Self &)=delete
OutputImageType::PixelType OutputImagePixelType
itk::SmartPointer< const Self > ConstPointer
InputPathType::OffsetType InputPathOffsetType
OutputImageType::ValueType OutputImageValueType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.