DGtal 1.3.0
|
#include <DGtal/images/ImageHelper.h>
Public Types | |
typedef Image::Point | Point |
typedef TValue | Value |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CConstImage< Image >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CPointPredicate< PointPredicate >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CQuantity< Value >)) | |
ImageToConstantFunctor (ConstAlias< Image > anImage, ConstAlias< PointPredicate > aPointPred, Value aVal=NumberTraits< Value >::ONE, bool reverseValues=false) | |
Value | operator() (const Point &aPoint) const |
Private Attributes | |
const Image * | myImage |
const pointor to an image More... | |
const PointPredicate * | myPointPred |
const pointor to a predicate on points More... | |
Value | myVal |
constant value when functor answer true. More... | |
bool | reverse |
reverse values returned by the predicate. (Some shapes consider inner as > 0, others as < 0) More... | |
Create a Point Functor from a Point Predicate and an Image.
Image | a model of CImage. |
PointPredicate | a model of concepts::CPointPredicate. |
TValue | a model of CQuantity. Type return by the functor. |
Definition at line 347 of file ImageHelper.h.
typedef Image::Point DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::Point |
Definition at line 351 of file ImageHelper.h.
typedef TValue DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::Value |
Definition at line 352 of file ImageHelper.h.
|
inline |
[in] | anImage | image |
[in] | aPointPred | predicate on points |
[in] | aVal | const value when functor answer true. |
[in] | reverseValues | used to reverse values returned by the predicate. (Some shapes consider inner as > 0, others as < 0) |
Definition at line 373 of file ImageHelper.h.
DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::BOOST_CONCEPT_ASSERT | ( | (concepts::CConstImage< Image >) | ) |
DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::BOOST_CONCEPT_ASSERT | ( | (concepts::CPointPredicate< PointPredicate >) | ) |
DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::BOOST_CONCEPT_ASSERT | ( | (concepts::CQuantity< Value >) | ) |
|
inline |
[in] | aPoint | point to evaluate. |
Definition at line 389 of file ImageHelper.h.
References aPoint(), DGtal::Image< TImageContainer >::domain(), DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::myImage, DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::myPointPred, DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::myVal, and DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::reverse.
|
private |
const pointor to an image
Definition at line 425 of file ImageHelper.h.
Referenced by DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::operator()().
|
private |
const pointor to a predicate on points
Definition at line 428 of file ImageHelper.h.
Referenced by DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::operator()().
|
private |
constant value when functor answer true.
Definition at line 431 of file ImageHelper.h.
Referenced by DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::operator()().
|
private |
reverse values returned by the predicate. (Some shapes consider inner as > 0, others as < 0)
Definition at line 434 of file ImageHelper.h.
Referenced by DGtal::ImageToConstantFunctor< Image, PointPredicate, TValue >::operator()().