17#ifndef __dwi_tractography_mapping_mapper_plugins_h__
18#define __dwi_tractography_mapping_mapper_plugins_h__
34 namespace Tractography {
60 template <
class VectorType,
class UnitVectorType>
61 void operator() (VectorType& sh,
const UnitVectorType& d)
const { (*generator) (sh, d); }
63 std::shared_ptr<Math::SH::aPSF<float>> generator;
127 throw Exception (
"Scalar image used for TWI must be a 3D image");
155 sh_coeffs (
interp.size(3)),
159 throw Exception (
"Cannot use ends_corr track statistic with an FOD image");
174 mutable Eigen::Matrix<default_type, Eigen::Dynamic, 1> sh_coeffs;
175 std::shared_ptr<Math::SH::PrecomputedAL<default_type>> precomputer;
const ssize_t sample_centre
const ssize_t kernel_centre
const vector< float > kernel
Image< bool > backtrack_mask
ssize_t get_end_index(const Streamline<> &, const bool) const
const Streamline ::point_type get_end_point(const Streamline<> &, const bool) const
Interp::Linear< Image< float > > interp
const tck_stat_t statistic
functions and classes related to image data input/output
Precomputed Associated Legrendre Polynomials - used to speed up SH calculation.
a class to hold the coefficients for an apodised point-spread function.
void check(const ImageType &H)
convenience function to check if an input image can contain SH coefficients
size_t LforN(int N)
returns the largest lmax given N parameters