Developer documentation
Version 3.0.3-105-gd3941f44
gmwmi.h
Go to the documentation of this file.
1/* Copyright (c) 2008-2022 the MRtrix3 contributors.
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 *
7 * Covered Software is provided under this License on an "as is"
8 * basis, without warranty of any kind, either expressed, implied, or
9 * statutory, including, without limitation, warranties that the
10 * Covered Software is free of defects, merchantable, fit for a
11 * particular purpose or non-infringing.
12 * See the Mozilla Public License v. 2.0 for more details.
13 *
14 * For more details, see http://www.mrtrix.org/.
15 */
16
17#ifndef __dwi_tractography_seeding_gmwmi_h__
18#define __dwi_tractography_seeding_gmwmi_h__
19
20
21#include "image.h"
24
25
26
27namespace MR
28{
29 namespace DWI
30 {
31 namespace Tractography
32 {
33
34 namespace ACT { class GMWMI_finder; }
35
36 namespace Seeding
37 {
38
39
40
42 { MEMALIGN(GMWMI_5TT_Wrapper)
43 public:
44 GMWMI_5TT_Wrapper (const std::string& path) :
45 anat_data (Image<float>::open (path)) { }
46 Image<float> anat_data;
47 };
48
49
50 class GMWMI : public Base, private GMWMI_5TT_Wrapper, private ACT::GMWMI_finder
52
53 public:
54 using ACT::GMWMI_finder::Interp;
55
56 GMWMI (const std::string&, const std::string&);
57
58 bool get_seed (Eigen::Vector3f&) const override;
59
60
61 private:
62 Rejection init_seeder;
63 const float perturb_max_step;
64
65 bool perturb (Eigen::Vector3f&, Interp&) const;
66
67 };
68
69
70
71
72 }
73 }
74 }
75}
76
77#endif
78
functions and classes related to image data input/output
Definition: image.h:41
Definition: base.h:24
#define MEMALIGN(...)
Definition: types.h:185