DGtal 1.3.0
|
Aim: The predicate on surfels that represents the frontier between a region and its complementary in an image. It can be used with ExplicitDigitalSurface or LightExplicitDigitalSurface so as to define a digital surface. Such surfaces may of course be open. More...
#include <DGtal/topology/helpers/BoundaryPredicate.h>
Public Types | |
typedef TKSpace | KSpace |
typedef TImage | Image |
typedef KSpace::Surfel | Surfel |
typedef KSpace::Point | Point |
typedef KSpace::SCell | SCell |
typedef Image::Value | Value |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CCellularGridSpaceND< TKSpace >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CConstImage< TImage >)) | |
BOOST_STATIC_ASSERT ((concepts::ConceptUtils::SameType< typename KSpace::Point, typename Image::Point >::value)) | |
~BoundaryPredicate () | |
BoundaryPredicate (ConstAlias< KSpace > aSpace, ConstAlias< Image > anImage, const Value &l1) | |
BoundaryPredicate (const BoundaryPredicate &other) | |
BoundaryPredicate & | operator= (const BoundaryPredicate &other) |
bool | operator() (const Surfel &s) const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Private Attributes | |
const KSpace * | myPtrSpace |
the cellular space where lies the image. More... | |
const Image * | myPtrImage |
Value | myLabel1 |
the label of the inner region that defines the boundary. More... | |
Aim: The predicate on surfels that represents the frontier between a region and its complementary in an image. It can be used with ExplicitDigitalSurface or LightExplicitDigitalSurface so as to define a digital surface. Such surfaces may of course be open.
Description of class 'BoundaryPredicate'
TKSpace | any model of cellular space |
TImage | any model of Image |
Definition at line 69 of file BoundaryPredicate.h.
typedef TImage DGtal::functors::BoundaryPredicate< TKSpace, TImage >::Image |
Definition at line 76 of file BoundaryPredicate.h.
typedef TKSpace DGtal::functors::BoundaryPredicate< TKSpace, TImage >::KSpace |
Definition at line 75 of file BoundaryPredicate.h.
typedef KSpace::Point DGtal::functors::BoundaryPredicate< TKSpace, TImage >::Point |
Definition at line 78 of file BoundaryPredicate.h.
typedef KSpace::SCell DGtal::functors::BoundaryPredicate< TKSpace, TImage >::SCell |
Definition at line 79 of file BoundaryPredicate.h.
typedef KSpace::Surfel DGtal::functors::BoundaryPredicate< TKSpace, TImage >::Surfel |
Definition at line 77 of file BoundaryPredicate.h.
typedef Image::Value DGtal::functors::BoundaryPredicate< TKSpace, TImage >::Value |
Definition at line 80 of file BoundaryPredicate.h.
DGtal::functors::BoundaryPredicate< TKSpace, TImage >::~BoundaryPredicate | ( | ) |
Destructor.
DGtal::functors::BoundaryPredicate< TKSpace, TImage >::BoundaryPredicate | ( | ConstAlias< KSpace > | aSpace, |
ConstAlias< Image > | anImage, | ||
const Value & | l1 | ||
) |
Constructor. The frontier will be defined only with the image domain. The space must be large enough to contain the boundary.
aSpace | a cellular grid space (referenced). |
anImage | any image (referenced). |
l1 | a label in the image that defines the inner region. |
DGtal::functors::BoundaryPredicate< TKSpace, TImage >::BoundaryPredicate | ( | const BoundaryPredicate< TKSpace, TImage > & | other | ) |
Copy constructor.
other | the object to clone. |
DGtal::functors::BoundaryPredicate< TKSpace, TImage >::BOOST_CONCEPT_ASSERT | ( | (concepts::CCellularGridSpaceND< TKSpace >) | ) |
DGtal::functors::BoundaryPredicate< TKSpace, TImage >::BOOST_CONCEPT_ASSERT | ( | (concepts::CConstImage< TImage >) | ) |
DGtal::functors::BoundaryPredicate< TKSpace, TImage >::BOOST_STATIC_ASSERT | ( | (concepts::ConceptUtils::SameType< typename KSpace::Point, typename Image::Point >::value) | ) |
bool DGtal::functors::BoundaryPredicate< TKSpace, TImage >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
bool DGtal::functors::BoundaryPredicate< TKSpace, TImage >::operator() | ( | const Surfel & | s | ) | const |
Predicate operator.
s | any surfel |
BoundaryPredicate & DGtal::functors::BoundaryPredicate< TKSpace, TImage >::operator= | ( | const BoundaryPredicate< TKSpace, TImage > & | other | ) |
Assignment. Required by CSurfelPredicate.
other | the object to clone. |
void DGtal::functors::BoundaryPredicate< TKSpace, TImage >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
the label of the inner region that defines the boundary.
Definition at line 153 of file BoundaryPredicate.h.
|
private |
Definition at line 151 of file BoundaryPredicate.h.
|
private |
the cellular space where lies the image.
Definition at line 149 of file BoundaryPredicate.h.