2 #ifndef vpdt_gaussian_detector_h_ 3 #define vpdt_gaussian_detector_h_ 19 template <
class gaussian_type>
31 typedef typename gaussian_type::field_type
F;
41 bool operator() (
const gaussian_type& g,
const F& sample,
bool& result)
const 52 #endif // vpdt_gaussian_detector_h_ bool operator()(const gaussian_type &g, const F &sample, bool &result) const
The main function.
A simple Mahalanobis distance detector for a Gaussian.
vpdt_gaussian_mthresh_detector(const T &thresh=T(2.5))
Constructor.
static const unsigned int return_dim
the functor return type.
vpdt_field_traits< F >::scalar_type T
define the scalar type (normally specified by template parameter T).
gaussian_type::field_type F
the data type to represent a point in the field.
bool return_type
the functor return type.
specialized template trait classes for properties of a field type
The field traits class (scalar).
gaussian_type distribution_type
the distribution operated on by the detector.
T sqr_threshold
the threshold on Mahalanobis distance.