Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
SphereInterpolator Class Reference

Lookuptable based trilinear interpolation of spherically arranged scalar values. More...

#include <mitkSphereInterpolator.h>

Collaboration diagram for SphereInterpolator:

Public Member Functions

 SphereInterpolator (const string &lutPath)
 
bool IsInValidState () const
 
 ~SphereInterpolator ()
 
void getInterpolation (const vnl_vector_fixed< float, 3 > &N)
 

Public Attributes

int size
 
int sN
 
int nverts
 
float beta
 
float inva
 
float b
 
bool m_ValidState
 
vector< float > barycoords
 
vector< int > indices
 
vnl_vector_fixed< int, 3 > idx
 
vnl_vector_fixed< float, 3 > interpw
 

Protected Member Functions

bool LoadLookuptables (const string &lutPath)
 
bool LoadLookuptables ()
 
bool LoadLookuptables (std::istream &BaryCoordsStream, std::istream &IndicesStream)
 
float invrescale (float f) const
 
int float2int (float x) const
 

Detailed Description

Lookuptable based trilinear interpolation of spherically arranged scalar values.

Definition at line 32 of file mitkSphereInterpolator.h.

Constructor & Destructor Documentation

SphereInterpolator::SphereInterpolator ( const string &  lutPath)

Definition at line 33 of file mitkSphereInterpolator.cpp.

References b, beta, inva, LoadLookuptables(), m_ValidState, nverts, QBALL_ODFSIZE, size, and sN.

SphereInterpolator::~SphereInterpolator ( )

Definition at line 62 of file mitkSphereInterpolator.cpp.

Member Function Documentation

int SphereInterpolator::float2int ( float  x) const
inlineprotected

Definition at line 162 of file mitkSphereInterpolator.h.

void SphereInterpolator::getInterpolation ( const vnl_vector_fixed< float, 3 > &  N)
inline

Definition at line 59 of file mitkSphereInterpolator.h.

Referenced by GibbsEnergyComputer::EvaluateOdf().

float SphereInterpolator::invrescale ( float  f) const
inlineprotected

Definition at line 153 of file mitkSphereInterpolator.h.

bool SphereInterpolator::IsInValidState ( ) const
inline
bool SphereInterpolator::LoadLookuptables ( const string &  lutPath)
protected
bool SphereInterpolator::LoadLookuptables ( std::istream &  BaryCoordsStream,
std::istream &  IndicesStream 
)
protected

Definition at line 124 of file mitkSphereInterpolator.cpp.

References barycoords, indices, and MITK_INFO.

Member Data Documentation

float SphereInterpolator::b

Definition at line 42 of file mitkSphereInterpolator.h.

Referenced by SphereInterpolator().

vector< float > SphereInterpolator::barycoords

Definition at line 45 of file mitkSphereInterpolator.h.

Referenced by LoadLookuptables().

float SphereInterpolator::beta

Definition at line 40 of file mitkSphereInterpolator.h.

Referenced by SphereInterpolator().

vnl_vector_fixed< int, 3 > SphereInterpolator::idx

Definition at line 47 of file mitkSphereInterpolator.h.

Referenced by GibbsEnergyComputer::EvaluateOdf().

vector< int > SphereInterpolator::indices

Definition at line 46 of file mitkSphereInterpolator.h.

Referenced by LoadLookuptables().

vnl_vector_fixed< float, 3 > SphereInterpolator::interpw

Definition at line 48 of file mitkSphereInterpolator.h.

Referenced by GibbsEnergyComputer::EvaluateOdf().

float SphereInterpolator::inva

Definition at line 41 of file mitkSphereInterpolator.h.

Referenced by SphereInterpolator().

bool SphereInterpolator::m_ValidState

Definition at line 43 of file mitkSphereInterpolator.h.

Referenced by SphereInterpolator().

int SphereInterpolator::nverts

Definition at line 39 of file mitkSphereInterpolator.h.

Referenced by EnergyComputer::EnergyComputer(), and SphereInterpolator().

int SphereInterpolator::size

Definition at line 37 of file mitkSphereInterpolator.h.

Referenced by SphereInterpolator().

int SphereInterpolator::sN

Definition at line 38 of file mitkSphereInterpolator.h.

Referenced by SphereInterpolator().


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