17#ifndef __dwi_tractography_mapping_fixel_td_map_h__
18#define __dwi_tractography_mapping_fixel_td_map_h__
29 namespace Tractography
38 template <
class Fixel>
69 template <
class Fixel>
72 for (
const auto& i : in) {
73 const size_t fixel_index = dixel2fixel (i);
75 fixels[fixel_index] += i.get_length();
81 template <
class Fixel>
85 assign_pos_of (in).to (v);
86 if (is_out_of_bounds (v))
90 const MapVoxel& map_voxel (*v.value());
91 if (map_voxel.empty())
93 return map_voxel.dir2fixel (in.get_dir());
Fixel_TD_map(const Fixel_TD_map &)=delete
const DWI::Directions::FastLookupSet & dirs
size_t dixel2fixel(const Dixel &) const
virtual bool operator()(const SetDixel &in)
Fixel_TD_map(const Header &H, const DWI::Directions::FastLookupSet &directions)