ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkCumulativeGaussianCostFunction.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 __itkCumulativeGaussianCostFunction_h
19 #define __itkCumulativeGaussianCostFunction_h
20 
22 
23 namespace itk
24 {
51 {
52 public:
53 
59 
62 
64  itkNewMacro(Self);
65 
70 
73  enum { SpaceDimension = 4 };
74 
76  void GetDerivative( const ParametersType & itkNotUsed(parameters),
77  DerivativeType & itkNotUsed(derivative) ) const ITK_OVERRIDE {}
78 
80  virtual MeasureType GetValue(const ParametersType & parameters) const ITK_OVERRIDE;
81 
84 
86  double CalculateFitError(MeasureType *setTestArray);
87 
89  double EvaluateCumulativeGaussian(double argument) const;
90 
92  virtual unsigned int GetNumberOfParameters() const ITK_OVERRIDE;
93 
95  virtual unsigned int GetNumberOfValues() const ITK_OVERRIDE;
96 
98  void Initialize(unsigned int rangeDimension);
99 
101  void SetOriginalDataArray(MeasureType *setOriginalDataArray);
102 
103 protected:
105  virtual ~CumulativeGaussianCostFunction();
106 
107  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
108 
109 private:
110 
113 
115  unsigned int m_RangeDimension;
116 
121 };
122 } // end namespace itk
123 
124 #endif
Light weight base class for most itk classes.
This class is a base for the CostFunctions returning a multiple values.
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
void SetOriginalDataArray(MeasureType *setOriginalDataArray)
void Initialize(unsigned int rangeDimension)
virtual unsigned int GetNumberOfParameters() const ITK_OVERRIDE
Cost function for the Cumulative Gaussian Optimizer.
MeasureType * GetValuePointer(ParametersType &parameters)
double CalculateFitError(MeasureType *setTestArray)
virtual unsigned int GetNumberOfValues() const ITK_OVERRIDE
virtual MeasureType GetValue(const ParametersType &parameters) const ITK_OVERRIDE
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void GetDerivative(const ParametersType &, DerivativeType &) const ITK_OVERRIDE
double EvaluateCumulativeGaussian(double argument) const