31#if defined(FrontierPredicate_RECURSES)
32#error Recursive header files inclusion detected in FrontierPredicate.h
35#define FrontierPredicate_RECURSES
37#if !defined FrontierPredicate_h
39#define FrontierPredicate_h
44#include "DGtal/base/Common.h"
45#include "DGtal/base/ConstAlias.h"
46#include "DGtal/images/CConstImage.h"
47#include "DGtal/topology/CCellularGridSpaceND.h"
66 template <
typename TKSpace,
typename TImage>
171 template <
typename TKSpace,
typename TImage>
182#include "DGtal/topology/helpers/FrontierPredicate.ih"
189#undef FrontierPredicate_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 two regions in an image....
void selfDisplay(std::ostream &out) const
FrontierPredicate(const FrontierPredicate &other)
FrontierPredicate & operator=(const FrontierPredicate &other)
BOOST_CONCEPT_ASSERT((concepts::CCellularGridSpaceND< TKSpace >))
BOOST_STATIC_ASSERT((concepts::ConceptUtils::SameType< typename KSpace::Point, typename Image::Point >::value))
bool operator()(const Surfel &s) const
BOOST_CONCEPT_ASSERT((concepts::CConstImage< TImage >))
const KSpace * myPtrSpace
the cellular space where lies the image.
Value myLabel1
the label of the inner region that defines the frontier.
FrontierPredicate(ConstAlias< KSpace > aSpace, ConstAlias< Image > anImage, const Value &l1, const Value &l2)
Value myLabel2
the label of the outer region that defines the frontier.
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.