SiGraph: sulcal graphs


sigraph::DomainBox Class Reference

Domaine de validité par boîte englobante. More...

#include <si/fold/domainBox.h>

Inheritance diagram for sigraph::DomainBox:
Collaboration diagram for sigraph::DomainBox:

Public Member Functions

 DomainBox ()
 
 DomainBox (const DomainBox &dom)
 
virtual ~DomainBox ()
 
virtual Domainclone () const
 Duplication.
 
Utilisation
bool canBeFound (double x, double y, double z)
 Renvoie si le point peut se trouver aux coordonnées (x, y, z)
 
virtual bool canBeFound (const Vertex *v, const Graph *g=0)
 Renvoie si le noeud de graphe peut appartenir au modèle concerné (donc avoir le label considéré)
 
Apprentissage
virtual void learn (const Vertex *v, const Graph *g=0)
 Apprends le domaine d'un morceau de sillon donné.
 
virtual void reset ()
 Réinitialise l'apprentissage (remet les stats à zéro)
 
void setDims (double xmin, double ymin, double zmin, double xmax, double ymax, double zmax)
 
double xmin () const
 
double ymin () const
 
double zmin () const
 
double xmax () const
 
double ymax () const
 
double zmax () const
 
const std::string & gravityCenterAttribute () const
 
void setGravityCenterAttribute (const std::string &att)
 
virtual void talairach (float &v1, float &v2, float &v3, const Graph *g) const
 Transforme le vecteur {\tt (v1, v2, v3)} dans les coordonnées de Talairach (transformation dans le graphe {\tt g})
 
virtual void cubeTalairach (std::vector< std::vector< double > > &pts) const
 Donne les coordonnées des coins dans Talairach (pas forcément les minmax internes, cf InertialDomainBox), remplit le vecteur avec les 8 points.
 
- Public Member Functions inherited from sigraph::AdapDomain
virtual ~AdapDomain ()
 
unsigned nData () const
 
void setNData (unsigned ndata)
 
virtual bool needsMorePasses () const
 Dit s'il faut encore un passage sur une base pour que l'apprentissage soit complet.
 
virtual void nextPass ()
 Effectue le changement de phase d'apprentissage.
 
virtual void firstPass ()
 Revient à la première passe d'apprentissage.
 
- Public Member Functions inherited from sigraph::Domain
virtual ~Domain ()
 

IO

double _xmin
 
double _ymin
 
double _zmin
 
double _xmax
 
double _ymax
 
double _zmax
 
std::string _gcattrib
 
virtual void buildTree (Tree &tr) const
 Conversion en arbre (pour IO)
 
static void buildDomBox (Tree *parent, Tree *tr)
 

Additional Inherited Members

 AdapDomain ()
 
 AdapDomain (const AdapDomain &dom)
 
- Protected Member Functions inherited from sigraph::Domain
 Domain ()
 
 Domain (const Domain &dom)
 
unsigned _ndata
 

Detailed Description

Domaine de validité par boîte englobante.

Definition at line 15 of file domainBox.h.

Constructor & Destructor Documentation

◆ DomainBox() [1/2]

◆ DomainBox() [2/2]

sigraph::DomainBox::DomainBox ( const DomainBox & dom)

References DomainBox().

◆ ~DomainBox()

sigraph::DomainBox::~DomainBox ( )
inlinevirtual

Definition at line 98 of file domainBox.h.

Member Function Documentation

◆ buildDomBox()

static void sigraph::DomainBox::buildDomBox ( Tree * parent,
Tree * tr )
static

◆ buildTree()

virtual void sigraph::DomainBox::buildTree ( Tree & tr) const
virtual

Conversion en arbre (pour IO)

Reimplemented from sigraph::AdapDomain.

Reimplemented in sigraph::DomainBox2, and sigraph::InertialDomainBox.

◆ canBeFound() [1/2]

virtual bool sigraph::DomainBox::canBeFound ( const Vertex * v,
const Graph * g = 0 )
virtual

Renvoie si le noeud de graphe peut appartenir au modèle concerné (donc avoir le label considéré)

Parameters
vnoeud à tester. Il doit posséder l'attribut "gravity_center" pour être utilisable
ggraphe contenant le noeud

Implements sigraph::Domain.

Reimplemented in sigraph::InertialDomainBox.

◆ canBeFound() [2/2]

bool sigraph::DomainBox::canBeFound ( double x,
double y,
double z )
inlinevirtual

Renvoie si le point peut se trouver aux coordonnées (x, y, z)

Implements sigraph::Domain.

Reimplemented in sigraph::InertialDomainBox.

Definition at line 152 of file domainBox.h.

References _xmax, _xmin, _ymax, _ymin, _zmax, _zmin, and sigraph::AdapDomain::nData().

◆ clone()

Domain * sigraph::DomainBox::clone ( ) const
inlinevirtual

