aimsalgo  5.1.2
Neuroimaging image processing
meshDiffuse.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_SCALESPACE_MESHDIFFUSE_H
36 #define AIMS_SCALESPACE_MESHDIFFUSE_H
37 
39 #include <aims/mesh/texture.h>
40 #include <aims/mesh/curv.h>
41 #include <string>
42 
43 namespace aims
44 {
45 
46 
48  {
49 
50  public :
51 
67  //From A. Andrade...
69  static void surfaceBlockSmooth( const std::string & latt_filename,
70  const std::string *val_filename,
71  const std::string & path_name, unsigned nscans,
72  float dt, unsigned iter, unsigned scans_block,
73  unsigned nodes_block, unsigned nnodes,
74  unsigned ncolPINV, const std::string *outfiles, const float HMAX,const float Umax);
75 
76 
78  static void surfaceBlockSmooth( const std::string & latt_filename,
79  const Texture1d & tex, float dt, unsigned iter,
80  unsigned ncolPINV, Texture1d & outtex,
81  unsigned nodes_block, const float HMAX,const float Umax );
82 
84  static TimeTexture<float> derivative( const std::string & latt_filename,
85  const Texture<float> & tex,
86  unsigned ncolPINV );
87  //... end A. Andrade
88 
89  // Smoothing using finite element appraoch
90  // Smax is a threshold for the smoothed signal estimate
91  // dt is the time increment for each iteration
92  // dur is the duration of the heat equation
93  // !! dur is the TOTAL time of diffusion, not the nb of iteration as for surfaceBlockSmooth
96  float dt, float dur,
97  float Smax,
98  const std::map<unsigned, std::set< std::pair<unsigned,float> > > & weightLapl);
99 
101  float dt, float dur,
102  const std::map<unsigned, std::set< std::pair<unsigned,float> > > & weightLapl);
103  private :
104 
109  AIMSALGO_API
110  static void tayd_core( const int *IND_NEIGHS, const float *PINV,
111  const float *values, float dt, float *output,
112  unsigned ncolPINV, unsigned nodes_iter,
113  unsigned first_node, const float HMAX,const float Umax);
114 
115 
119  AIMSALGO_API
120  static TimeTexture<float> derivative_tayd_core( const int *IND_NEIGHS, const float *PINV,
121  const float *values,
122  unsigned ncolPINV, unsigned nnodes );
123 
124  };
125 
126 }
127 
128 
129 #endif
#define AIMSALGO_API
static AIMSALGO_API Texture< float > FiniteElementSmoothing(const Texture< float > &inittex, float dt, float dur, float Smax, const std::map< unsigned, std::set< std::pair< unsigned, float > > > &weightLapl)
static AIMSALGO_API void surfaceBlockSmooth(const std::string &latt_filename, const std::string *val_filename, const std::string &path_name, unsigned nscans, float dt, unsigned iter, unsigned scans_block, unsigned nodes_block, unsigned nnodes, unsigned ncolPINV, const std::string *outfiles, const float HMAX, const float Umax)
Gaussian diffusion along a surface.
static AIMSALGO_API void surfaceBlockSmooth(const std::string &latt_filename, const Texture1d &tex, float dt, unsigned iter, unsigned ncolPINV, Texture1d &outtex, unsigned nodes_block, const float HMAX, const float Umax)
static AIMSALGO_API TimeTexture< float > derivative(const std::string &latt_filename, const Texture< float > &tex, unsigned ncolPINV)
static Texture< float > FiniteElementSmoothingWithSource(const Texture< float > &inittex, const Texture< float > &sourcetex, float dt, float dur, const std::map< unsigned, std::set< std::pair< unsigned, float > > > &weightLapl)
AIMSDATA_API TimeTexture< float > Texture1d