3 #include <vnl/vnl_vector_fixed.h> 12 template <
class GradientType = std::vector <
double>,
class BValueScalarType =
double>
43 std::fill(vec.begin(),vec.end(),0);
62 void ReadGradientsFromBVecFile();
63 void ReadGradientsFromTextFile();
66 GradientVectorType m_Gradients;
67 BValueVectorType m_BValues;
68 BValueVectorType m_GradientStrengths;
70 std::string m_GradientFileName;
71 std::string m_BValueBaseString;
73 unsigned int m_TotalNumberOfDirections;
75 double m_B0ValueThreshold;
77 bool m_GradientIndependentNormalization;
80 double m_SmallDelta, m_BigDelta;
void InitializeEmptyGradient(itk::Vector< T, 3 > &vec)
void SetGradientIndependentNormalization(bool normGrads)
void InitializeEmptyGradient(itk::Point< T, 3 > &vec)
void SetBigDelta(double val)
void InitializeEmptyGradient(std::vector< T > &vec)
std::vector< BValueScalarType > BValueVectorType
std::vector< bool > GetB0Directions()
GradientVectorType & GetGradients()
std::vector< GradientType > GradientVectorType
BValueVectorType & GetGradientStrengths()
void SetB0ValueThreshold(double thr)
void SetGradientFileName(std::string fName)
void SetBValueBaseString(std::string base)
BValueVectorType & GetBValues()
unsigned int GetTotalNumberOfDirections()
void InitializeEmptyGradient(vnl_vector_fixed< T, 3 > &vec)
void SetSmallDelta(double val)