ITK  4.1.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
itk::CumulativeGaussianCostFunction Class Reference

#include <itkCumulativeGaussianCostFunction.h>

+ Inheritance diagram for itk::CumulativeGaussianCostFunction:
+ Collaboration diagram for itk::CumulativeGaussianCostFunction:

List of all members.

Public Types

enum  { SpaceDimension = 4 }
typedef SmartPointer< const SelfConstPointer
typedef Superclass::DerivativeType DerivativeType
typedef Superclass::MeasureType MeasureType
typedef Superclass::ParametersType ParametersType
typedef SmartPointer< SelfPointer
typedef
CumulativeGaussianCostFunction 
Self
typedef MultipleValuedCostFunction Superclass

Public Member Functions

double CalculateFitError (MeasureType *setTestArray)
virtual ::itk::LightObject::Pointer CreateAnother (void) const
double EvaluateCumulativeGaussian (double argument) const
void GetDerivative (const ParametersType &, DerivativeType &) const
virtual const char * GetNameOfClass () const
unsigned int GetNumberOfParameters () const
unsigned int GetNumberOfValues () const
MeasureType GetValue (const ParametersType &parameters) const
MeasureTypeGetValuePointer (ParametersType &parameters)
void Initialize (unsigned int rangeDimension)
void SetOriginalDataArray (MeasureType *setOriginalDataArray)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 CumulativeGaussianCostFunction ()
void PrintSelf (std::ostream &os, Indent indent) const
virtual ~CumulativeGaussianCostFunction ()

Private Attributes

MeasureType m_Measure
MeasureTypem_MeasurePointer
MeasureTypem_OriginalDataArray
ParametersType m_Parameters
unsigned int m_RangeDimension

Detailed Description

Cost function for the Cumulative Gaussian Optimizer.

The Cumulative Gaussian is defined as the integral of a normalized Gaussian over the domain $ [-\infty, \infty] $.

Let G(x) be the normalized Gaussian defined as
$ G(x) = \frac{1}{{\sigma \sqrt {2\pi } }}e^{ - \frac{{\left( {x - \mu } \right)^2 }}{{2\sigma ^2 }}} $. The Cumulative Gaussian, is acquired by integrating G(x) then scaling and offseting it by the lower asymptotes $ I_1 $ and upper $ I_2 $: $ C\left( x \right) = I_1 + \frac{{I_2 - I_1 }}{2}\left( {1 + erf\left( {\frac{{x - \mu }}{{\sigma \sqrt 2 }}} \right)} \right) $, where $ C\left( { - \infty } \right) = I_1 $ and $ C\left( \infty \right) = I_2 $.
C(x) can only be tabulated since it's a variation of the
error function. It is included in this class as the function EvaluateCumulativeGaussian, where the argument of the function is $ {\frac{{x - \mu }}{{\sigma \sqrt 2 }}} $.

Definition at line 50 of file itkCumulativeGaussianCostFunction.h.


Member Typedef Documentation

Reimplemented from itk::MultipleValuedCostFunction.

Definition at line 58 of file itkCumulativeGaussianCostFunction.h.

GradientType typedef. It defines a type used to return the cost function derivative.

Reimplemented from itk::MultipleValuedCostFunction.

Definition at line 69 of file itkCumulativeGaussianCostFunction.h.

MeasureType typedef. It defines a type used to return the cost function value.

Reimplemented from itk::MultipleValuedCostFunction.

Definition at line 68 of file itkCumulativeGaussianCostFunction.h.

Array Typedefs.

Reimplemented from itk::MultipleValuedCostFunction.

Definition at line 64 of file itkCumulativeGaussianCostFunction.h.

Reimplemented from itk::MultipleValuedCostFunction.

Definition at line 57 of file itkCumulativeGaussianCostFunction.h.

Standard typedefs.

Reimplemented from itk::MultipleValuedCostFunction.

Definition at line 55 of file itkCumulativeGaussianCostFunction.h.

Reimplemented from itk::MultipleValuedCostFunction.

Definition at line 56 of file itkCumulativeGaussianCostFunction.h.


Member Enumeration Documentation

anonymous enum

The dimensions of parameter space; mean, standard deviation, lower and upper asymptotes.

Enumerator:
SpaceDimension 

Definition at line 73 of file itkCumulativeGaussianCostFunction.h.


Constructor & Destructor Documentation


Member Function Documentation

Calculate a fit error between the data and the fit curve.

virtual::itk::LightObject::Pointer itk::CumulativeGaussianCostFunction::CreateAnother ( void  ) const [virtual]

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Object.

Given the argument of a Cumulative Gaussian, return its value.

Not necessary for this optimizer.

Definition at line 76 of file itkCumulativeGaussianCostFunction.h.

virtual const char* itk::CumulativeGaussianCostFunction::GetNameOfClass ( ) const [virtual]

Run-time type information (and related methods).

Reimplemented from itk::MultipleValuedCostFunction.

Get the SpaceDimension.

Implements itk::CostFunction.

Get the number Range Dimension.

Implements itk::MultipleValuedCostFunction.

Return the values evaluated for the given parameters.

Implements itk::MultipleValuedCostFunction.

Return a pointer of values evaluated for the given parameters.

void itk::CumulativeGaussianCostFunction::Initialize ( unsigned int  rangeDimension)

Initialize the arrays.

Method for creation through the object factory.

Reimplemented from itk::Object.

void itk::CumulativeGaussianCostFunction::PrintSelf ( std::ostream &  os,
Indent  indent 
) const [protected, virtual]

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::CostFunction.

Set the original data array.


Member Data Documentation

Different arrays.

Definition at line 118 of file itkCumulativeGaussianCostFunction.h.

Definition at line 119 of file itkCumulativeGaussianCostFunction.h.

Pointer to the original data array.

Definition at line 112 of file itkCumulativeGaussianCostFunction.h.

Definition at line 120 of file itkCumulativeGaussianCostFunction.h.

Number of data samples.

Definition at line 115 of file itkCumulativeGaussianCostFunction.h.


The documentation for this class was generated from the following file: