31 #if defined(SurfelNeighborhood_RECURSES) 32 #error Recursive header files inclusion detected in SurfelNeighborhood.h 33 #else // defined(SurfelNeighborhood_RECURSES) 35 #define SurfelNeighborhood_RECURSES 37 #if !defined SurfelNeighborhood_h 39 #define SurfelNeighborhood_h 44 #include "DGtal/base/Common.h" 45 #include "DGtal/topology/SurfelAdjacency.h" 67 template <
typename TKSpace>
113 const SCell & aSurfel );
214 template <
typename SpelSet>
239 template <
typename DigitalSet>
241 const DigitalSet & obj,
270 template <
typename Po
intPredicate>
272 const PointPredicate & pp,
299 template <
typename SurfelPredicate>
301 const SurfelPredicate & sp,
353 template <
typename T>
355 operator<< ( std::ostream & out, const SurfelNeighborhood<T> & object );
362 #include "DGtal/topology/SurfelNeighborhood.ih" 367 #endif // !defined SurfelNeighborhood_h 369 #undef SurfelNeighborhood_RECURSES 370 #endif // else defined(SurfelNeighborhood_RECURSES)
SCell follower1(Dimension track_dir, bool pos) const
unsigned int getAdjacentOnPointPredicate(SCell &adj_surfel, const PointPredicate &pp, Dimension track_dir, bool pos) const
SCell innerAdjacentSpel(Dimension track_dir, bool pos) const
DGtal::uint32_t Dimension
Aim: This helper class is useful to compute the neighboring surfels of a given surfel, especially over a digital surface or over an object boundary. Two signed surfels are incident if they share a common n-2 cell. This class uses a SurfelAdjacency so as to determine adjacent surfels (either looking for them from interior to exterior or inversely).
void selfDisplay(std::ostream &out) const
unsigned int getAdjacentOnSpelSet(SCell &adj_surfel, const SpelSet &obj, Dimension track_dir, bool pos) const
unsigned int getAdjacentOnSurfelPredicate(SCell &adj_surfel, const SurfelPredicate &sp, Dimension track_dir, bool pos) const
SCell follower3(Dimension track_dir, bool pos) const
Dimension orthDir() const
void init(const KSpace *space, const SurfelAdjacency< KSpace::dimension > *adj, const SCell &aSurfel)
const SurfelAdjacency< KSpace::dimension > * mySurfelAdj
SCell outerAdjacentSpel(Dimension track_dir, bool pos) const
DGtal is the top-level namespace which contains all DGtal functions and types.
SCell follower2(Dimension track_dir, bool pos) const
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value...
const SCell & surfel() const
unsigned int getAdjacentOnDigitalSet(SCell &adj_surfel, const DigitalSet &obj, Dimension track_dir, bool pos) const
void setSurfel(const SCell &aSurfel)
SurfelNeighborhood & operator=(const SurfelNeighborhood &other)