aimsalgo 6.0.0
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, int verbose)
 
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.
 

Function Documentation

◆ AimsMeshFilterConnectedComponent()

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.

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 374 of file meshcc_d.h.

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

◆ AimsMeshLabelConnectedComponent()

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

◆ AimsMeshLabelConnectedComponent2Texture()

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

◆ AimsMeshLabelNbConnectedComponent()