35 #ifndef AIMS_TOPOLOGY_TOPOLOGY_H 36 #define AIMS_TOPOLOGY_TOPOLOGY_H 61 template<
class T >
inline 68 template<
class T >
inline 79 for ( z=0; z<dz; z++ )
80 for ( y=0; y<dy; y++ )
81 for ( x=0; x<dx; x++ )
82 _data( x, y, z ) = d( x, y, z );
86 _data.fillBorder( (T)0 );
90 template<
class T >
inline 93 if ( pt[0] > 0 && pt[1] > 0 && pt[2] > 0 && pt[0] < _data.dimX()-1 &&
94 pt[1] < _data.dimY()-1 && pt[2] < _data.dimZ()-1 )
101 for (
int i=1; i<27; i++ )
104 *xptr++ = ( _data( dep ) == (T)label );
111 template<
class T >
inline 114 if ( pt[0] > 0 && pt[1] > 0 && pt[2] > 0 && pt[0] < _data.dimX()-1 &&
115 pt[1] < _data.dimY()-1 && pt[2] < _data.dimZ()-1 )
123 for (
int i=1; i<27; i++ )
127 *xptr++ = ( temp == (T)lb1 ) || ( temp == (T)lb2 );
134 template<
class T >
inline 137 if ( pt[0] > 0 && pt[1] > 0 && pt[2] > 0 && pt[0] < _data.dimX()-1 &&
138 pt[1] < _data.dimY()-1 && pt[2] < _data.dimZ()-1 )
145 for (
int i=1; i<27; i++ )
148 *xptr++ = ( _data( dep ) != (T)label );
void fillNeighborhoodComplement(const Point3d &, int)
Topology(const AimsData< T > &)
void fillNeighborhood(const Point3d &, int)
const Point3d & deplacement(int i) const