ITK  4.3.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 
67  typedef Superclass::ParametersType ParametersType;
68  typedef Superclass::MeasureType MeasureType;
69  typedef Superclass::DerivativeType DerivativeType;
70 
73  enum { SpaceDimension = 4 };
74 
76  void GetDerivative( const ParametersType & itkNotUsed(parameters),
77  DerivativeType & itkNotUsed(derivative) ) const {}
78 
80  MeasureType GetValue(const ParametersType & parameters) const;
81 
83  MeasureType * GetValuePointer(ParametersType & parameters);
84 
86  double CalculateFitError(MeasureType *setTestArray);
87 
89  double EvaluateCumulativeGaussian(double argument) const;
90 
92  unsigned int GetNumberOfParameters() const;
93 
95  unsigned int GetNumberOfValues() const;
96 
98  void Initialize(unsigned int rangeDimension);
99 
101  void SetOriginalDataArray(MeasureType *setOriginalDataArray);
102 
103 protected:
106 
107  void PrintSelf(std::ostream & os, Indent indent) const;
108 
109 private:
110 
113 
115  unsigned int m_RangeDimension;
116 
121 };
122 } // end namespace itk
123 
124 #endif
125