A.I.M.S


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. More...
 
void makeGraph (Graph &g, const AimsSurfaceTriangle &mesh, const Texture< T > &tex, const std::map< T, std::string > &lab2name, float epsilon=0.01)
 
template<>
int getIndex (const std::set< short > &label)
 
template<>
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. More...
 

Detailed Description

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

Definition at line 50 of file tex2graph.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 51 of file tex2graph_d.h.

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

Definition at line 71 of file tex2graph_d.h.

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

Definition at line 63 of file tex2graph_d.h.

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

Definition at line 56 of file tex2graph_d.h.

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

Member Data Documentation

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.


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