DGtal 2.1.0
Loading...
Searching...
No Matches
Binarizer< T > Struct Template Reference

[Functor] More...

Public Member Functions

 Binarizer (T v)
 
Binarizeroperator= (Binarizer const &)=delete
 
bool operator() (T v) const
 

Data Fields

threshold
 

Detailed Description

template<typename T>
struct Binarizer< T >

[Functor]

[Returning a FunctorHolder]

Definition at line 91 of file exampleFunctorHolder.cpp.

Constructor & Destructor Documentation

◆ Binarizer()

template<typename T >
Binarizer< T >::Binarizer ( v)
inlineexplicit

Definition at line 94 of file exampleFunctorHolder.cpp.

Member Function Documentation

◆ operator()()

template<typename T >
bool Binarizer< T >::operator() ( v) const
inline

Definition at line 96 of file exampleFunctorHolder.cpp.

96{ return v <= threshold; }

References Binarizer< T >::threshold.

◆ operator=()

template<typename T >
Binarizer & Binarizer< T >::operator= ( Binarizer< T > const &  )
delete

Field Documentation

◆ threshold

template<typename T >
T Binarizer< T >::threshold

Definition at line 93 of file exampleFunctorHolder.cpp.

Referenced by Binarizer< T >::operator()().


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