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