OTB  6.7.0
Orfeo Toolbox
otbGaussianModelComponent.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
3  * Copyright (C) 2007-2012 Institut Mines Telecom / Telecom Bretagne
4  *
5  * This file is part of Orfeo Toolbox
6  *
7  * https://www.orfeo-toolbox.org/
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 #ifndef otbGaussianModelComponent_h
23 #define otbGaussianModelComponent_h
24 
27 
28 #include "otbModelComponentBase.h"
29 
30 namespace otb
31 {
32 namespace Statistics
33 {
34 
47 template<class TSample>
48 class ITK_EXPORT GaussianModelComponent :
49  public ModelComponentBase<TSample>
50 {
51 public:
57 
59  itkNewMacro(Self);
62 
64  typedef typename Superclass::MeasurementVectorType MeasurementVectorType;
65  typedef typename Superclass::MeasurementVectorSizeType
67  typedef typename Superclass::MembershipFunctionType MembershipFunctionType;
69 
74 
78 
82 
84  void SetSample(const TSample* sample) override;
85 
88  void SetParameters(const ParametersType& parameters);
89 
91  void ShowParameters(std::ostream& os, itk::Indent indent) const override;
92 
93 protected:
96  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
97 
98  void GenerateData() override;
99 
100 private:
101  GaussianModelComponent(const Self &) = delete;
102  void operator =(const Self&) = delete;
103 
105  // TODO add a m_GaussianCumulativeFunction
107 
110 
111 }; // end of class
112 
113 } // end of namespace Statistics
114 } // end of namespace otb
115 
116 #ifndef OTB_MANUAL_INSTANTIATION
118 #endif
119 
120 #endif
Superclass::MeasurementVectorSizeType MeasurementVectorSizeType
is a component (derived from ModelComponentBase) for Gaussian class. This class is used in SEMClassif...
NativeMembershipFunctionType::MeanVectorType MeanVectorType
Superclass::MembershipFunctionType MembershipFunctionType
Superclass::MeasurementVectorType MeasurementVectorType
base class for distribution representation that supports analytical way to update the distribution pa...
CovarianceEstimatorType::Pointer m_CovarianceEstimator
itk::Array< double > ParametersType
Definition: mvdTypes.h:122
itk::Statistics::CovarianceSampleFilter< TSample > CovarianceEstimatorType
MeasurementVectorRealType MeanVectorType
CovarianceEstimatorType::MatrixType CovarianceType
itk::SmartPointer< const Self > ConstPointer
NativeMembershipFunctionType::Pointer m_GaussianMembershipFunction
itk::Statistics::GaussianMembershipFunction< MeasurementVectorType > NativeMembershipFunctionType