aimsalgo  5.1.2
Neuroimaging image processing
meshmorphomat.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 
36 #ifndef AIMS_DISTANCEMAP_MESHMORPHOMAT_H
37 #define AIMS_DISTANCEMAP_MESHMORPHOMAT_H
38 
39 
40 #include <set>
41 #include <list>
42 #include <map>
44 #include <aims/mesh/texture.h>
45 #include <aims/mesh/surface.h>
46 class Graph;
47 namespace aims
48 {
49  namespace meshdistance
50  {
51 
52 
53  template <class T>
55  const Texture<T> & inittex,
56  const T & Back, const T & For,
57  const float dist,bool connexity );
58  template <class T>
60  const Texture<T> & inittex,
61  const T & Back, const T & For,
62  const float dist,bool connexity );
63 
66  const Texture<short> & inittex,
67  const float dist,bool connectivity );
68 
71  const Texture<short> & inittex,
72  const float dist,bool connectivity );
73 
75  const Texture<float> & inittex,
76  const unsigned dist );
77 
79  const Texture<float> & inittex,
80  const unsigned dist );
81 
82 
83  template<class T>
85  const Texture<T> & inittex,
86  const T & Back, const T & For ,
87  const T label,
88  const unsigned min, const unsigned max);
89 
90 
91  template<class T>
93  const Texture<T> & inittex,
94  const T & label,
95  const T & Back, const T & For,
96  unsigned & min, unsigned & max,unsigned nbDil);
97 
100  template<class T>
102  const Texture<T> & sulctex,
103  float nbDilMax,bool connexity,
104  const T & Back, const T & For,
105  const std::vector<std::list<unsigned> > & neigho,
106  const std::set<T> & label_forbidden);
107  template<class T>
109  const Texture<T> & sulctex,
110  float nbDilMax,bool connexity,
111  const T & Back, const T & For,
112  const std::vector<std::list<unsigned> > & neigho);
113  template<class T>
114  unsigned NbOfPoint(const Texture<T> tex, const T label);
115 
116  template<class T>
117  bool HasHole(const Texture<T> &tex,
118  const AimsSurface<3,Void> & mesh, const T label );
119 
120 #if 0 // these are internal functions implemented as static functions
122  template<class T>
123  inline bool SimplePoint( const Texture<T> & tex,
124  const std::list<unsigned> & neigho);
125 
128  template<class T>
129  inline bool ImmortalPoint( const Texture<T> & tex,
130  const std::list<unsigned> & neigho);
131 #endif
132 
137  template<class T> Texture<T>
138  MeshSkeletization( const AimsSurface<3,Void> & mesh,
139  const Texture<T> & inittex,
140  T label,T Back,
141  const std::vector<std::list<unsigned> > & neigho );
142 
143 
144 
145 
147  extern const short MESHDISTANCE_FORBIDDEN;
148  extern const short MESHDISTANCE_UNREACHED;
149 
150  }
151 }
152 
153 
154 #endif
Texture< T > SplitSulci(const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, const T &Back, const T &For, const T label, const unsigned min, const unsigned max)
Texture< T > MeshErosion(const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, const T &Back, const T &For, const float dist, bool connexity)
Texture< T > MeshDilation(const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, const T &Back, const T &For, const float dist, bool connexity)
const short MESHDISTANCE_UNREACHED
Definition: meshvoronoi.h:85
Texture< float > MeshGreyErosion(const AimsSurface< 3, Void > &mesh, const Texture< float > &inittex, const unsigned dist)
float min(float x, float y)
Definition: thickness.h:106
TimeTexture< short > MeshErosionStepbyStep(const AimsSurface< 3, Void > &mesh, const Texture< short > &inittex, const float dist, bool connectivity)
Texture< T > CloseSulci(const AimsSurface< 3, Void > &mesh, const Texture< T > &sulctex, float nbDilMax, bool connexity, const T &Back, const T &For, const std::vector< std::list< unsigned > > &neigho, const std::set< T > &label_forbidden)
Close the sulcus map (dilation and skeletization).
float max(float x, float y)
Definition: thickness.h:98
bool HasHole(const Texture< T > &tex, const AimsSurface< 3, Void > &mesh, const T label)
Texture< T > LineariseSulci(const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, const T &label, const T &Back, const T &For, unsigned &min, unsigned &max, unsigned nbDil)
Texture< T > MeshSkeletization(const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, T label, T Back, const std::vector< std::list< unsigned > > &neigho)
Skeletization of the components of the innitex with label label.
unsigned NbOfPoint(const Texture< T > tex, const T label)
TimeTexture< short > MeshDilationStepbyStep(const AimsSurface< 3, Void > &mesh, const Texture< short > &inittex, const float dist, bool connectivity)
Texture< float > MeshGreyDilation(const AimsSurface< 3, Void > &mesh, const Texture< float > &inittex, const unsigned dist)
const short MESHDISTANCE_FORBIDDEN
global variable...
Definition: meshvoronoi.h:84