25 #ifndef WDATASETRAWHARDI_H
26 #define WDATASETRAWHARDI_H
31 #include "WDataSetSingle.h"
32 #include "../common/math/linearAlgebra/WLinearAlgebra.h"
33 #include "WExportDataHandler.h"
55 boost::shared_ptr< WGrid > newGrid,
56 boost::shared_ptr< std::vector< WVector3d > > newGradients,
57 double diffusionBValue = 1.0 );
111 const WVector3d& getGradient(
size_t index )
const;
118 std::size_t getNumberOfMeasurements()
const;
125 virtual const std::string
getName()
const;
139 std::vector< WVector3d >
const& getOrientations()
const;
146 std::vector< size_t >
const& getZeroGradientIndexes()
const;
153 std::vector< size_t >
const& getNonZeroGradientIndexes()
const;
162 template<
typename T >
WValue< T > getNonZeroGradientSignals(
size_t index )
const;
169 double getDiffusionBValue()
const;
182 void buildGradientIndexes();
219 result[ idx ] = signal[ *cit ];
226 #endif // WDATASETRAWHARDI_H