OTB  10.0.0
Orfeo Toolbox
otbLineRatioDetectorImageFilter.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 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:
119  void operator=(const Self&) = delete;
120 };
121 } // end namespace otb
122 
123 #ifndef OTB_MANUAL_INSTANTIATION
125 #endif
126 
127 #endif
Base class for line detector filters.
Superclass::OutputImageDirectionType OutputImageDirectionType
Application of detection of linear features based on the ratio of local means.
itk::SmartPointer< const Self > ConstPointer
Superclass::OutputImageDirectionType OutputImageDirectionType
LineDetectorImageFilterBase< TInputImage, TOutputImage, TOutputImageDirection, TInterpolator > Superclass
LineRatioDetectorImageFilter(const Self &)=delete
void operator=(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.