ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkCumulativeGaussianOptimizer.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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#include "ITKOptimizersExport.h"
24
25namespace itk
26{
47
49{
50public:
56
60
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(CumulativeGaussianOptimizer);
69
71 itkSetMacro(DifferenceTolerance, double);
72 itkGetMacro(DifferenceTolerance, double);
73 itkSetMacro(Verbose, bool);
74 itkGetMacro(Verbose, bool);
75 itkBooleanMacro(Verbose);
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
85 SetDataArray(MeasureType * cumGaussianArray);
86
88 void
90
92 void
94
96 std::string
98
99protected:
102 void
103 PrintSelf(std::ostream & os, Indent indent) const override;
104
105private:
108
111
114
117
121
124
127
130
132 bool m_Verbose{};
133
135 double m_FitError{};
136
140
143
145 MeasureType *
146 ExtendGaussian(MeasureType * originalArray, MeasureType * extendedArray, int startingPointForInsertion);
147
151 MeasureType * extendedArray,
152 int startingPointForInsertion) const;
153
156 double
158
160 void
161 FindParametersOfGaussian(MeasureType * sampledGaussianArray);
162
164 void
166
168 void
170
172 void
174
176 double
177 VerticalBestShift(MeasureType * originalArray, MeasureType * newArray);
178
180 std::ostringstream m_StopConditionDescription{};
181};
182} // end namespace itk
183
184#endif
Cost function for the Cumulative Gaussian Optimizer.
void FindParametersOfGaussian(MeasureType *sampledGaussianArray)
MeasureType * RecalculateExtendedArrayFromGaussianParameters(MeasureType *originalArray, MeasureType *extendedArray, int startingPointForInsertion) const
void PrintSelf(std::ostream &os, Indent indent) const override
MultipleValuedNonLinearOptimizer Superclass
void MeasureGaussianParameters(MeasureType *array)
void PrintArray(MeasureType *array)
double VerticalBestShift(MeasureType *originalArray, MeasureType *newArray)
std::string GetStopConditionDescription() const override
MeasureType * ExtendGaussian(MeasureType *originalArray, MeasureType *extendedArray, int startingPointForInsertion)
double FindAverageSumOfSquaredDifferences(MeasureType *array1, MeasureType *array2)
CumulativeGaussianCostFunction CostFunctionType
void SetDataArray(MeasureType *cumGaussianArray)
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....