25 #ifndef WDATASETRAWHARDI_H
26 #define WDATASETRAWHARDI_H
31 #include "WDataSetSingle.h"
32 #include "../common/math/linearAlgebra/WVectorFixed.h"
54 boost::shared_ptr< WGrid > newGrid,
55 boost::shared_ptr< std::vector< WVector3d > > newGradients,
56 double diffusionBValue = 1.0 );
124 virtual const std::string
getName()
const;
217 result[ idx ] = signal[ *cit ];
224 #endif // WDATASETRAWHARDI_H
static boost::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
const WVector3d & getGradient(size_t index) const
Returns the gradient for the index.
double m_diffusionBValue
Strength (b-value) of the so-called magnetic diffusion gradient.
virtual const std::string getName() const
Gets the name of this prototype.
Base class for all higher level values like tensors, vectors, matrices and so on. ...
std::vector< size_t > m_zeroGradientIndexes
The indexes for the which gradient is zero.
std::vector< size_t > const & getNonZeroGradientIndexes() const
Get the indexes of non-zero gradients.
virtual WDataSetSingle::SPtr clone() const
Creates a copy (clone) of this instance.
static boost::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
std::vector< size_t > m_nonZeroGradientIndexes
The indexes for the which gradient is non-zero.
double getDiffusionBValue() const
Returns the b-value of the diffusion.
boost::shared_ptr< std::vector< WVector3d > > m_gradients
Gradients of measurements.
boost::shared_ptr< WValueSetBase > m_valueSet
Stores the reference of the WValueSet of this DataSetSingle instance.
A fixed size matrix class.
A data set consisting of a set of values based on a grid.
std::size_t getNumberOfMeasurements() const
Returns the count of measurements per voxel, which is equal to the count of the used gradients...
boost::shared_ptr< WDataSetSingle > SPtr
Convenience typedef for a boost::shared_ptr.
Base Class for all value set types.
This data set type contains raw HARDI and its gradients.
WDataSetRawHARDI()
Construct an empty and unusable instance.
std::vector< WVector3d > const & getOrientations() const
Get the orientations.
virtual ~WDataSetRawHARDI()
Destroys this DataSet instance.
std::vector< size_t > const & getZeroGradientIndexes() const
Get the indexes of zero gradients.
virtual const std::string getDescription() const
Gets the description for this prototype.
WValue< T > getNonZeroGradientSignals(size_t index) const
Returns only the measurements for which the gradient was non-zero.
void buildGradientIndexes()
Build indexes for the zero and non-zero gradients.