aimsdata 6.0.0
Neuroimaging data handling
aims::Tex2Graph< T > Class Template Reference

#include <aims/mesh/tex2graph.h>

Collaboration diagram for aims::Tex2Graph< T >:

Public Member Functions

 Tex2Graph ()
 
virtual ~Tex2Graph ()
 
void fillLabel2index (const Texture< T > &)
 
int getIndex (const T &label)
 
void makeGraph (Graph &g, const AimsSurfaceTriangle &mesh, const Texture< T > &tex, float epsilon=0.01)
 Fills graph g from texture of labels tex on the mesh mesh.
 
void makeGraph (Graph &g, const AimsSurfaceTriangle &mesh, const Texture< T > &tex, const std::map< T, std::string > &lab2name, float epsilon=0.01)
 
int getIndex (const std::set< short > &label)
 
void fillLabel2index (const Texture< std::set< short > > &tex)
 

Public Attributes

std::map< T, int > label2index
 Fills graph g from texture of labels tex on the mesh mesh.
 

Detailed Description

template<class T>
class aims::Tex2Graph< T >

Definition at line 50 of file tex2graph.h.

Constructor & Destructor Documentation

◆ Tex2Graph()

template<class T>
aims::Tex2Graph< T >::Tex2Graph ( )

Referenced by fillLabel2index(), and getIndex().

◆ ~Tex2Graph()

template<class T>
virtual aims::Tex2Graph< T >::~Tex2Graph ( )
virtual

Member Function Documentation

◆ fillLabel2index() [1/2]

void aims::Tex2Graph< std::set< short > >::fillLabel2index ( const Texture< std::set< short > > & tex)
inline

Definition at line 71 of file tex2graph_d.h.

References fillLabel2index(), label2index, and Tex2Graph().

◆ fillLabel2index() [2/2]

template<class T>
void aims::Tex2Graph< T >::fillLabel2index ( const Texture< T > & )
inline

Definition at line 51 of file tex2graph_d.h.

Referenced by fillLabel2index(), makeGraph(), and makeGraph().

◆ getIndex() [1/2]

int aims::Tex2Graph< std::set< short > >::getIndex ( const std::set< short > & label)
inline

Definition at line 63 of file tex2graph_d.h.

References getIndex(), label2index, and Tex2Graph().

◆ getIndex() [2/2]

template<class T>
int aims::Tex2Graph< T >::getIndex ( const T & label)
inline

Definition at line 56 of file tex2graph_d.h.

Referenced by getIndex(), makeGraph(), and makeGraph().

◆ makeGraph() [1/2]

template<class T>
void aims::Tex2Graph< T >::makeGraph ( Graph & g,
const AimsSurfaceTriangle & mesh,
const Texture< T > & tex,
const std::map< T, std::string > & lab2name,
float epsilon = 0.01 )
inline

◆ makeGraph() [2/2]

Member Data Documentation

◆ label2index

template<class T>
std::map<T,int> aims::Tex2Graph< T >::label2index

Fills graph g from texture of labels tex on the mesh mesh.

Definition at line 65 of file tex2graph.h.

Referenced by fillLabel2index(), and getIndex().


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