DGtal
1.5.beta
|
Aim: The predicate on surfels that represents the frontier between two regions 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/FrontierPredicate.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)) | |
~FrontierPredicate () | |
FrontierPredicate (ConstAlias< KSpace > aSpace, ConstAlias< Image > anImage, const Value &l1, const Value &l2) | |
FrontierPredicate (const FrontierPredicate &other) | |
FrontierPredicate & | operator= (const FrontierPredicate &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 frontier. More... | |
Value | myLabel2 |
the label of the outer region that defines the frontier. More... | |
Aim: The predicate on surfels that represents the frontier between two regions 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 'FrontierPredicate'
TKSpace | any model of cellular space |
TImage | any model of Image |
Definition at line 67 of file FrontierPredicate.h.
typedef TImage DGtal::functors::FrontierPredicate< TKSpace, TImage >::Image |
Definition at line 74 of file FrontierPredicate.h.
typedef TKSpace DGtal::functors::FrontierPredicate< TKSpace, TImage >::KSpace |
Definition at line 73 of file FrontierPredicate.h.
typedef KSpace::Point DGtal::functors::FrontierPredicate< TKSpace, TImage >::Point |
Definition at line 76 of file FrontierPredicate.h.
typedef KSpace::SCell DGtal::functors::FrontierPredicate< TKSpace, TImage >::SCell |
Definition at line 77 of file FrontierPredicate.h.
typedef KSpace::Surfel DGtal::functors::FrontierPredicate< TKSpace, TImage >::Surfel |
Definition at line 75 of file FrontierPredicate.h.
typedef Image::Value DGtal::functors::FrontierPredicate< TKSpace, TImage >::Value |
Definition at line 78 of file FrontierPredicate.h.
DGtal::functors::FrontierPredicate< TKSpace, TImage >::~FrontierPredicate | ( | ) |
Destructor.
DGtal::functors::FrontierPredicate< TKSpace, TImage >::FrontierPredicate | ( | ConstAlias< KSpace > | aSpace, |
ConstAlias< Image > | anImage, | ||
const Value & | l1, | ||
const Value & | l2 | ||
) |
Constructor. The frontier will be defined only with the image domain. The space must be large enough to contain the frontier.
aSpace | a cellular grid space (referenced). |
anImage | any image (referenced). |
l1 | a label in the image that defines the inner region. |
l2 | a label in the image that defines the outer region. |
DGtal::functors::FrontierPredicate< TKSpace, TImage >::FrontierPredicate | ( | const FrontierPredicate< TKSpace, TImage > & | other | ) |
Copy constructor.
other | the object to clone. |
DGtal::functors::FrontierPredicate< TKSpace, TImage >::BOOST_CONCEPT_ASSERT | ( | (concepts::CCellularGridSpaceND< TKSpace >) | ) |
DGtal::functors::FrontierPredicate< TKSpace, TImage >::BOOST_CONCEPT_ASSERT | ( | (concepts::CConstImage< TImage >) | ) |
DGtal::functors::FrontierPredicate< TKSpace, TImage >::BOOST_STATIC_ASSERT | ( | (concepts::ConceptUtils::SameType< typename KSpace::Point, typename Image::Point >::value) | ) |
bool DGtal::functors::FrontierPredicate< TKSpace, TImage >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
bool DGtal::functors::FrontierPredicate< TKSpace, TImage >::operator() | ( | const Surfel & | s | ) | const |
Predicate operator.
s | any surfel |
FrontierPredicate& DGtal::functors::FrontierPredicate< TKSpace, TImage >::operator= | ( | const FrontierPredicate< TKSpace, TImage > & | other | ) |
Assignment. Required by CSurfelPredicate.
other | the object to clone. |
void DGtal::functors::FrontierPredicate< 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 frontier.
Definition at line 152 of file FrontierPredicate.h.
|
private |
the label of the outer region that defines the frontier.
Definition at line 154 of file FrontierPredicate.h.
|
private |
Definition at line 150 of file FrontierPredicate.h.
|
private |
the cellular space where lies the image.
Definition at line 148 of file FrontierPredicate.h.