31 #if defined(SimpleThresholdForegroundPredicate_RECURSES)
32 #error Recursive header files inclusion detected in SimpleThresholdForegroundPredicate.h
33 #else // defined(SimpleThresholdForegroundPredicate_RECURSES)
35 #define SimpleThresholdForegroundPredicate_RECURSES
37 #if !defined SimpleThresholdForegroundPredicate_h
39 #define SimpleThresholdForegroundPredicate_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/images/CConstImage.h"
46 #include "DGtal/base/ConstAlias.h"
64 template <
typename Image>
105 return ((*it) >
myVal);
125 #endif // !defined SimpleThresholdForegroundPredicate_h
127 #undef SimpleThresholdForegroundPredicate_RECURSES
128 #endif // else defined(SimpleThresholdForegroundPredicate_RECURSES)
bool operator()(const typename Image::Point &aPoint) const
Aim: This class encapsulates its parameter class so that to indicate to the user that the object/poin...
SimpleThresholdForegroundPredicate()
BOOST_CONCEPT_ASSERT((concepts::CConstImage< Image >))
std::vector< Value >::const_iterator ConstIterator
DGtal is the top-level namespace which contains all DGtal functions and types.
SimpleThresholdForegroundPredicate(ConstAlias< Image > aImage, const Value value)
Aim: implements association bewteen points lying in a digital domain and values.
bool operator()(const typename Image::ConstRange::ConstIterator &it) const
bool operator()(const typename Image::Domain::ConstIterator &it) const
Aim: Defines the concept describing a read-only image, which is a refinement of CPointFunctor.
Aim: Define a simple Foreground predicate thresholding image values given a single thresold....