18 #ifndef itkCumulativeGaussianOptimizer_h 19 #define itkCumulativeGaussianOptimizer_h 23 #include "ITKOptimizersExport.h" 73 itkSetMacro(DifferenceTolerance,
double);
74 itkGetMacro(DifferenceTolerance,
double);
75 itkSetMacro(Verbose,
bool);
76 itkGetMacro(Verbose,
bool);
77 itkGetMacro(ComputedMean,
double);
78 itkGetMacro(ComputedStandardDeviation,
double);
79 itkGetMacro(UpperAsymptote,
double);
80 itkGetMacro(LowerAsymptote,
double);
81 itkGetMacro(FinalSampledArray, MeasureType *);
82 itkGetMacro(FitError,
double);
85 void SetDataArray(MeasureType *dataArray);
88 virtual void StartOptimization() ITK_OVERRIDE;
91 void PrintArray(MeasureType *array);
94 virtual const
std::
string GetStopConditionDescription() const ITK_OVERRIDE;
98 virtual ~CumulativeGaussianOptimizer();
99 virtual
void PrintSelf(
std::ostream & os,
Indent indent) const ITK_OVERRIDE;
104 double m_DifferenceTolerance;
107 double m_ComputedMean;
110 double m_ComputedStandardDeviation;
113 double m_ComputedAmplitude;
117 double m_ComputedTransitionHeight;
120 double m_UpperAsymptote;
123 double m_LowerAsymptote;
126 double m_OffsetForMean;
136 MeasureType *m_FinalSampledArray;
139 MeasureType *m_CumulativeGaussianArray;
142 MeasureType * ExtendGaussian(MeasureType *originalArray, MeasureType *extendedArray,
int startingPointForInsertion);
145 MeasureType * RecalculateExtendedArrayFromGaussianParameters(MeasureType *originalArray,
146 MeasureType *extendedArray,
147 int startingPointForInsertion);
151 double FindAverageSumOfSquaredDifferences(MeasureType *array1, MeasureType *array2);
154 void FindParametersOfGaussian(MeasureType *sampledGaussianArray);
157 void MeasureGaussianParameters(MeasureType *array);
160 void PrintComputedParameterHeader();
163 void PrintComputedParameters();
166 double VerticalBestShift(MeasureType *originalArray, MeasureType *newArray);
169 std::ostringstream m_StopConditionDescription;
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
CostFunctionType::MeasureType MeasureType
Cost function for the Cumulative Gaussian Optimizer.
This is an optimizer specific to estimating the parameters of Cumulative Gaussian sampled data...
SmartPointer< const Self > ConstPointer
This class is a base for the Optimization methods that optimize a multiple valued function...
MultipleValuedNonLinearOptimizer Superclass
CumulativeGaussianOptimizer Self
Control indentation during Print() invocation.
CumulativeGaussianCostFunction CostFunctionType