43 #ifndef vpFernClassifier_H
44 #define vpFernClassifier_H
46 #include <visp/vpConfig.h>
50 #if (VISP_HAVE_OPENCV_VERSION >= 0x020000) // Require opencv >= 2.0.0
51 #if (VISP_HAVE_OPENCV_VERSION >= 0x020101) // Require opencv >= 2.1.1
52 # include <opencv2/imgproc/imgproc.hpp>
53 # include <opencv2/features2d/features2d.hpp>
54 # include <opencv2/legacy/legacy.hpp>
55 #elif (VISP_HAVE_OPENCV_VERSION >= 0x020000) // Require opencv >= 2.0.0
60 #include <visp/vpBasicKeyPoint.h>
243 std::vector<cv::Point2f>
refPt, curPt;
248 vpFernClassifier(
const std::string& _dataFile,
const std::string& _objectName);
255 const unsigned int height,
const unsigned int width);
263 const unsigned int height,
const unsigned int width);
274 void load(
const std::string& _dataFile,
const std::string& );
275 void record(
const std::string& _objectName,
const std::string& _dataFile);
287 inline void setBlurSettings(
const bool _blur,
int _sigma,
int _size);
317 const std::vector<cv::Point2f>&
getRefPt()
const {
return refPt;}
324 const std::vector<cv::Point2f>&
getCurPt()
const {
return curPt;}