Developer documentation
Version 3.0.3-105-gd3941f44
proc_mask.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_sift_proc_mask_h__
18#define __dwi_tractography_sift_proc_mask_h__
19
20#include "cmdline_option.h"
21#include "image.h"
22
23#include "algo/iterator.h"
24#include "interp/linear.h"
25
28
29
30
31namespace MR
32{
33 namespace DWI
34 {
35 namespace Tractography
36 {
37 namespace SIFT
38 {
39
40
41 extern const App::OptionGroup SIFTModelProcMaskOption;
42
43
45
46
47 // Private functor for performing ACT image regridding
49 { MEMALIGN(ResampleFunctor)
50
51 using transform_type = Eigen::Transform<float, 3, Eigen::AffineCompact>;
52
53 public:
56
57 void operator() (const Iterator&);
58
59 private:
60 Image<float> dwi;
61 std::shared_ptr<transform_type> voxel2scanner;
62 Interp::Linear<Image<float>> interp_anat;
63 Image<float> out;
64
65 // Helper function for doing the regridding
66 ACT::Tissues ACT2pve (const Iterator&);
67 };
68
69
70
71 }
72 }
73 }
74}
75
76
77#endif
ResampleFunctor(Image< float > &, Image< float > &, Image< float > &)
a dummy image to iterate over, useful for multi-threaded looping.
Definition: iterator.h:29
void initialise_processing_mask(Image< float > &, Image< float > &, Image< float > &)
const App::OptionGroup SIFTModelProcMaskOption
Definition: base.h:24
Eigen::Transform< default_type, 3, Eigen::AffineCompact > transform_type
the type for the affine transform of an image:
Definition: types.h:234