aimsalgo  5.1.2
Neuroimaging image processing
meshcc.h File Reference
#include <aims/config/aimsalgo_config.h>
#include <aims/mesh/texture.h>
#include <aims/mesh/surface.h>
#include <map>
#include <set>
Include dependency graph for meshcc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
AIMSALGO_API Texture< T > AimsMeshLabelConnectedComponent (const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, T threshold, int mode=1)
 
template<class T >
unsigned AimsMeshLabelNbConnectedComponent (const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, const T lab)
 
template<class T >
Texture< T > AimsMeshLabelConnectedComponent2Texture (const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, T threshold)
 
template<class T >
Texture< T > AimsMeshFilterConnectedComponent (const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, T label, const T &background=0, unsigned long ncomp=1, unsigned long min_npts=0, float min_surf=0.)
 Split label "label" into connected components, then filter smaller ones out. More...
 

Variables

const int FORBIDDEN = -1
 hum, should not be there as a global, non-namespaced variable... More...
 

Function Documentation

◆ AimsMeshFilterConnectedComponent()

template<class T >
Texture<T> AimsMeshFilterConnectedComponent ( const AimsSurface< 3, Void > &  mesh,
const Texture< T > &  inittex,
label,
const T &  background = 0,
unsigned long  ncomp = 1,
unsigned long  min_npts = 0,
float  min_surf = 0. 
)

Split label "label" into connected components, then filter smaller ones out.

Original values are left unchanged, except for filtered out regions which will be given the label "background" (0 by default).

Filtering can keep the "ncomp" largest components, and suppress regions with fewer than "min_npts" vertices, and regions under the surface area "min_surf". If any of these criterions is 0, then filtering for this criterion doesn't happen.

Definition at line 367 of file meshcc_d.h.

References ASSERT, FORBIDDEN, Texture< class >::item(), Texture< class >::nItem(), AimsSurface< D, class >::polygon(), Texture< class >::push_back(), Texture< class >::reserve(), and AimsSurface< D, class >::vertex().

◆ AimsMeshLabelConnectedComponent()

template<class T >
AIMSALGO_API Texture<T> AimsMeshLabelConnectedComponent ( const AimsSurface< 3, Void > &  mesh,
const Texture< T > &  inittex,
threshold,
int  mode = 1 
)

◆ AimsMeshLabelConnectedComponent2Texture()

template<class T >
Texture<T> AimsMeshLabelConnectedComponent2Texture ( const AimsSurface< 3, Void > &  mesh,
const Texture< T > &  inittex,
threshold 
)

◆ AimsMeshLabelNbConnectedComponent()

template<class T >
unsigned AimsMeshLabelNbConnectedComponent ( const AimsSurface< 3, Void > &  mesh,
const Texture< T > &  inittex,
const T  lab 
)

Variable Documentation

◆ FORBIDDEN

const int FORBIDDEN = -1

hum, should not be there as a global, non-namespaced variable...

Definition at line 78 of file meshcc.h.

Referenced by AimsMeshFilterConnectedComponent(), AimsMeshLabelConnectedComponent(), AimsMeshLabelConnectedComponent2Texture(), and AimsMeshLabelNbConnectedComponent().