OTB  10.0.0
Orfeo Toolbox
otbLineCorrelationDetectorImageFilter.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 otbLineCorrelationDetectorImageFilter_h
22 #define otbLineCorrelationDetectorImageFilter_h
23 
25 
26 namespace otb
27 {
36 template <class TInputImage, class TOutputImage, class TOutputImageDirection = TOutputImage,
37  class TInterpolator = itk::LinearInterpolateImageFunction<TInputImage>>
38 class ITK_EXPORT LineCorrelationDetectorImageFilter : public LineDetectorImageFilterBase<TInputImage, TOutputImage, TOutputImageDirection, TInterpolator>
39 {
40 public:
42  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
43  itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
45 
49  typedef itk::SmartPointer<Self> Pointer;
50  typedef itk::SmartPointer<const Self> ConstPointer;
51 
53  itkNewMacro(Self);
54 
57 
62 
64  typedef typename InterpolatorType::Pointer InterpolatorPointer;
65  typedef typename InterpolatorType::CoordRepType CoordRepType;
66 
67  typedef typename InputImageType::PointType TPoint;
68 
70  typedef typename InputImageType::PixelType InputPixelType;
71  typedef typename OutputImageType::PixelType OutputPixelType;
72 
73  typedef typename InputImageType::RegionType InputImageRegionType;
74  typedef typename OutputImageType::RegionType OutputImageRegionType;
75 
77  typedef typename InputImageType::SizeType SizeType;
78 
79 protected:
82  {
83  }
84  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
85 
87  double ComputeMeasure(std::vector<double>* m1, std::vector<double>* m2, std::vector<double>* m3) override;
88 
89 private:
91  void operator=(const Self&) = delete;
92 };
93 } // end namespace otb
94 
95 #ifndef OTB_MANUAL_INSTANTIATION
97 #endif
98 
99 #endif
LineDetectorImageFilterBase< TInputImage, TOutputImage, TOutputImageDirection, TInterpolator > Superclass
Superclass::OutputImageDirectionType OutputImageDirectionType
void operator=(const Self &)=delete
LineCorrelationDetectorImageFilter(const Self &)=delete
Base class for line detector filters.
Superclass::OutputImageDirectionType OutputImageDirectionType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.