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
23
24
25
26namespace MR {
27namespace DWI {
28namespace Tractography {
29namespace Algorithms {
30
32
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
Definition: base.h:24
#define MEMALIGN(...)
Definition: types.h:185