Static Public Member Functions |
static bool | implementation (I &aImg, S &aSet, const typename D::Point &aPoint, const V &aValue) |
Detailed Description
template<typename I, typename S, typename D, typename V>
struct InsertAndSetValue< I, S, D, V >
Definition at line 163 of file ImageHelper.ih.
Member Function Documentation
template<typename I , typename S , typename D , typename V >
static bool InsertAndSetValue< I, S, D, V >::implementation |
( |
I & |
aImg, |
|
|
S & |
aSet, |
|
|
const typename D::Point & |
aPoint, |
|
|
const V & |
aValue |
|
) |
| |
|
inlinestatic |
Definition at line 165 of file ImageHelper.ih.
Referenced by DGtal::insertAndSetValue().
{
bool found = true;
if ( aSet.find( aPoint ) == aSet.end() )
{
found = false;
aSet.insert( aPoint );
aImg.setValue( aPoint, aValue );
}
return !found;
}
The documentation for this struct was generated from the following file: