aimsalgo  5.1.2
Neuroimaging image processing
meshcc_d.h File Reference
#include <aims/connectivity/meshcc.h>
#include <aims/distancemap/meshvoronoi.h>
#include <cstdlib>
#include <map>
#include <set>
#include <stack>
Include dependency graph for meshcc_d.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
Texture< T > AimsMeshLabelConnectedComponent (const AimsSurface< 3, Void > &mesh, const Texture< T > &inittex, T threshold, int mode)
 
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 cc_label, const T &background, unsigned long ncomp, unsigned long min_npts, float min_surf)
 Split label "label" into connected components, then filter smaller ones out. 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 >
Texture<T> AimsMeshLabelConnectedComponent ( const AimsSurface< 3, Void > &  mesh,
const Texture< T > &  inittex,
threshold,
int  mode 
)

◆ 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 
)