DGtal
0.6.devel
|
#include <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_STATIC_ASSERT ((ConceptUtils::SameType< typename KSpace::Point, typename Image::Point >::value)) | |
~BoundaryPredicate () | |
BoundaryPredicate (const KSpace &aSpace, const 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 |
const Image * | myPtrImage |
Value | myLabel1 |
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'
KSpace | any model of cellular space |
TImage | any model of Image |
Definition at line 65 of file BoundaryPredicate.h.
typedef TImage DGtal::BoundaryPredicate< TKSpace, TImage >::Image |
Definition at line 70 of file BoundaryPredicate.h.
typedef TKSpace DGtal::BoundaryPredicate< TKSpace, TImage >::KSpace |
Definition at line 69 of file BoundaryPredicate.h.
typedef KSpace::Point DGtal::BoundaryPredicate< TKSpace, TImage >::Point |
Definition at line 72 of file BoundaryPredicate.h.
typedef KSpace::SCell DGtal::BoundaryPredicate< TKSpace, TImage >::SCell |
Definition at line 73 of file BoundaryPredicate.h.
typedef KSpace::Surfel DGtal::BoundaryPredicate< TKSpace, TImage >::Surfel |
Definition at line 71 of file BoundaryPredicate.h.
typedef Image::Value DGtal::BoundaryPredicate< TKSpace, TImage >::Value |
Definition at line 74 of file BoundaryPredicate.h.
|
inline |
|
inline |
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. |
Definition at line 51 of file BoundaryPredicate.ih.
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 60 of file BoundaryPredicate.ih.
DGtal::BoundaryPredicate< TKSpace, TImage >::BOOST_STATIC_ASSERT | ( | (ConceptUtils::SameType< typename KSpace::Point, typename Image::Point >::value) | ) |
|
inline |
Checks the validity/consistency of the object.
Definition at line 109 of file BoundaryPredicate.ih.
|
inline |
Predicate operator.
s | any surfel |
Definition at line 84 of file BoundaryPredicate.ih.
|
inline |
Assignment. Required by CSurfelPredicate.
other | the object to clone. |
Definition at line 69 of file BoundaryPredicate.ih.
References DGtal::BoundaryPredicate< TKSpace, TImage >::myLabel1, DGtal::BoundaryPredicate< TKSpace, TImage >::myPtrImage, and DGtal::BoundaryPredicate< TKSpace, TImage >::myPtrSpace.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 100 of file BoundaryPredicate.ih.
|
private |
the label of the inner region that defines the boundary.
Definition at line 147 of file BoundaryPredicate.h.
Referenced by DGtal::BoundaryPredicate< TKSpace, TImage >::operator=().
|
private |
Definition at line 145 of file BoundaryPredicate.h.
Referenced by DGtal::BoundaryPredicate< TKSpace, TImage >::operator=().
|
private |
the cellular space where lies the image.
Definition at line 143 of file BoundaryPredicate.h.
Referenced by DGtal::BoundaryPredicate< TKSpace, TImage >::operator=().