16 #include <vnl/vnl_cross.h>
17 #include <vnl/vnl_quaternion.h>
22 template<
class ScalarType >
24 : m_Diffusivity(0.001)
30 template<
class ScalarType >
36 template<
class ScalarType >
41 if (dir>=this->m_GradientList.size())
44 this->m_FiberDirection.Normalize();
52 signal = std::exp( -m_BValue * bVal * m_Diffusivity*dot*dot );
60 template<
class ScalarType >
63 this->m_FiberDirection.Normalize();
65 signal.SetSize(this->m_GradientList.size());
67 for(
unsigned int i=0; i<this->m_GradientList.size(); i++)
75 signal[i] = std::exp( -m_BValue * bVal * m_Diffusivity*dot*dot );
PixelType SimulateMeasurement()
DataCollection - Class to facilitate loading/accessing structured data.
itk::Vector< double, 3 > GradientType