ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkMultivariateLegendrePolynomial.h>
2D and 3D multivariate Legendre Polynomial
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.
"Evaluation of 2D/3D bias correction with 1+1ES-optimization" Martin Styner, Prof. Dr. G. Gerig (IKT, BIWI, ETH Zuerich), TR-197 (http://www.cs.unc.edu/~styner/docs/StynerTR97.pdf)
Definition at line 75 of file itkMultivariateLegendrePolynomial.h.
Classes | |
class | CoefficientVectorSizeMismatch |
class | SimpleForwardIterator |
Public Types | |
typedef DoubleArrayType | CoefficientArrayType |
typedef ULongArrayType | DomainSizeType |
typedef std::vector< double > | DoubleArrayType |
typedef LongArrayType | IndexType |
typedef std::vector< long > | LongArrayType |
typedef Array< double > | ParametersType |
typedef MultivariateLegendrePolynomial | Self |
typedef std::vector< unsigned long > | ULongArrayType |
Internal coefficient storage type.
Definition at line 85 of file itkMultivariateLegendrePolynomial.h.
The size of the domain.
Definition at line 92 of file itkMultivariateLegendrePolynomial.h.
typedef std::vector< double > itk::MultivariateLegendrePolynomial::DoubleArrayType |
Definition at line 80 of file itkMultivariateLegendrePolynomial.h.
Definition at line 93 of file itkMultivariateLegendrePolynomial.h.
typedef std::vector< long > itk::MultivariateLegendrePolynomial::LongArrayType |
Definition at line 82 of file itkMultivariateLegendrePolynomial.h.
typedef Array< double > itk::MultivariateLegendrePolynomial::ParametersType |
Same as CoefficientArray This type definition will be used by EnergyFunction object.
Definition at line 89 of file itkMultivariateLegendrePolynomial.h.
Definition at line 78 of file itkMultivariateLegendrePolynomial.h.
typedef std::vector< unsigned long > itk::MultivariateLegendrePolynomial::ULongArrayType |
Definition at line 81 of file itkMultivariateLegendrePolynomial.h.
itk::MultivariateLegendrePolynomial::MultivariateLegendrePolynomial | ( | unsigned int | dimension, |
unsigned int | degree, | ||
const DomainSizeType & | domainSize | ||
) |
Constructor.
|
virtual |
Destructor.
|
protected |
In the case which the bias field is 2D, it returns bias value at the point which is specified by the index
|
protected |
In the case which the bias field is 2D, it returns bias value at the point which is specified by the index
|
inline |
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 156 of file itkMultivariateLegendrePolynomial.h.
const CoefficientArrayType& itk::MultivariateLegendrePolynomial::GetCoefficients | ( | ) | const |
Gets Legendre polynomials' coefficients.
|
inline |
Gets the degree (the degree of Legendre polynomials).
Definition at line 108 of file itkMultivariateLegendrePolynomial.h.
|
inline |
Gets the dimension.
Definition at line 104 of file itkMultivariateLegendrePolynomial.h.
|
inline |
Gets each dimesion's size.
Definition at line 121 of file itkMultivariateLegendrePolynomial.h.
|
inline |
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 117 of file itkMultivariateLegendrePolynomial.h.
unsigned int itk::MultivariateLegendrePolynomial::GetNumberOfCoefficients | ( | ) |
Gets the number of coefficients.
unsigned int itk::MultivariateLegendrePolynomial::GetNumberOfCoefficients | ( | unsigned int | dimension, |
unsigned int | degree | ||
) |
Gets the number of coefficients.
|
protected |
In the case which the bias field is 2D, it returns bias value at the point which is specified by the index
void itk::MultivariateLegendrePolynomial::Print | ( | std::ostream & | os | ) |
In the case which the bias field is 2D, it returns bias value at the point which is specified by the index
|
protected |
In the case which the bias field is 2D, it returns bias value at the point which is specified by the index
void itk::MultivariateLegendrePolynomial::SetCoefficients | ( | const CoefficientArrayType & | coef | ) | |
throw | ( | CoefficientVectorSizeMismatch | |||
) |
Sets the Legendre polynomials' parameters.
void itk::MultivariateLegendrePolynomial::SetCoefficients | ( | const ParametersType & | coef | ) | |
throw | ( | CoefficientVectorSizeMismatch | |||
) |
|
private |
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 297 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 298 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 299 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 296 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 293 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 292 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 291 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 301 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 294 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 302 of file itkMultivariateLegendrePolynomial.h.
|
private |
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 303 of file itkMultivariateLegendrePolynomial.h.