SiGraph: sulcal graphs


foldDescr.h
Go to the documentation of this file.
1
2#ifndef SI_FOLD_FOLDDESCR_H
3#define SI_FOLD_FOLDDESCR_H
4
5
7#include <si/fold/frgraph.h>
8
9
10namespace sigraph
11{
12
22 class FoldDescr : public AdapDescr
23 {
24 public:
27
65
66
69
72 FoldDescr( const FoldDescr & f );
74 virtual ~FoldDescr();
76 virtual CliqueDescr* clone() const;
78
81
86 virtual bool makeVector( const Clique* cl, std::vector<double> & vec,
87 carto::GenericObject* model = 0 );
90 virtual void preProcess( std::vector<double> & vec,
91 carto::GenericObject* model = 0 );
93 virtual bool hasChanged( const Clique* cl,
94 const std::map<Vertex*, std::string> & changes,
95 const carto::GenericObject* model = 0 ) const;
97 virtual void buildTree( Tree & t );
99
102
103 virtual bool makeLearnVector( const Clique* cl, std::vector<double> & vec,
104 carto::GenericObject* model = 0,
105 double outp = 0 );
107 virtual void handleStats( const Clique* cl, std::vector<double> & vec,
108 carto::GenericObject* model = 0,
109 double outp = 0 );
111 virtual void reset();
113
116
117 void setNStats( unsigned n ) { _nnorm = n; }
119 void setNormal( double nx, double ny, double nz )
120 { _nx = nx; _ny = ny; _nz = nz; }
121
122 double limitSize() const { return( _limitSize ); }
124 void setLimitSize( double lim ) { _limitSize = lim; }
126
127 protected:
128 virtual bool makeVectorElements( const Clique* cl,
129 std::vector<double> & vec,
130 carto::GenericObject* model = 0 );
133
134
135 private:
137 unsigned _nnorm;
139 double _nx;
141 double _ny;
143 double _nz;
145 double _limitSize;
146 };
147
148
149 // inline
150
151
153 {
154 return( new FoldDescr( *this ) );
155 }
156
157}
158
159#endif
160
Descripteur de clique (classe abstraite).
Definition cliqueDescr.h:36
Classe Clique.
Definition clique.h:35
virtual bool makeVectorElements(const Clique *cl, std::vector< double > &vec, carto::GenericObject *model=0)
virtual CliqueDescr * clone() const
Definition foldDescr.h:152
virtual ~FoldDescr()
virtual void reset()
Reset (set to zero) all internal stats.
double limitSize() const
Definition foldDescr.h:122
virtual bool makeLearnVector(const Clique *cl, std::vector< double > &vec, carto::GenericObject *model=0, double outp=0)
Build input vector for lerning (allow noising it with random)
void setNormal(double nx, double ny, double nz)
Definition foldDescr.h:119
virtual void buildTree(Tree &t)
IO.
void setLimitSize(double lim)
Definition foldDescr.h:124
virtual bool makeVector(const Clique *cl, std::vector< double > &vec, carto::GenericObject *model=0)
Remplit le vecteur d'entrées.
Inputs
Liste des entrées.
Definition foldDescr.h:29
@ END
Marque la fin.
Definition foldDescr.h:63
virtual void preProcess(std::vector< double > &vec, carto::GenericObject *model=0)
Effectue des pré-processings des stats d'orientation.
virtual void handleStats(const Clique *cl, std::vector< double > &vec, carto::GenericObject *model=0, double outp=0)
Handle stats learning stats.
void setNStats(unsigned n)
Definition foldDescr.h:117
FoldDescr(const FoldDescr &f)
virtual bool hasChanged(const Clique *cl, const std::map< Vertex *, std::string > &changes, const carto::GenericObject *model=0) const
Dit si le potentiel d'une clique, après une transformation de labels de noeuds, a pu changer,...