DGtal 1.4.0
|
Aim: Define a simple Foreground predicate thresholding image values given a single thresold. More precisely, the functor operator() returns true if the value is greater than a given threshold. More...
#include <DGtal/images/SimpleThresholdForegroundPredicate.h>
Public Types | |
typedef Image::Value | Value |
typedef Image::Point | Point |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CConstImage< Image >)) | |
SimpleThresholdForegroundPredicate (ConstAlias< Image > aImage, const Value value) | |
bool | operator() (const typename Image::Point &aPoint) const |
bool | operator() (const typename Image::Domain::ConstIterator &it) const |
bool | operator() (const typename Image::ConstRange::ConstIterator &it) const |
Protected Member Functions | |
SimpleThresholdForegroundPredicate () | |
Private Attributes | |
const Image * | myImage |
Value | myVal |
Aim: Define a simple Foreground predicate thresholding image values given a single thresold. More precisely, the functor operator() returns true if the value is greater than a given threshold.
Description of template class 'SimpleThresholdForegroundPredicate'
This class is a model of concepts::CPointPredicate.
Image | an model of CConstImage concept. |
Definition at line 65 of file SimpleThresholdForegroundPredicate.h.
typedef Image::Point DGtal::functors::SimpleThresholdForegroundPredicate< Image >::Point |
Definition at line 71 of file SimpleThresholdForegroundPredicate.h.
typedef Image::Value DGtal::functors::SimpleThresholdForegroundPredicate< Image >::Value |
Definition at line 70 of file SimpleThresholdForegroundPredicate.h.
|
inline |
Constructor. This functor can be used to threshold image values greater (>) than value.
aImage | the image. |
value | the threshold value. |
Definition at line 80 of file SimpleThresholdForegroundPredicate.h.
|
protected |
DGtal::functors::SimpleThresholdForegroundPredicate< Image >::BOOST_CONCEPT_ASSERT | ( | (concepts::CConstImage< Image >) | ) |
|
inline |
Definition at line 103 of file SimpleThresholdForegroundPredicate.h.
References DGtal::functors::SimpleThresholdForegroundPredicate< Image >::myVal.
|
inline |
Definition at line 95 of file SimpleThresholdForegroundPredicate.h.
References DGtal::functors::SimpleThresholdForegroundPredicate< Image >::myImage, and DGtal::functors::SimpleThresholdForegroundPredicate< Image >::myVal.
|
inline |
Definition at line 87 of file SimpleThresholdForegroundPredicate.h.
References aPoint(), DGtal::functors::SimpleThresholdForegroundPredicate< Image >::myImage, and DGtal::functors::SimpleThresholdForegroundPredicate< Image >::myVal.
|
private |
Definition at line 110 of file SimpleThresholdForegroundPredicate.h.
Referenced by DGtal::functors::SimpleThresholdForegroundPredicate< Image >::operator()(), and DGtal::functors::SimpleThresholdForegroundPredicate< Image >::operator()().
|
private |
Definition at line 111 of file SimpleThresholdForegroundPredicate.h.
Referenced by DGtal::functors::SimpleThresholdForegroundPredicate< Image >::operator()(), DGtal::functors::SimpleThresholdForegroundPredicate< Image >::operator()(), and DGtal::functors::SimpleThresholdForegroundPredicate< Image >::operator()().