A.I.M.S algorithms


gcoef.h
Go to the documentation of this file.
1 /* This software and supporting documentation are distributed by
2  * Institut Federatif de Recherche 49
3  * CEA/NeuroSpin, Batiment 145,
4  * 91191 Gif-sur-Yvette cedex
5  * France
6  *
7  * This software is governed by the CeCILL-B license under
8  * French law and abiding by the rules of distribution of free software.
9  * You can use, modify and/or redistribute the software under the
10  * terms of the CeCILL-B license as circulated by CEA, CNRS
11  * and INRIA at the following URL "http://www.cecill.info".
12  *
13  * As a counterpart to the access to the source code and rights to copy,
14  * modify and redistribute granted by the license, users are provided only
15  * with a limited warranty and the software's author, the holder of the
16  * economic rights, and the successive licensors have only limited
17  * liability.
18  *
19  * In this respect, the user's attention is drawn to the risks associated
20  * with loading, using, modifying and/or developing or reproducing the
21  * software by the user in light of its specific status of free software,
22  * that may mean that it is complicated to manipulate, and that also
23  * therefore means that it is reserved for developers and experienced
24  * professionals having in-depth computer knowledge. Users are therefore
25  * encouraged to load and test the software's suitability as regards their
26  * requirements in conditions enabling the security of their systems and/or
27  * data to be ensured and, more generally, to use and operate it in the
28  * same conditions as regards security.
29  *
30  * The fact that you are presently reading this means that you have had
31  * knowledge of the CeCILL-B license and that you accept its terms.
32  */
33 
34 
35 #ifndef AIMS_SIGNALFILTER_GCOEF_H
36 #define AIMS_SIGNALFILTER_GCOEF_H
37 
38 #include <math.h>
39 
40 
41 class GCoef
42 {
43 
44 public:
45 
46  enum GOrder
47  {
51  };
52 
53  GCoef( float s = 1.0f, GOrder o = smoothing ) { initialize( s, o ); }
54  virtual ~GCoef() { }
55 
56  void initialize( float, GOrder );
57 
58  float n00() const { return _n00; }
59  float n11() const { return _n11; }
60  float n22() const { return _n22; }
61  float n33() const { return _n33; }
62 
63  float n11b() const { return _n11b; }
64  float n22b() const { return _n22b; }
65  float n33b() const { return _n33b; }
66  float n44b() const { return _n44b; }
67 
68  float d11() const { return _d11; }
69  float d22() const { return _d22; }
70  float d33() const { return _d33; }
71  float d44() const { return _d44; }
72 
73 private:
74 
75  float a0;
76  float a1;
77  float c0;
78  float c1;
79  float b0;
80  float b1;
81  float w0;
82  float w1;
83 
84  float _n00;
85  float _n11;
86  float _n22;
87  float _n33;
88 
89  float _n11b;
90  float _n22b;
91  float _n33b;
92  float _n44b;
93 
94  float _d11;
95  float _d22;
96  float _d33;
97  float _d44;
98 
99  void fillSmoothing( float );
100  void fillGradient( float );
101  void fillLaplacian( float );
102 
103 };
104 
105 
106 #endif
float d11() const
Definition: gcoef.h:68
float n33b() const
Definition: gcoef.h:65
float n44b() const
Definition: gcoef.h:66
float n11() const
Definition: gcoef.h:59
float d33() const
Definition: gcoef.h:70
float n22b() const
Definition: gcoef.h:64
Definition: gcoef.h:41
float n11b() const
Definition: gcoef.h:63
virtual ~GCoef()
Definition: gcoef.h:54
float n00() const
Definition: gcoef.h:58
GOrder
Definition: gcoef.h:46
void initialize(float, GOrder)
float n22() const
Definition: gcoef.h:60
GCoef(float s=1.0f, GOrder o=smoothing)
Definition: gcoef.h:53
float d22() const
Definition: gcoef.h:69
float n33() const
Definition: gcoef.h:61
float d44() const
Definition: gcoef.h:71