#include <itkMultivariateLegendrePolynomial.h>
[NOHEADER] | |
void | Print (std::ostream &os) |
void | PrintSelf (std::ostream &os, Indent indent) const |
double | LegendreSum (const double x, int n, const CoefficientArrayType &coef, int offset=0) |
void | CalculateXCoef (double norm_y, const CoefficientArrayType &coef) |
void | CalculateYCoef (double norm_z, const CoefficientArrayType &coef) |
Public Types | |
typedef MultivariateLegendrePolynomial | Self |
typedef std::vector< double > | DoubleArrayType |
typedef std::vector< unsigned long > | ULongArrayType |
typedef std::vector< long > | LongArrayType |
typedef DoubleArrayType | CoefficientArrayType |
typedef Array< double > | ParametersType |
typedef ULongArrayType | DomainSizeType |
typedef LongArrayType | IndexType |
Public Member Functions | |
MultivariateLegendrePolynomial (unsigned int dimension, unsigned int degree, const DomainSizeType &domainSize) | |
virtual | ~MultivariateLegendrePolynomial () |
unsigned int | GetDimension (void) const |
unsigned int | GetDegree (void) const |
unsigned int | GetNumberOfCoefficients (void) const |
const DomainSizeType & | GetDomainSize (void) const |
void | SetCoefficients (const CoefficientArrayType &coef) throw (CoefficientVectorSizeMismatch) |
void | SetCoefficients (const ParametersType &coef) throw (CoefficientVectorSizeMismatch) |
const CoefficientArrayType & | GetCoefficients (void) const |
double | Evaluate (IndexType &index) |
unsigned int | GetNumberOfCoefficients () |
unsigned int | GetNumberOfCoefficients (unsigned int dimension, unsigned int degree) |
In 2D,
where P_i() denoting a Legendre polynomial of degree i and l it the degree of the polynomial
In 3D,
The size of the parameter vector for 2D is , and for 3D is
To get the size of the parameter vector, users can use one of the two GetNumberOfCoefficients() member functions
To get function result, users can use the operator() or its SimpleForwardIterator's Get() method.
This is a part of the bias correction methods and implemenations that was initially developed and implemented by Martin Styner, Univ. of North Carolina at Chapel Hill, and his colleagues.
For more details. refer to the following articles. "Parametric estimate of intensity inhomogeneities applied to MRI" Martin Styner, G. Gerig, Christian Brechbuehler, Gabor Szekely, IEEE TRANSACTIONS ON MEDICAL IMAGING; 19(3), pp. 153-165, 2000, (http://www.ia.unc.edu/~styner/docs/tmi00.pdf)
"Evaluation of 2D/3D bias correction with 1+1ES-optimization" Martin Styner, Prof. Dr. G. Gerig (IKT, BIWI, ETH Zuerich), TR-197 (http://www.ia.unc.edu/~styner/docs/StynerTR97.pdf)
Definition at line 70 of file itkMultivariateLegendrePolynomial.h.
|
Internal coefficient storage type. Definition at line 80 of file itkMultivariateLegendrePolynomial.h. |
|
The size of the domain. Definition at line 87 of file itkMultivariateLegendrePolynomial.h. Referenced by itk::MultivariateLegendrePolynomial::SimpleForwardIterator::Get(). |
|
Definition at line 75 of file itkMultivariateLegendrePolynomial.h. |
|
Definition at line 88 of file itkMultivariateLegendrePolynomial.h. Referenced by itk::MultivariateLegendrePolynomial::SimpleForwardIterator::Get(). |
|
Definition at line 77 of file itkMultivariateLegendrePolynomial.h. |
|
Same as CoefficientArray This type definition will be used by EnergyFunction object. Definition at line 84 of file itkMultivariateLegendrePolynomial.h. |
|
Definition at line 73 of file itkMultivariateLegendrePolynomial.h. |
|
Definition at line 76 of file itkMultivariateLegendrePolynomial.h. |
|
Constructor. |
|
Destructor. |
|
Referenced by Evaluate(). |
|
Referenced by Evaluate(). |
|
In the case which the bias field is 2D, it returns bias value at the point which is specified by the index Definition at line 147 of file itkMultivariateLegendrePolynomial.h. References CalculateXCoef(), CalculateYCoef(), and LegendreSum(). |
|
Gets Legendre polynomials' coefficients. |
|
Gets the degree (the degree of Legendre polynomials). Definition at line 103 of file itkMultivariateLegendrePolynomial.h. |
|
Gets the dimension. Definition at line 99 of file itkMultivariateLegendrePolynomial.h. |
|
Gets each dimesion's size. Definition at line 115 of file itkMultivariateLegendrePolynomial.h. |
|
Gets the number of coefficients. |
|
Gets the number of coefficients. |
|
Returns the number of coefficients of the polynomial This number is computed from the degree of the polynomial the SetCoefficients() method expects an array of this size, an exception is thrown otherwise
Definition at line 111 of file itkMultivariateLegendrePolynomial.h. |
|
Referenced by Evaluate(). |
|
|
|
|
|
|
|
Sets the Legendre polynomials' parameters.
|