OTB  10.0.0
Orfeo Toolbox
otbStreamingLineSegmentDetector.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1999-2011 Insight Software Consortium
3  * Copyright (C) 2005-2024 Centre National d'Etudes Spatiales (CNES)
4  *
5  * This file is part of Orfeo Toolbox
6  *
7  * https://www.orfeo-toolbox.org/
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 #ifndef otbStreamingLineSegmentDetector_h
23 #define otbStreamingLineSegmentDetector_h
24 
25 #include <vector>
26 
27 #include "itkImageRegion.h"
28 
29 #include "itkDataObjectDecorator.h"
30 #include "itkSimpleDataObjectDecorator.h"
31 
32 #include "otbLineSegmentDetector.h"
33 
36 
37 namespace otb
38 {
50 template <class TImageType>
52  : public otb::PersistentImageToVectorDataFilter<TImageType, typename otb::LineSegmentDetector<TImageType, double>::VectorDataType>
53 {
54 public:
58  typedef itk::SmartPointer<Self> Pointer;
59  typedef itk::SmartPointer<const Self> ConstPointer;
60 
64 
67 
70  itkNewMacro(Self);
71 
74 
75 protected:
77 
79 
80  void GenerateInputRequestedRegion() override;
81 
82 private:
84  void operator=(const Self&) = delete;
85 
87 };
88 
89 template <class TImageType>
91 {
92 public:
93  // define the PersistentStreamingLineSegmentDetector template
95 
98 
99  // typedef for streaming capable filter
101 };
102 }
103 
104 #ifndef OTB_MANUAL_INSTANTIATION
106 #endif
107 
108 #endif
this class implement a fast line detector with false detection control using the a contrario method
This filter link a persistent filter with a StreamingImageVirtualWriter.
This filter is the base class for all filter persisting data through multiple update....
Perform vectorization in a persistent way.
itk::ExtractImageFilter< InputImageType, InputImageType > ExtractImageFilterType
Perform Line segment detector in a persistent way.
otb::LineSegmentDetector< TImageType, double > LSDType
Superclass::OutputVectorDataPointerType OutputVectorDataPointerType
PersistentImageToVectorDataFilter< TImageType, typename otb::LineSegmentDetector< TImageType, double >::VectorDataType > Superclass
Superclass::ExtractImageFilterType ExtractImageFilterType
PersistentStreamingLineSegmentDetector(const Self &)=delete
PersistentStreamingLineSegmentDetectorType::OutputVectorDataType OutputVectorDataType
PersistentStreamingLineSegmentDetectorType::InputImageType InputImageType
PersistentStreamingLineSegmentDetector< TImageType > PersistentStreamingLineSegmentDetectorType
PersistentFilterStreamingDecorator< PersistentStreamingLineSegmentDetectorType > FilterType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.