OTB  9.0.0
Orfeo Toolbox
otbNAPCAImageFilter.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 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
otb::NAPCAImageFilter::NormalizeFilterPointerType
Superclass::NormalizeFilterPointerType NormalizeFilterPointerType
Definition: otbNAPCAImageFilter.h:85
otb::NAPCAImageFilter::OutputImageType
Superclass::OutputImageType OutputImageType
Definition: otbNAPCAImageFilter.h:66
otb::NAPCAImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbNAPCAImageFilter.h:56
otb::NAPCAImageFilter::NoiseImageFilterType
Superclass::NoiseImageFilterType NoiseImageFilterType
Definition: otbNAPCAImageFilter.h:81
otb::NAPCAImageFilter::NAPCAImageFilter
NAPCAImageFilter()
Definition: otbNAPCAImageFilter.h:88
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::NAPCAImageFilter::RealType
Superclass::RealType RealType
Definition: otbNAPCAImageFilter.h:71
otb::NAPCAImageFilter::NoiseImageFilterPointerType
Superclass::NoiseImageFilterPointerType NoiseImageFilterPointerType
Definition: otbNAPCAImageFilter.h:82
otb::MetaDataKey::VectorType
std::vector< double > VectorType
Definition: otbMetaDataKey.h:119
otb::NAPCAImageFilter::TransformFilterPointerType
Superclass::TransformFilterPointerType TransformFilterPointerType
Definition: otbNAPCAImageFilter.h:79
otb::NAPCAImageFilter::CovarianceEstimatorFilterPointerType
Superclass::CovarianceEstimatorFilterPointerType CovarianceEstimatorFilterPointerType
Definition: otbNAPCAImageFilter.h:69
otb::NAPCAImageFilter::InternalMatrixType
Superclass::InternalMatrixType InternalMatrixType
Definition: otbNAPCAImageFilter.h:75
otb::NAPCAImageFilter::MatrixType
Superclass::MatrixType MatrixType
Definition: otbNAPCAImageFilter.h:74
otb::NAPCAImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbNAPCAImageFilter.h:55
otb::NAPCAImageFilter
Performs a Noise Adjusted PCA analysis of a vector image.
Definition: otbNAPCAImageFilter.h:50
otb::NAPCAImageFilter::Superclass
MNFImageFilter< TInputImage, TOutputImage, TNoiseImageFilter, TDirectionOfTransformation > Superclass
Definition: otbNAPCAImageFilter.h:54
otb::NAPCAImageFilter::Self
NAPCAImageFilter Self
Definition: otbNAPCAImageFilter.h:53
otb::NAPCAImageFilter::MatrixObjectType
Superclass::MatrixObjectType MatrixObjectType
Definition: otbNAPCAImageFilter.h:73
otb::NAPCAImageFilter::MatrixElementType
Superclass::MatrixElementType MatrixElementType
Definition: otbNAPCAImageFilter.h:76
otb::NAPCAImageFilter::VectorType
Superclass::VectorType VectorType
Definition: otbNAPCAImageFilter.h:72
otb::NAPCAImageFilter::NormalizeFilterType
Superclass::NormalizeFilterType NormalizeFilterType
Definition: otbNAPCAImageFilter.h:84
otbNAPCAImageFilter.hxx
otb::NAPCAImageFilter::CovarianceEstimatorFilterType
Superclass::CovarianceEstimatorFilterType CovarianceEstimatorFilterType
Definition: otbNAPCAImageFilter.h:68
otb::NAPCAImageFilter::TransformFilterType
Superclass::TransformFilterType TransformFilterType
Definition: otbNAPCAImageFilter.h:78
otb::MNFImageFilter
Performs a Maximum Noise Fraction analysis of a vector image.
Definition: otbMNFImageFilter.h:47
otbMNFImageFilter.h
otb::NAPCAImageFilter::~NAPCAImageFilter
~NAPCAImageFilter() override
Definition: otbNAPCAImageFilter.h:91
otb::NAPCAImageFilter::InputImageType
Superclass::InputImageType InputImageType
Definition: otbNAPCAImageFilter.h:62