DGtal  0.9.4beta
Public Types | Public Member Functions | Protected Member Functions | Private Attributes
DGtal::functors::IntervalForegroundPredicate< Image > Class Template Reference

#include <DGtal/images/IntervalForegroundPredicate.h>

Collaboration diagram for DGtal::functors::IntervalForegroundPredicate< Image >:
[legend]

Public Types

typedef Image::Value Value
 
typedef Image::Point Point
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((concepts::CConstImage< Image >))
 
 IntervalForegroundPredicate (ConstAlias< Image > aImage, const Value minVal, const Value maxVal)
 
bool operator() (const typename Image::Point &aPoint) const
 
bool operator() (const typename Image::ConstRange::ConstIterator &it) const
 

Protected Member Functions

 IntervalForegroundPredicate ()
 

Private Attributes

const ImagemyImage
 
Value myMaxVal
 
Value myMinVal
 

Detailed Description

template<typename Image>
class DGtal::functors::IntervalForegroundPredicate< Image >

Aim: Define a simple Foreground predicate thresholding image values between two constant values (the first one being excluded).

Description of template class 'IntervalForegroundPredicate'

This class is a model of concepts::CPointPredicate.

Template Parameters
Imagean model of CImageContainer concept.
Examples:
geometry/surfaces/dvcm-3d.cpp.

Definition at line 64 of file IntervalForegroundPredicate.h.

Member Typedef Documentation

Definition at line 70 of file IntervalForegroundPredicate.h.

Definition at line 69 of file IntervalForegroundPredicate.h.

Constructor & Destructor Documentation

template<typename Image>
DGtal::functors::IntervalForegroundPredicate< Image >::IntervalForegroundPredicate ( ConstAlias< Image aImage,
const Value  minVal,
const Value  maxVal 
)
inline

Constructor. This functor can be used to threshold image values in the interval ]minVal,maxVal].

Parameters
aImagethe image.
minValthe minimum value (first value excluded).
maxValthe maximum value (last value considered).

Definition at line 80 of file IntervalForegroundPredicate.h.

Member Function Documentation

template<typename Image>
DGtal::functors::IntervalForegroundPredicate< Image >::BOOST_CONCEPT_ASSERT ( (concepts::CConstImage< Image >)  )
template<typename Image>
bool DGtal::functors::IntervalForegroundPredicate< Image >::operator() ( const typename Image::Point aPoint) const
inline
template<typename Image>
bool DGtal::functors::IntervalForegroundPredicate< Image >::operator() ( const typename Image::ConstRange::ConstIterator it) const
inline

Field Documentation

template<typename Image>
const Image* DGtal::functors::IntervalForegroundPredicate< Image >::myImage
private
template<typename Image>
Value DGtal::functors::IntervalForegroundPredicate< Image >::myMaxVal
private
template<typename Image>
Value DGtal::functors::IntervalForegroundPredicate< Image >::myMinVal
private

The documentation for this class was generated from the following file: