33 #include "DGtal/base/Common.h"
34 #include "DGtal/helpers/StdDefs.h"
35 #include "DGtal/kernel/BasicPointPredicates.h"
36 #include "DGtal/images/ImageSelector.h"
40 using namespace DGtal;
51 template <
typename Po
intFunctor1,
typename Predicate1,
typename Po
intFunctor2,
typename Predicate2>
62 typedef std::logical_and<bool> BinaryFunctor;
89 int main(
int argc,
char** argv )
93 for (
int i = 0; i < argc; ++i )
99 using IntPredicate = std::function<bool(
int)>;
101 using FloatPredicate = std::function<bool(
float)>;
102 res &= testPointPredicateConcepts<IntImage, IntPredicate, FloatImage, FloatPredicate>();
104 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
void beginBlock(const std::string &keyword="")
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.
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 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.
int main(int argc, char **argv)
bool testPointPredicateConcepts()