ITK  4.6.0
Insight Segmentation and Registration Toolkit
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);
83 
84  void SetDataArray(MeasureType *dataArray);
85 
87  virtual void StartOptimization() ITK_OVERRIDE;
88 
90  void PrintArray(MeasureType *array);
91 
93  virtual const std::string GetStopConditionDescription() const ITK_OVERRIDE;
94 
95 protected:
97  virtual ~CumulativeGaussianOptimizer();
98  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
99 
100 private:
101 
104 
107 
110 
113 
117 
120 
123 
126 
128  bool m_Verbose;
129 
131  double m_FitError;
132 
136 
139 
141  MeasureType * ExtendGaussian(MeasureType *originalArray, MeasureType *extendedArray, int startingPointForInsertion);
142 
145  MeasureType *extendedArray,
146  int startingPointForInsertion);
147 
151 
153  void FindParametersOfGaussian(MeasureType *sampledGaussianArray);
154 
157 
160 
163 
165  double VerticalBestShift(MeasureType *originalArray, MeasureType *newArray);
166 
168  std::ostringstream m_StopConditionDescription;
169 };
170 } // end namespace itk
171 
172 #endif
double FindAverageSumOfSquaredDifferences(MeasureType *array1, MeasureType *array2)
Light weight base class for most itk classes.
void SetDataArray(MeasureType *dataArray)
double VerticalBestShift(MeasureType *originalArray, MeasureType *newArray)
virtual void StartOptimization() ITK_OVERRIDE
void MeasureGaussianParameters(MeasureType *array)
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
Cost function for the Cumulative Gaussian Optimizer.
This is an optimizer specific to estimating the parameters of Cumulative Gaussian sampled data...
This class is a base for the Optimization methods that optimize a multiple valued function...
MultipleValuedNonLinearOptimizer Superclass
void FindParametersOfGaussian(MeasureType *sampledGaussianArray)
MeasureType * RecalculateExtendedArrayFromGaussianParameters(MeasureType *originalArray, MeasureType *extendedArray, int startingPointForInsertion)
void PrintArray(MeasureType *array)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
CumulativeGaussianCostFunction CostFunctionType
MeasureType * ExtendGaussian(MeasureType *originalArray, MeasureType *extendedArray, int startingPointForInsertion)
virtual const std::string GetStopConditionDescription() const ITK_OVERRIDE