Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itk::kurtosis_fit_lsq_function Struct Reference

#include <itkDiffusionKurtosisReconstructionImageFilter.h>

Inheritance diagram for itk::kurtosis_fit_lsq_function:
Collaboration diagram for itk::kurtosis_fit_lsq_function:

Public Member Functions

 kurtosis_fit_lsq_function (unsigned int num_params, unsigned int num_measurements, UseGradient g=no_gradient)
 
 kurtosis_fit_lsq_function (unsigned int number_measurements)
 
void initialize (vnl_vector< double > const &_meas, vnl_vector< double > const &_bvals)
 
void use_bounds ()
 
void set_fit_logscale (bool flag)
 
void set_K_bounds (const vnl_vector_fixed< double, 2 > k_bounds)
 
virtual void f (const vnl_vector< double > &x, vnl_vector< double > &fx)
 

Protected Member Functions

double Diff (double x1, double x2, double b)
 
virtual double M (vnl_vector< double > const &x, unsigned int idx)
 
virtual double penalty_term (vnl_vector< double > const &x)
 

Protected Attributes

bool m_use_bounds
 
bool m_use_logscale
 
bool m_skip_fit
 
vnl_vector< double > kurtosis_upper_bounds
 
vnl_vector< double > kurtosis_lower_bounds
 
vnl_vector< double > meas
 
vnl_vector< double > bvalues
 

Detailed Description

Constructor & Destructor Documentation

itk::kurtosis_fit_lsq_function::kurtosis_fit_lsq_function ( unsigned int  num_params,
unsigned int  num_measurements,
UseGradient  g = no_gradient 
)
inline

full lsq_function constructor

Definition at line 44 of file itkDiffusionKurtosisReconstructionImageFilter.h.

itk::kurtosis_fit_lsq_function::kurtosis_fit_lsq_function ( unsigned int  number_measurements)
inline

simplified constructor for the 2-parameters fit

Definition at line 52 of file itkDiffusionKurtosisReconstructionImageFilter.h.

Member Function Documentation

double itk::kurtosis_fit_lsq_function::Diff ( double  x1,
double  x2,
double  b 
)
inlineprotected

Formula for diffusion term, use for internal computations

Definition at line 124 of file itkDiffusionKurtosisReconstructionImageFilter.h.

References m_use_logscale.

Referenced by M(), and itk::kurtosis_fit_omit_unweighted::M().

virtual void itk::kurtosis_fit_lsq_function::f ( const vnl_vector< double > &  x,
vnl_vector< double > &  fx 
)
inlinevirtual

Definition at line 110 of file itkDiffusionKurtosisReconstructionImageFilter.h.

References M(), meas, MITK_DEBUG, and penalty_term().

void itk::kurtosis_fit_lsq_function::initialize ( vnl_vector< double > const &  _meas,
vnl_vector< double > const &  _bvals 
)
inline

Initialize the function by setting measurements and the corresponding b-values

Definition at line 58 of file itkDiffusionKurtosisReconstructionImageFilter.h.

References bvalues, mitk::eps, m_skip_fit, m_use_logscale, and meas.

virtual double itk::kurtosis_fit_lsq_function::M ( vnl_vector< double > const &  x,
unsigned int  idx 
)
inlineprotectedvirtual

The fitting measurement function, has to be reimplemented in the classes

Reimplemented in itk::kurtosis_fit_omit_unweighted.

Definition at line 135 of file itkDiffusionKurtosisReconstructionImageFilter.h.

References bvalues, Diff(), m_use_logscale, and meas.

Referenced by f().

virtual double itk::kurtosis_fit_lsq_function::penalty_term ( vnl_vector< double > const &  x)
inlineprotectedvirtual

Penalty term on D and K during fitting, make sure the vector that is passed in contains (D, K) in this ordering

Definition at line 148 of file itkDiffusionKurtosisReconstructionImageFilter.h.

References kurtosis_lower_bounds, kurtosis_upper_bounds, m_use_bounds, and MITK_DEBUG.

Referenced by f().

void itk::kurtosis_fit_lsq_function::set_fit_logscale ( bool  flag)
inline

Definition at line 95 of file itkDiffusionKurtosisReconstructionImageFilter.h.

References m_use_logscale.

Referenced by FitSingleVoxel().

void itk::kurtosis_fit_lsq_function::set_K_bounds ( const vnl_vector_fixed< double, 2 >  k_bounds)
inline
void itk::kurtosis_fit_lsq_function::use_bounds ( )
inline

use penalty terms on fitting to force the parameters stay within the default bounds

Definition at line 85 of file itkDiffusionKurtosisReconstructionImageFilter.h.

References kurtosis_lower_bounds, kurtosis_upper_bounds, and m_use_bounds.

Referenced by set_K_bounds().

Member Data Documentation

vnl_vector<double> itk::kurtosis_fit_lsq_function::bvalues
protected
vnl_vector<double> itk::kurtosis_fit_lsq_function::kurtosis_lower_bounds
protected
vnl_vector<double> itk::kurtosis_fit_lsq_function::kurtosis_upper_bounds
protected
bool itk::kurtosis_fit_lsq_function::m_skip_fit
protected

Definition at line 182 of file itkDiffusionKurtosisReconstructionImageFilter.h.

Referenced by initialize().

bool itk::kurtosis_fit_lsq_function::m_use_bounds
protected

Definition at line 178 of file itkDiffusionKurtosisReconstructionImageFilter.h.

Referenced by penalty_term(), and use_bounds().

bool itk::kurtosis_fit_lsq_function::m_use_logscale
protected
vnl_vector<double> itk::kurtosis_fit_lsq_function::meas
protected

Definition at line 187 of file itkDiffusionKurtosisReconstructionImageFilter.h.

Referenced by f(), initialize(), and M().


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