Orfeo Toolbox  4.0
itkCumulativeGaussianOptimizer.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkCumulativeGaussianOptimizer_h
19 #define __itkCumulativeGaussianOptimizer_h
20 
23 
24 namespace itk
25 {
49 {
50 public:
51 
57 
61 
64 
66  itkNewMacro(Self);
67 
70 
72  itkSetMacro(DifferenceTolerance, double);
73  itkGetMacro(DifferenceTolerance, double);
74  itkSetMacro(Verbose, bool);
75  itkGetMacro(Verbose, bool);
76  itkGetMacro(ComputedMean, double);
77  itkGetMacro(ComputedStandardDeviation, double);
78  itkGetMacro(UpperAsymptote, double);
79  itkGetMacro(LowerAsymptote, double);
80  itkGetMacro(FinalSampledArray, MeasureType *);
81  itkGetMacro(FitError, double);
82 
83  void SetDataArray(MeasureType *dataArray);
84 
86  void StartOptimization();
87 
89  void PrintArray(MeasureType *array);
90 
92  const std::string GetStopConditionDescription() const;
93 
94 protected:
97  void PrintSelf(std::ostream & os, Indent indent) const;
98 
99 private:
100 
103 
106 
109 
112 
116 
119 
122 
125 
127  bool m_Verbose;
128 
130  double m_FitError;
131 
135 
138 
140  MeasureType * ExtendGaussian(MeasureType *originalArray, MeasureType *extendedArray, int startingPointForInsertion);
141 
144  MeasureType *extendedArray,
145  int startingPointForInsertion);
146 
150 
152  void FindParametersOfGaussian(MeasureType *sampledGaussianArray);
153 
156 
159 
162 
164  double VerticalBestShift(MeasureType *originalArray, MeasureType *newArray);
165 
167  std::ostringstream m_StopConditionDescription;
168 };
169 } // end namespace itk
170 
171 #endif

Generated at Sat Mar 8 2014 14:31:02 for Orfeo Toolbox with doxygen 1.8.3.1