OTB  10.0.0
Orfeo Toolbox
otbNAPCAImageFilter.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 otbNAPCAImageFilter_h
22 #define otbNAPCAImageFilter_h
23 
24 #include "otbMNFImageFilter.h"
25 
26 namespace otb
27 {
28 
49 template <class TInputImage, class TOutputImage, class TNoiseImageFilter, Transform::TransformDirection TDirectionOfTransformation>
50 class ITK_EXPORT NAPCAImageFilter : public MNFImageFilter<TInputImage, TOutputImage, TNoiseImageFilter, TDirectionOfTransformation>
51 {
52 public:
55  typedef itk::SmartPointer<Self> Pointer;
56  typedef itk::SmartPointer<const Self> ConstPointer;
57 
59  itkNewMacro(Self);
60 
63 
65  typedef typename Superclass::InputImageType InputImageType;
66  typedef typename Superclass::OutputImageType OutputImageType;
67 
68  typedef typename Superclass::CovarianceEstimatorFilterType CovarianceEstimatorFilterType;
69  typedef typename Superclass::CovarianceEstimatorFilterPointerType CovarianceEstimatorFilterPointerType;
70 
71  typedef typename Superclass::RealType RealType;
73  typedef typename Superclass::MatrixObjectType MatrixObjectType;
74  typedef typename Superclass::MatrixType MatrixType;
75  typedef typename Superclass::InternalMatrixType InternalMatrixType;
76  typedef typename Superclass::MatrixElementType MatrixElementType;
77 
78  typedef typename Superclass::TransformFilterType TransformFilterType;
79  typedef typename Superclass::TransformFilterPointerType TransformFilterPointerType;
80 
81  typedef typename Superclass::NoiseImageFilterType NoiseImageFilterType;
82  typedef typename Superclass::NoiseImageFilterPointerType NoiseImageFilterPointerType;
83 
84  typedef typename Superclass::NormalizeFilterType NormalizeFilterType;
85  typedef typename Superclass::NormalizeFilterPointerType NormalizeFilterPointerType;
86 
87 protected:
89  {
90  }
91  ~NAPCAImageFilter() override
92  {
93  }
94 
96  void GenerateTransformationMatrix() override;
97 }; // end of class
98 
99 } // end of namespace otb
100 
101 #ifndef OTB_MANUAL_INSTANTIATION
102 #include "otbNAPCAImageFilter.hxx"
103 #endif
104 
105 #endif
Performs a Maximum Noise Fraction analysis of a vector image.
Performs a Noise Adjusted PCA analysis of a vector image.
Superclass::RealType RealType
Superclass::InputImageType InputImageType
MNFImageFilter< TInputImage, TOutputImage, TNoiseImageFilter, TDirectionOfTransformation > Superclass
Superclass::TransformFilterPointerType TransformFilterPointerType
Superclass::MatrixType MatrixType
itk::SmartPointer< Self > Pointer
Superclass::NoiseImageFilterType NoiseImageFilterType
Superclass::NormalizeFilterPointerType NormalizeFilterPointerType
Superclass::MatrixElementType MatrixElementType
Superclass::VectorType VectorType
Superclass::CovarianceEstimatorFilterType CovarianceEstimatorFilterType
Superclass::NoiseImageFilterPointerType NoiseImageFilterPointerType
Superclass::OutputImageType OutputImageType
Superclass::MatrixObjectType MatrixObjectType
Superclass::TransformFilterType TransformFilterType
Superclass::CovarianceEstimatorFilterPointerType CovarianceEstimatorFilterPointerType
Superclass::InternalMatrixType InternalMatrixType
Superclass::NormalizeFilterType NormalizeFilterType
itk::SmartPointer< const Self > ConstPointer
std::vector< double > VectorType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.