Duplication.

Implements sigraph::AdapDomain.

Reimplemented in sigraph::DomainBox2, and sigraph::InertialDomainBox.

Definition at line 92 of file domainBox.h.

References DomainBox().

◆ cubeTalairach()

virtual void sigraph::DomainBox::cubeTalairach ( std::vector< std::vector< double > > & pts) const
virtual

Donne les coordonnées des coins dans Talairach (pas forcément les minmax internes, cf InertialDomainBox), remplit le vecteur avec les 8 points.

Reimplemented in sigraph::InertialDomainBox.

◆ gravityCenterAttribute()

const std::string & sigraph::DomainBox::gravityCenterAttribute ( ) const
inline

Definition at line 56 of file domainBox.h.

References _gcattrib.

◆ learn()

virtual void sigraph::DomainBox::learn ( const Vertex * v,
const Graph * g = 0 )
virtual

Apprends le domaine d'un morceau de sillon donné.

Parameters
vsillon ou morceau de sillon sous sa forme de noeud de graphe. Le noeud doit contenir un bucket (attribut "bucket" ) pour pouvoir être appris
ggraphe contenant le noeud v; des informations globales du graphe peuvent être utilisées par le noeud

Reimplemented from sigraph::AdapDomain.

Reimplemented in sigraph::DomainBox2, and sigraph::InertialDomainBox.

◆ reset()

virtual void sigraph::DomainBox::reset ( )
virtual

Réinitialise l'apprentissage (remet les stats à zéro)

Reimplemented from sigraph::AdapDomain.

Reimplemented in sigraph::InertialDomainBox.

References xmax(), xmin(), ymax(), ymin(), zmax(), and zmin().

◆ setDims()

void sigraph::DomainBox::setDims ( double xmin,
double ymin,
double zmin,
double xmax,
double ymax,
double zmax )
inline

Definition at line 103 of file domainBox.h.

References _xmax, _xmin, _ymax, _ymin, _zmax, _zmin, xmax(), xmin(), ymax(), ymin(), zmax(), and zmin().

◆ setGravityCenterAttribute()

void sigraph::DomainBox::setGravityCenterAttribute ( const std::string & att)

◆ talairach()

virtual void sigraph::DomainBox::talairach ( float & v1,
float & v2,
float & v3,
const Graph * g ) const
virtual

Transforme le vecteur {\tt (v1, v2, v3)} dans les coordonnées de Talairach (transformation dans le graphe {\tt g})

◆ xmax()

double sigraph::DomainBox::xmax ( ) const
inline

Definition at line 122 of file domainBox.h.

References _xmax.

Referenced by reset(), and setDims().

◆ xmin()

double sigraph::DomainBox::xmin ( ) const
inline

Definition at line 116 of file domainBox.h.

References _xmin.

Referenced by reset(), and setDims().

◆ ymax()

double sigraph::DomainBox::ymax ( ) const
inline

Definition at line 134 of file domainBox.h.

References _ymax.

Referenced by reset(), and setDims().

◆ ymin()

double sigraph::DomainBox::ymin ( ) const
inline

Definition at line 128 of file domainBox.h.

References _ymin.

Referenced by reset(), and setDims().

◆ zmax()

double sigraph::DomainBox::zmax ( ) const
inline

Definition at line 146 of file domainBox.h.

References _zmax.

Referenced by reset(), and setDims().

◆ zmin()

double sigraph::DomainBox::zmin ( ) const
inline

Definition at line 140 of file domainBox.h.

References _zmin.

Referenced by reset(), and setDims().

Member Data Documentation

◆ _gcattrib

std::string sigraph::DomainBox::_gcattrib
protected

Definition at line 84 of file domainBox.h.

Referenced by gravityCenterAttribute().

◆ _xmax

double sigraph::DomainBox::_xmax
protected

Definition at line 81 of file domainBox.h.

Referenced by canBeFound(), setDims(), and xmax().

◆ _xmin

double sigraph::DomainBox::_xmin
protected

Definition at line 78 of file domainBox.h.

Referenced by canBeFound(), setDims(), and xmin().

◆ _ymax

double sigraph::DomainBox::_ymax
protected

Definition at line 82 of file domainBox.h.

Referenced by canBeFound(), setDims(), and ymax().

◆ _ymin

double sigraph::DomainBox::_ymin
protected

Definition at line 79 of file domainBox.h.

Referenced by canBeFound(), setDims(), and ymin().

◆ _zmax

double sigraph::DomainBox::_zmax
protected

Definition at line 83 of file domainBox.h.

Referenced by canBeFound(), setDims(), and zmax().

◆ _zmin

double sigraph::DomainBox::_zmin
protected

Definition at line 80 of file domainBox.h.

Referenced by canBeFound(), setDims(), and zmin().


The documentation for this class was generated from the following file: