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
27namespace MR
28{
29 namespace Fixel
30 {
31 namespace Filter
32 {
33
34
35
53 class Smooth : public Base
55
56 public:
57 Smooth (Image<index_type> index_image,
60 const float smoothing_fwhm,
61 const float smoothing_threshold);
62 Smooth (Image<index_type> index_image,
64 const Image<bool>& mask_image);
65 Smooth (Image<index_type> index_image,
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:
81
82 };
84
85
86
87 }
88 }
89}
90
91
92#endif
Matrix::Reader matrix
Definition: smooth.h:78
Image< bool > mask_image
Definition: smooth.h:77
vector< Eigen::Vector3f > fixel_positions
Definition: smooth.h:79
functions and classes related to image data input/output
Definition: image.h:41
Definition: base.h:24
#define MEMALIGN(...)
Definition: types.h:185