Developer documentation
Version 3.0.3-105-gd3941f44
smooth.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
18
#ifndef __fixel_filter_smooth_h__
19
#define __fixel_filter_smooth_h__
20
21
#include "
fixel/matrix.h
"
22
#include "
fixel/filter/base.h
"
23
24
#define DEFAULT_FIXEL_SMOOTHING_FWHM 10.0
25
#define DEFAULT_FIXEL_SMOOTHING_MINWEIGHT 0.01
26
27
namespace
MR
28
{
29
namespace
Fixel
30
{
31
namespace
Filter
32
{
33
34
35
53
class
Smooth
:
public
Base
54
{
MEMALIGN
(
Smooth
)
55
56
public
:
57
Smooth
(
Image<index_type>
index_image,
58
const
Matrix::Reader
&
matrix
,
59
const
Image<bool>
&
mask_image
,
60
const
float
smoothing_fwhm,
61
const
float
smoothing_threshold);
62
Smooth
(
Image<index_type>
index_image,
63
const
Matrix::Reader
&
matrix
,
64
const
Image<bool>
&
mask_image
);
65
Smooth
(
Image<index_type>
index_image,
66
const
Matrix::Reader
&
matrix
,
67
const
float
smoothing_fwhm,
68
const
float
smoothing_threshold);
69
Smooth
(
Image<index_type>
index_image,
70
const
Matrix::Reader
&
matrix
);
71
72
void
set_fwhm (
const
float
fwhm);
73
74
void
operator() (
Image<float>
& input,
Image<float>
& output)
const override
;
75
76
protected
:
77
Image<bool>
mask_image
;
78
Matrix::Reader
matrix
;
79
vector<Eigen::Vector3f>
fixel_positions
;
80
float
stdev
,
gaussian_const1
,
gaussian_const2
,
threshold
;
81
82
};
84
85
86
87
}
88
}
89
}
90
91
92
#endif
MR::Fixel::Filter::Base
Definition:
base.h:39
MR::Fixel::Filter::Smooth
Definition:
smooth.h:54
MR::Fixel::Filter::Smooth::matrix
Matrix::Reader matrix
Definition:
smooth.h:78
MR::Fixel::Filter::Smooth::mask_image
Image< bool > mask_image
Definition:
smooth.h:77
MR::Fixel::Filter::Smooth::threshold
float threshold
Definition:
smooth.h:80
MR::Fixel::Filter::Smooth::gaussian_const2
float gaussian_const2
Definition:
smooth.h:80
MR::Fixel::Filter::Smooth::gaussian_const1
float gaussian_const1
Definition:
smooth.h:80
MR::Fixel::Filter::Smooth::stdev
float stdev
Definition:
smooth.h:80
MR::Fixel::Filter::Smooth::fixel_positions
vector< Eigen::Vector3f > fixel_positions
Definition:
smooth.h:79
MR::Fixel::Matrix::Reader
Definition:
matrix.h:194
MR::Image
functions and classes related to image data input/output
Definition:
image.h:41
MR::vector< Eigen::Vector3f >
MR
Definition:
base.h:24
base.h
matrix.h
MEMALIGN
#define MEMALIGN(...)
Definition:
types.h:185
src
fixel
filter
smooth.h
Generated on Mon Jul 4 2022 08:00:06 for MRtrix by
1.9.3