33#include "DGtal/base/Common.h"
34#include "DGtal/helpers/StdDefs.h"
35#include "DGtal/kernel/BasicPointPredicates.h"
36#include "DGtal/images/ImageSelector.h"
51template <
typename Po
intFunctor1,
typename Predicate1,
typename Po
intFunctor2,
typename Predicate2>
69 typedef typename PointFunctor1::Point
Point;
89int main(
int argc,
char** argv )
91 trace.beginBlock (
"Testing PointPredicate Concepts" );
92 trace.info() <<
"Args:";
93 for (
int i = 0; i < argc; ++i )
94 trace.info() <<
" " << argv[ i ];
99 using IntPredicate = std::function<bool(
int)>;
101 using FloatPredicate = std::function<bool(
float)>;
104 trace.emphase() << ( res ?
"Passed." :
"Error." ) << endl;
89int main(
int argc,
char** argv ) {
…}
Aim: Gathers several functions useful for concept checks.
functors namespace gathers all DGtal functors.
DGtal is the top-level namespace which contains all DGtal functions and types.
ImageContainerBySTLVector< Domain, Value > Type
Aim: Defines a predicate on a point.
Aim: The predicate returns true when the given binary functor returns true for the two PointPredicate...
Aim: The predicate returns true when the point given as argument equals the reference point given at ...
Aim: The predicate that returns always false.
Aim: The predicate returns true when the point is below (or equal) the given upper bound.
Aim: The predicate returns true when the point is above (or equal) the given lower bound.
Aim: The predicate returns true when the point is within the given bounds.
Aim: The predicate returns true when the point predicate given at construction return false....
Aim: The predicate returns true when the predicate returns true for the value assigned to a given poi...
Aim: The predicate that returns always true.
bool testPointPredicateConcepts()