OTB  9.0.0
Orfeo Toolbox
otbHarrisImageToPointSetFilter.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 otbHarrisImageToPointSetFilter_h
22 #define otbHarrisImageToPointSetFilter_h
23 
25 #include "otbHarrisImageFilter.h"
26 
27 namespace otb
28 {
29 
36 template <class TInputImage, class TOutputPointSet = itk::PointSet<typename TInputImage::PixelType, 2>>
37 class ITK_EXPORT HarrisImageToPointSetFilter : public ImageToPointSetFilter<TInputImage, TOutputPointSet>
38 {
39 public:
40  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
41 
42  typedef TInputImage InputImageType;
43  typedef TOutputPointSet OutputPointSetType;
44 
47  typedef itk::SmartPointer<Self> Pointer;
48  typedef itk::SmartPointer<const Self> ConstPointer;
49 
50  itkNewMacro(Self);
51 
53 
54  typedef typename InputImageType::PixelType InputPixelType;
55  typedef typename InputImageType::SizeType SizeType;
56 
59 
60  typedef typename OutputPointSetType::PixelType OutputPixelType;
61 
62  itkSetMacro(SigmaD, double);
63  itkGetConstReferenceMacro(SigmaD, double);
64  itkSetMacro(SigmaI, double);
65  itkGetConstReferenceMacro(SigmaI, double);
66  itkSetMacro(Alpha, double);
67  itkGetConstReferenceMacro(Alpha, double);
68  itkSetMacro(LowerThreshold, InputPixelType);
69  itkGetConstReferenceMacro(LowerThreshold, InputPixelType);
70  itkSetMacro(UpperThreshold, InputPixelType);
71  itkGetConstReferenceMacro(UpperThreshold, InputPixelType);
72 
73 protected:
76  {
77  }
78 
79  void GenerateData() override;
80 
81  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
82 
83 private:
84  HarrisImageToPointSetFilter(const Self&) = delete;
85  void operator=(const Self&) = delete;
86 
89  double m_SigmaD;
90  double m_SigmaI;
91  double m_Alpha;
92 
95 };
96 } // end namespace otb
97 
98 #ifndef OTB_MANUAL_INSTANTIATION
100 #endif
101 
102 #endif
otbHarrisImageToPointSetFilter.hxx
otb::HarrisImageToPointSetFilter::m_LowerThreshold
InputPixelType m_LowerThreshold
Definition: otbHarrisImageToPointSetFilter.h:87
otb::HarrisImageToPointSetFilter::InputPixelType
InputImageType::PixelType InputPixelType
Definition: otbHarrisImageToPointSetFilter.h:52
otb::HarrisImageToPointSetFilter::InputImageType
TInputImage InputImageType
Definition: otbHarrisImageToPointSetFilter.h:42
otb::ImageToPointSetFilter
Base class to output PointSet data with image data as input.
Definition: otbImageToPointSetFilter.h:44
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::HarrisImageToPointSetFilter::Superclass
ImageToPointSetFilter< InputImageType, OutputPointSetType > Superclass
Definition: otbHarrisImageToPointSetFilter.h:46
otb::HarrisImageToPointSetFilter::OutputPointSetType
TOutputPointSet OutputPointSetType
Definition: otbHarrisImageToPointSetFilter.h:43
otb::HarrisImageToPointSetFilter::m_HarrisFilter
HarrisImageFilterType::Pointer m_HarrisFilter
Definition: otbHarrisImageToPointSetFilter.h:93
otb::HarrisImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbHarrisImageFilter.h:67
otb::ThresholdImageToPointSetFilter
Produce a PointSet according to filtering conditions.
Definition: otbThresholdImageToPointSetFilter.h:39
otb::ThresholdImageToPointSetFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbThresholdImageToPointSetFilter.h:49
otb::HarrisImageFilter
This filter performs the computation of the Harris measure as followed.
Definition: otbHarrisImageFilter.h:56
otb::HarrisImageToPointSetFilter::~HarrisImageToPointSetFilter
~HarrisImageToPointSetFilter() override
Definition: otbHarrisImageToPointSetFilter.h:75
otb::HarrisImageToPointSetFilter::m_SigmaI
double m_SigmaI
Definition: otbHarrisImageToPointSetFilter.h:90
otb::HarrisImageToPointSetFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbHarrisImageToPointSetFilter.h:48
otb::HarrisImageToPointSetFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbHarrisImageToPointSetFilter.h:47
otb::HarrisImageToPointSetFilter::HarrisImageFilterType
otb::HarrisImageFilter< InputImageType, InputImageType > HarrisImageFilterType
Definition: otbHarrisImageToPointSetFilter.h:57
otb::HarrisImageToPointSetFilter::OutputPixelType
OutputPointSetType::PixelType OutputPixelType
Definition: otbHarrisImageToPointSetFilter.h:60
otb::HarrisImageToPointSetFilter::m_ThresholdFilter
ThresholdImageToPointSetType::Pointer m_ThresholdFilter
Definition: otbHarrisImageToPointSetFilter.h:94
otb::HarrisImageToPointSetFilter
TODO.
Definition: otbHarrisImageToPointSetFilter.h:37
otbThresholdImageToPointSetFilter.h
otb::HarrisImageToPointSetFilter::m_UpperThreshold
InputPixelType m_UpperThreshold
Definition: otbHarrisImageToPointSetFilter.h:88
otbHarrisImageFilter.h
otb::HarrisImageToPointSetFilter::SizeType
InputImageType::SizeType SizeType
Definition: otbHarrisImageToPointSetFilter.h:55
otb::HarrisImageToPointSetFilter::Self
HarrisImageToPointSetFilter Self
Definition: otbHarrisImageToPointSetFilter.h:45
otb::HarrisImageToPointSetFilter::m_Alpha
double m_Alpha
Definition: otbHarrisImageToPointSetFilter.h:91
otb::HarrisImageToPointSetFilter::ThresholdImageToPointSetType
otb::ThresholdImageToPointSetFilter< InputImageType, OutputPointSetType > ThresholdImageToPointSetType
Definition: otbHarrisImageToPointSetFilter.h:58
otb::HarrisImageToPointSetFilter::m_SigmaD
double m_SigmaD
Definition: otbHarrisImageToPointSetFilter.h:89