DGtal
0.6.devel
Main Page
Related Pages
Modules
Namespaces
Data Structures
Examples
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
src
DGtal
images
imagesSetsUtils
SetFromImage.ih
1
30
31
#include <cstdlib>
33
35
// IMPLEMENTATION of inline methods.
37
38
39
40
41
template
<
typename
Set>
42
template
<
typename
Image,
typename
ForegroundPredicate>
43
inline
44
void
45
DGtal::SetFromImage<Set>::append
(
Set
&aSet,
46
const
ForegroundPredicate &isForeground,
47
typename
Image::Domain::ConstIterator
itBegin,
48
typename
Image::Domain::ConstIterator
itEnd)
49
{
50
//BOOST_CONCEPT_ASSERT(( CImage<Image> ));
51
52
for
( ; itBegin != itEnd; ++itBegin)
53
if
(isForeground(*itBegin))
54
aSet.insert( *itBegin);
55
}
56
Generated on Wed Dec 19 2012 19:10:34 for DGtal by
1.8.1.1