OTB  9.0.0
Orfeo Toolbox
otbLineRatioDetectorImageFilter.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 otbLineRatioDetectorImageFilter_h
22 #define otbLineRatioDetectorImageFilter_h
23 
25 
26 namespace otb
27 {
28 
65 template <class TInputImage, class TOutputImage, class TOutputImageDirection = TOutputImage,
66  class TInterpolator = itk::LinearInterpolateImageFunction<TInputImage>>
67 class ITK_EXPORT LineRatioDetectorImageFilter : public LineDetectorImageFilterBase<TInputImage, TOutputImage, TOutputImageDirection, TInterpolator>
68 {
69 public:
71  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
72  itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
74 
78  typedef itk::SmartPointer<Self> Pointer;
79  typedef itk::SmartPointer<const Self> ConstPointer;
80 
82  itkNewMacro(Self);
83 
86 
91 
93  typedef typename InterpolatorType::Pointer InterpolatorPointer;
94  typedef typename InterpolatorType::CoordRepType CoordRepType;
95 
96  typedef typename InputImageType::PointType TPoint;
97 
99  typedef typename InputImageType::PixelType InputPixelType;
100  typedef typename OutputImageType::PixelType OutputPixelType;
101 
102  typedef typename InputImageType::RegionType InputImageRegionType;
103  typedef typename OutputImageType::RegionType OutputImageRegionType;
104 
106  typedef typename InputImageType::SizeType SizeType;
107 
108 protected:
111  {
112  }
113  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
114 
115  double ComputeMeasure(std::vector<double>* m1, std::vector<double>* m2, std::vector<double>* m3) override;
116 
117 private:
118  LineRatioDetectorImageFilter(const Self&) = delete;
119  void operator=(const Self&) = delete;
120 };
121 } // end namespace otb
122 
123 #ifndef OTB_MANUAL_INSTANTIATION
125 #endif
126 
127 #endif
otb::LineDetectorImageFilterBase::InputImageType
Superclass::InputImageType InputImageType
Definition: otbLineDetectorImageFilterBase.h:74
otb::LineRatioDetectorImageFilter::OutputImageRegionType
OutputImageType::RegionType OutputImageRegionType
Definition: otbLineRatioDetectorImageFilter.h:103
otb::LineRatioDetectorImageFilter::~LineRatioDetectorImageFilter
~LineRatioDetectorImageFilter() override
Definition: otbLineRatioDetectorImageFilter.h:110
otb::LineDetectorImageFilterBase::InterpolatorType
TInterpolator InterpolatorType
Definition: otbLineDetectorImageFilterBase.h:79
otb::LineRatioDetectorImageFilter::Superclass
LineDetectorImageFilterBase< TInputImage, TOutputImage, TOutputImageDirection, TInterpolator > Superclass
Definition: otbLineRatioDetectorImageFilter.h:77
otb::LineRatioDetectorImageFilter::TPoint
InputImageType::PointType TPoint
Definition: otbLineRatioDetectorImageFilter.h:96
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::LineRatioDetectorImageFilter::InputImageType
Superclass::InputImageType InputImageType
Definition: otbLineRatioDetectorImageFilter.h:85
otb::LineRatioDetectorImageFilter::InterpolatorPointer
InterpolatorType::Pointer InterpolatorPointer
Definition: otbLineRatioDetectorImageFilter.h:93
otb::LineRatioDetectorImageFilter::InputPixelType
InputImageType::PixelType InputPixelType
Definition: otbLineRatioDetectorImageFilter.h:99
otbLineRatioDetectorImageFilter.hxx
otbLineDetectorImageFilterBase.h
otb::LineDetectorImageFilterBase::OutputImageDirectionType
Superclass::OutputImageDirectionType OutputImageDirectionType
Definition: otbLineDetectorImageFilterBase.h:78
otb::LineRatioDetectorImageFilter::OutputImageType
Superclass::OutputImageType OutputImageType
Definition: otbLineRatioDetectorImageFilter.h:88
otb::LineDetectorImageFilterBase::OutputImageType
Superclass::OutputImageType OutputImageType
Definition: otbLineDetectorImageFilterBase.h:77
otb::LineRatioDetectorImageFilter::OutputImageDirectionType
Superclass::OutputImageDirectionType OutputImageDirectionType
Definition: otbLineRatioDetectorImageFilter.h:89
otb::LineRatioDetectorImageFilter::CoordRepType
InterpolatorType::CoordRepType CoordRepType
Definition: otbLineRatioDetectorImageFilter.h:94
otb::LineRatioDetectorImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbLineRatioDetectorImageFilter.h:78
otb::LineDetectorImageFilterBase
Base class for line detector filters.
Definition: otbLineDetectorImageFilterBase.h:56
otb::LineRatioDetectorImageFilter::InterpolatorType
Superclass::InterpolatorType InterpolatorType
Definition: otbLineRatioDetectorImageFilter.h:90
otb::LineRatioDetectorImageFilter::SizeType
InputImageType::SizeType SizeType
Definition: otbLineRatioDetectorImageFilter.h:106
otb::LineRatioDetectorImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbLineRatioDetectorImageFilter.h:79
otb::LineRatioDetectorImageFilter
Application of detection of linear features based on the ratio of local means.
Definition: otbLineRatioDetectorImageFilter.h:67
otb::LineRatioDetectorImageFilter::OutputPixelType
OutputImageType::PixelType OutputPixelType
Definition: otbLineRatioDetectorImageFilter.h:100
otb::LineRatioDetectorImageFilter::Self
LineRatioDetectorImageFilter Self
Definition: otbLineRatioDetectorImageFilter.h:76
otb::LineRatioDetectorImageFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbLineRatioDetectorImageFilter.h:102