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 >
71 ResultType &
takeResult( ResultRcType & d ) {
return d; }
75 template<
typename T >
86 ResultType &
takeResult( ResultRcType & d ) {
return *d; }
90 template<
typename T >
inline 106 for ( z=0; z<dz; z++ )
107 for ( y=0; y<dy; y++ )
108 for ( x=0; x<dx; x++ )
109 if( ( label = d( x, y, z ) ) )
121 template<
typename T >
inline 138 for( ibm=d.begin(); ibm!=ebm; ++ibm )
141 for( ib=ibm->second.begin(), eb=ibm->second.end(); ib!=eb; ++ib )
171 for( ibm=d.begin(); ibm!=ebm; ++ibm )
174 for( ib=ibm->second.begin(), eb=ibm->second.end(); ib!=eb; ++ib )
AimsData< int16_t > ResultRcType
AimsData< int16_t > ResultType
void computeLocalCCNumbers(const Point3d &, int)
ResultType & takeResult(ResultRcType &d)
virtual ~TopologicalClassifier()
aims::BucketMap< int16_t > ResultType
virtual ~TopologicalClassifier()
static int classification(int, int)
std::map< Point3d, T, BucketMapLess > Bucket
ResultRcType doit(const T &)
carto::rc_ptr< aims::BucketMap< int16_t > > ResultRcType
void setSizeXYZT(float sizex, float sizey, float sizez, float sizet)
virtual ~TopologicalClassifier()
ResultType & takeResult(ResultRcType &d)
std::map< int, Bucket >::const_iterator const_iterator
ResultType & takeResult(ResultRcType &d)
void setSizeXYZT(float sizex=1.0f, float sizey=1.0f, float sizez=1.0f, float sizet=1.0f)