ITK
6.0.0
Insight Toolkit
|
#include <itkMultivariateLegendrePolynomial.h>
2D and 3D multivariate Legendre Polynomial
In 2D,
\[ f(x_{vector}, parameter_{vector}) = \sum_i^l \left( \sum_j^{l-i} \left( parameter_ {ij} * P_i(x) *P_j(y)) \right) \right) \]
where P_i() denoting a Legendre polynomial of degree i and l it the degree of the polynomial
In 3D,
\[ f(x_{vector}, parameter_{vector}) = \sum_i^l \left( \sum_j^{l-i} \left( \sum_k^{l-i-j} \left( parameter_{ijk} * P_i(x) * P_j(y) * P_k(z) \right) \right) \right) \]
The size of the parameter vector for 2D is \(\frac{(l+1)\cdot(1+2)}{2}\), and for 3D is \(\frac{(l+1)*(l+2)*(l+3)}{3!}\)
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 implementations 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 (https://www.cs.unc.edu/~styner/docs/StynerTR97.pdf)
Definition at line 77 of file itkMultivariateLegendrePolynomial.h.
Classes | |
class | CoefficientVectorSizeMismatch |
class | SimpleForwardIterator |
Public Types | |
using | CoefficientArrayType = DoubleArrayType |
using | DomainSizeType = ULongArrayType |
using | DoubleArrayType = std::vector< double > |
using | IndexType = LongArrayType |
using | LongArrayType = std::vector< long > |
using | ParametersType = Array< double > |
using | Self = MultivariateLegendrePolynomial |
using | ULongArrayType = std::vector< unsigned long > |
Internal coefficient storage type.
Definition at line 87 of file itkMultivariateLegendrePolynomial.h.
The size of the domain.
Definition at line 94 of file itkMultivariateLegendrePolynomial.h.
using itk::MultivariateLegendrePolynomial::DoubleArrayType = std::vector<double> |
Definition at line 82 of file itkMultivariateLegendrePolynomial.h.
Definition at line 95 of file itkMultivariateLegendrePolynomial.h.
using itk::MultivariateLegendrePolynomial::LongArrayType = std::vector<long> |
Definition at line 84 of file itkMultivariateLegendrePolynomial.h.
using itk::MultivariateLegendrePolynomial::ParametersType = Array<double> |
Same as CoefficientArray This type definition will be used by EnergyFunction object.
Definition at line 91 of file itkMultivariateLegendrePolynomial.h.
Definition at line 80 of file itkMultivariateLegendrePolynomial.h.
using itk::MultivariateLegendrePolynomial::ULongArrayType = std::vector<unsigned long> |
Definition at line 83 of file itkMultivariateLegendrePolynomial.h.
itk::MultivariateLegendrePolynomial::MultivariateLegendrePolynomial | ( | unsigned int | dimension, |
unsigned int | degree, | ||
const DomainSizeType & | domainSize | ||
) |
Constructor.
|
virtual |
Destructor.
|
protected |
|
protected |
|
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 170 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 112 of file itkMultivariateLegendrePolynomial.h.
|
inline |
Gets the dimension.
Definition at line 105 of file itkMultivariateLegendrePolynomial.h.
|
inline |
Gets each dimension's size.
Definition at line 131 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 124 of file itkMultivariateLegendrePolynomial.h.
unsigned int itk::MultivariateLegendrePolynomial::GetNumberOfCoefficients | ( | unsigned int | dimension, |
unsigned int | degree | ||
) |
Gets the number of coefficients.
|
protected |
void itk::MultivariateLegendrePolynomial::Print | ( | std::ostream & | os | ) | const |
|
protected |
void itk::MultivariateLegendrePolynomial::SetCoefficients | ( | const CoefficientArrayType & | coefficients | ) |
Sets the Legendre polynomials' parameters.
void itk::MultivariateLegendrePolynomial::SetCoefficients | ( | const ParametersType & | coefficients | ) |
|
private |
Definition at line 317 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 318 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 319 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 316 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 313 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 312 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 311 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 321 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 314 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 322 of file itkMultivariateLegendrePolynomial.h.
|
private |
Definition at line 323 of file itkMultivariateLegendrePolynomial.h.