31#if defined(BoundaryPredicate_RECURSES)
32#error Recursive header files inclusion detected in BoundaryPredicate.h
35#define BoundaryPredicate_RECURSES
37#if !defined BoundaryPredicate_h
39#define BoundaryPredicate_h
44#include <boost/array.hpp>
46#include "DGtal/base/Common.h"
47#include "DGtal/base/ConstAlias.h"
48#include "DGtal/images/CConstImage.h"
49#include "DGtal/topology/CCellularGridSpaceND.h"
68 template <
typename TKSpace,
typename TImage>
170 template <
typename TKSpace,
typename TImage>
181#include "DGtal/topology/helpers/BoundaryPredicate.ih"
188#undef BoundaryPredicate_RECURSES
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
Aim: The predicate on surfels that represents the frontier between a region and its complementary in ...
void selfDisplay(std::ostream &out) const
BoundaryPredicate(ConstAlias< KSpace > aSpace, ConstAlias< Image > anImage, const Value &l1)
BOOST_STATIC_ASSERT((concepts::ConceptUtils::SameType< typename KSpace::Point, typename Image::Point >::value))
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TImage >))
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< TKSpace >))
BoundaryPredicate & operator=(const BoundaryPredicate &other)
BoundaryPredicate(const BoundaryPredicate &other)
Value myLabel1
the label of the inner region that defines the boundary.
const KSpace * myPtrSpace
the cellular space where lies the image.
bool operator()(const Surfel &s) const
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)
Represents a signed cell in a cellular grid space by its Khalimsky coordinates and a boolean value.
Aim: This concept describes a cellular grid space in nD. In these spaces obtained by cartesian produc...
Aim: Defines the concept describing a read-only image, which is a refinement of CPointFunctor.