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#ifndef __surface_filter_smooth_h__
18#define __surface_filter_smooth_h__
19
20#include "surface/mesh.h"
21#include "surface/filter/base.h"
22
23
24namespace MR
25{
26 namespace Surface
27 {
28 namespace Filter
29 {
30
31
32
35
36
37
38 class Smooth : public Base
39 { MEMALIGN (Smooth)
40 public:
41 Smooth () :
42 Base (),
45
46 Smooth (const std::string& s) :
47 Base (s),
50
51 Smooth (const default_type spatial_factor, const default_type influence_factor) :
52 Base (),
53 spatial (spatial_factor),
54 influence (influence_factor) { }
55
56 Smooth (const std::string& s, const default_type spatial_factor, const default_type influence_factor) :
57 Base (s),
58 spatial (spatial_factor),
59 influence (influence_factor) { }
60
61 void operator() (const Mesh&, Mesh&) const override;
62
63 private:
64 default_type spatial, influence;
65
66 };
67
68
69
70 }
71 }
72}
73
74
75#endif
constexpr default_type default_smoothing_spatial_factor
Definition: smooth.h:33
constexpr default_type default_smoothing_influence_factor
Definition: smooth.h:34
Definition: base.h:24
double default_type
the default type used throughout MRtrix
Definition: types.h:228