21 #ifndef _real_to_discrete_h
22 #define _real_to_discrete_h
26 template<
class Classifier>
31 typedef Classifier FeatureType;
40 const char *
str()
const {
return Classifier::name; }
43 static std::string
signature() {
return Classifier::signature() +
"-discrete"; }
48 inline int classify(
const unsigned int *pIntImage,
int stride)
const
50 return ((Classifier::classify(pIntImage, stride) ) > 0.0) ? 1 : -1;
54 inline int operator()(
const unsigned int *pIntImage,
int stride)
const
static std::string signature()
signature name is the name of provider (for simplicity)
Definition: RealToDiscrete.h:43
int classify(const unsigned int *pIntImage, int stride) const
Definition: RealToDiscrete.h:48
Definition: RealToDiscrete.h:27
const char * str() const
return the "feature" name (for debug purpose)
Definition: RealToDiscrete.h:40
int operator()(const unsigned int *pIntImage, int stride) const
classify wrapper.
Definition: RealToDiscrete.h:54