Developer documentation
Version 3.0.3-105-gd3941f44
seedtest.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_algorithms_seedtest_h__
18
#define __dwi_tractography_algorithms_seedtest_h__
19
20
#include "
dwi/tractography/tracking/method.h
"
21
#include "
dwi/tractography/tracking/shared.h
"
22
#include "
dwi/tractography/tracking/types.h
"
23
24
25
26
namespace
MR
{
27
namespace
DWI {
28
namespace
Tractography {
29
namespace
Algorithms {
30
31
using namespace
MR::DWI::Tractography::Tracking
;
32
33
class
Seedtest
:
public
MethodBase
{
MEMALIGN
(
Seedtest
)
34
35
public
:
36
37
class
Shared :
public
SharedBase
{
MEMALIGN
(Shared)
38
public
:
39
Shared (
const
std::string& diff_path,
DWI::Tractography::Properties
& property_set) :
40
SharedBase
(diff_path, property_set)
41
{
42
set_step_and_angle (1.0f, 90.0f,
false
);
43
min_num_points_preds = min_num_points_postds = 1;
44
max_num_points_preds = max_num_points_postds = 2;
45
set_cutoff (0.0f);
46
unidirectional =
true
;
47
properties[
"method"
] =
"Seedtest"
;
48
}
49
};
50
51
Seedtest
(
const
Shared& shared) :
52
MethodBase
(shared),
53
S
(shared) { }
54
55
56
bool
init()
override
{
return
true
; }
57
term_t
next ()
override
{
return
EXIT_IMAGE
; }
58
float
get_metric (
const
Eigen::Vector3f& position,
const
Eigen::Vector3f& direction)
override
{
return
1.0f; }
59
60
61
protected
:
62
const
Shared&
S
;
63
64
};
65
66
}
67
}
68
}
69
}
70
71
#endif
72
73
MR::DWI::Tractography::Algorithms::Seedtest
Definition:
seedtest.h:33
MR::DWI::Tractography::Algorithms::Seedtest::S
const Shared & S
Definition:
seedtest.h:62
MR::DWI::Tractography::Properties
Definition:
properties.h:45
MR::DWI::Tractography::Tracking::MethodBase
Definition:
method.h:39
MR::DWI::Tractography::Tracking::SharedBase
Definition:
shared.h:50
shared.h
MR::DWI::Tractography::Tracking
Definition:
early_exit.h:44
MR::DWI::Tractography::Tracking::term_t
term_t
Definition:
types.h:38
MR::DWI::Tractography::Tracking::EXIT_IMAGE
@ EXIT_IMAGE
Definition:
types.h:38
MR
Definition:
base.h:24
types.h
MEMALIGN
#define MEMALIGN(...)
Definition:
types.h:185
method.h
src
dwi
tractography
algorithms
seedtest.h
Generated on Mon Jul 4 2022 08:00:06 for MRtrix by
1.9.3