SLIP  1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
slip::binarize_fun< InType, OutType > Struct Template Reference

Functor object used to binarize a value. More...

#include <threshold.hpp>

Public Member Functions

 binarize_fun (const InType &t_value, const OutType &false_value, const OutType &true_value)
 
OutType operator() (const InType &val)
 

Public Attributes

InType t_value_
 
OutType false_value_
 
OutType true_value_
 

Detailed Description

template<typename InType, typename OutType>
struct slip::binarize_fun< InType, OutType >

Functor object used to binarize a value.

Author
Benoit Tremblais <tremblais_AT_sic.univ-poitiers.fr>
Date
2006/09/13
Version
0.0.1
Parameters
t_valueThreshold value
false_valueFalse return value
true_valueTrue return value

Definition at line 97 of file threshold.hpp.

Constructor & Destructor Documentation

template<typename InType , typename OutType >
slip::binarize_fun< InType, OutType >::binarize_fun ( const InType &  t_value,
const OutType &  false_value,
const OutType &  true_value 
)
inline

Definition at line 99 of file threshold.hpp.

Member Function Documentation

template<typename InType , typename OutType >
OutType slip::binarize_fun< InType, OutType >::operator() ( const InType &  val)
inline

Definition at line 107 of file threshold.hpp.

Member Data Documentation

template<typename InType , typename OutType >
OutType slip::binarize_fun< InType, OutType >::false_value_

Definition at line 113 of file threshold.hpp.

template<typename InType , typename OutType >
InType slip::binarize_fun< InType, OutType >::t_value_

Definition at line 112 of file threshold.hpp.

template<typename InType , typename OutType >
OutType slip::binarize_fun< InType, OutType >::true_value_

Definition at line 114 of file threshold.hpp.


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