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"
22
#include "
dwi/tractography/ACT/gmwmi.h
"
23
#include "
dwi/tractography/seeding/basic.h
"
24
25
26
27
namespace
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
41
class
GMWMI_5TT_Wrapper
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
51
{
MEMALIGN
(
GMWMI
)
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
gmwmi.h
basic.h
MR::DWI::Tractography::ACT::GMWMI_finder
Definition:
gmwmi.h:51
MR::DWI::Tractography::Seeding::Base
Definition:
base.h:97
MR::DWI::Tractography::Seeding::GMWMI_5TT_Wrapper
Definition:
gmwmi.h:42
MR::DWI::Tractography::Seeding::GMWMI
Definition:
gmwmi.h:51
MR::DWI::Tractography::Seeding::Rejection
Definition:
basic.h:142
MR::Image
functions and classes related to image data input/output
Definition:
image.h:41
MR
Definition:
base.h:24
MEMALIGN
#define MEMALIGN(...)
Definition:
types.h:185
src
dwi
tractography
seeding
gmwmi.h
Generated on Mon Jul 4 2022 08:00:07 for MRtrix by
1.9.3