35 #ifndef AIMS_TOPOLOGY_TOPOCLASSIFIER_H
36 #define AIMS_TOPOLOGY_TOPOCLASSIFIER_H
45 template<
typename T >
55 ResultRcType
doit(
const T & );
56 ResultType &
takeResult( ResultRcType & d ) {
return d; }
60 template<
typename T >
75 template<
typename T >
90 template<
typename T >
inline
107 for ( z=0; z<dz; z++ )
108 for ( y=0; y<dy; y++ )
109 for ( x=0; x<dx; x++ )
110 if( ( label = d( x, y, z ) ) )
122 template<
typename T >
inline
139 for( ibm=d.begin(); ibm!=ebm; ++ibm )
142 for( ib=ibm->second.begin(), eb=ibm->second.end(); ib!=eb; ++ib )
172 for( ibm=d.begin(); ibm!=ebm; ++ibm )
175 for( ib=ibm->second.begin(), eb=ibm->second.end(); ib!=eb; ++ib )
void computeLocalCCNumbers(const Point3d &, int)
static int classification(int, int)
aims::BucketMap< int16_t > ResultType
virtual ~TopologicalClassifier()
carto::rc_ptr< aims::BucketMap< int16_t > > ResultRcType
ResultType & takeResult(ResultRcType &d)
virtual ~TopologicalClassifier()
carto::VolumeRef< int16_t > ResultType
carto::VolumeRef< int16_t > ResultRcType
ResultType & takeResult(ResultRcType &d)
virtual ~TopologicalClassifier()
ResultType & takeResult(ResultRcType &d)
ResultRcType doit(const T &)
void setSizeXYZT(float sizex, float sizey, float sizez, float sizet)
std::map< Point3d, T, BucketMapLess > Bucket
std::map< int, Bucket >::const_iterator const_iterator
void setVoxelSize(float vx, float vy=1., float vz=1., float vt=1.)
std::vector< float > getVoxelSize() const
std::vector< int > getSize() const