OTB  9.0.0
Orfeo Toolbox
otbLineCorrelationDetectorImageFilter.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 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:
90  LineCorrelationDetectorImageFilter(const Self&) = delete;
91  void operator=(const Self&) = delete;
92 };
93 } // end namespace otb
94 
95 #ifndef OTB_MANUAL_INSTANTIATION
97 #endif
98 
99 #endif
otb::LineDetectorImageFilterBase::InputImageType
Superclass::InputImageType InputImageType
Definition: otbLineDetectorImageFilterBase.h:74
otb::LineCorrelationDetectorImageFilter::InterpolatorType
Superclass::InterpolatorType InterpolatorType
Definition: otbLineCorrelationDetectorImageFilter.h:61
otb::LineCorrelationDetectorImageFilter::OutputImageType
Superclass::OutputImageType OutputImageType
Definition: otbLineCorrelationDetectorImageFilter.h:59
otb::LineCorrelationDetectorImageFilter::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbLineCorrelationDetectorImageFilter.h:73
otb::LineCorrelationDetectorImageFilter::OutputImageDirectionType
Superclass::OutputImageDirectionType OutputImageDirectionType
Definition: otbLineCorrelationDetectorImageFilter.h:60
otb::LineDetectorImageFilterBase::InterpolatorType
TInterpolator InterpolatorType
Definition: otbLineDetectorImageFilterBase.h:79
otb::LineCorrelationDetectorImageFilter::InputPixelType
InputImageType::PixelType InputPixelType
Definition: otbLineCorrelationDetectorImageFilter.h:70
otb::LineCorrelationDetectorImageFilter::OutputImageRegionType
OutputImageType::RegionType OutputImageRegionType
Definition: otbLineCorrelationDetectorImageFilter.h:74
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::LineCorrelationDetectorImageFilter::InputImageType
Superclass::InputImageType InputImageType
Definition: otbLineCorrelationDetectorImageFilter.h:56
otb::LineCorrelationDetectorImageFilter::OutputPixelType
OutputImageType::PixelType OutputPixelType
Definition: otbLineCorrelationDetectorImageFilter.h:71
otb::LineCorrelationDetectorImageFilter::Superclass
LineDetectorImageFilterBase< TInputImage, TOutputImage, TOutputImageDirection, TInterpolator > Superclass
Definition: otbLineCorrelationDetectorImageFilter.h:48
otb::LineCorrelationDetectorImageFilter::SizeType
InputImageType::SizeType SizeType
Definition: otbLineCorrelationDetectorImageFilter.h:77
otb::LineCorrelationDetectorImageFilter::Self
LineCorrelationDetectorImageFilter Self
Definition: otbLineCorrelationDetectorImageFilter.h:47
otb::LineCorrelationDetectorImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbLineCorrelationDetectorImageFilter.h:49
otbLineDetectorImageFilterBase.h
otb::LineDetectorImageFilterBase::OutputImageDirectionType
Superclass::OutputImageDirectionType OutputImageDirectionType
Definition: otbLineDetectorImageFilterBase.h:78
otb::LineDetectorImageFilterBase::OutputImageType
Superclass::OutputImageType OutputImageType
Definition: otbLineDetectorImageFilterBase.h:77
otb::LineCorrelationDetectorImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbLineCorrelationDetectorImageFilter.h:50
otb::LineDetectorImageFilterBase
Base class for line detector filters.
Definition: otbLineDetectorImageFilterBase.h:56
otb::LineCorrelationDetectorImageFilter::TPoint
InputImageType::PointType TPoint
Definition: otbLineCorrelationDetectorImageFilter.h:67
otb::LineCorrelationDetectorImageFilter::~LineCorrelationDetectorImageFilter
~LineCorrelationDetectorImageFilter() override
Definition: otbLineCorrelationDetectorImageFilter.h:81
otb::LineCorrelationDetectorImageFilter
To be documented.
Definition: otbLineCorrelationDetectorImageFilter.h:38
otb::LineCorrelationDetectorImageFilter::CoordRepType
InterpolatorType::CoordRepType CoordRepType
Definition: otbLineCorrelationDetectorImageFilter.h:65
otb::LineCorrelationDetectorImageFilter::InterpolatorPointer
InterpolatorType::Pointer InterpolatorPointer
Definition: otbLineCorrelationDetectorImageFilter.h:64
otbLineCorrelationDetectorImageFilter.hxx