42 #ifndef VPPLANAROBJECTDETECTOR_H_
43 #define VPPLANAROBJECTDETECTOR_H_
45 #include <visp/vpConfig.h>
47 #if (VISP_HAVE_OPENCV_VERSION >= 0x020000) // Require opencv >= 2.0.0
49 #if (VISP_HAVE_OPENCV_VERSION >= 0x020101) // Require opencv >= 2.1.1
50 # include <opencv2/imgproc/imgproc.hpp>
51 # include <opencv2/features2d/features2d.hpp>
52 # include <opencv2/calib3d/calib3d.hpp>
53 #elif (VISP_HAVE_OPENCV_VERSION >= 0x020000) // Require opencv >= 2.0.0
58 #include <visp/vpImagePoint.h>
59 #include <visp/vpImage.h>
60 #include <visp/vpRect.h>
61 #include <visp/vpImagePoint.h>
62 #include <visp/vpPoint.h>
63 #include <visp/vpHomogeneousMatrix.h>
64 #include <visp/vpCameraParameters.h>
65 #include <visp/vpHomography.h>
66 #include <visp/vpFernClassifier.h>
185 unsigned int height,
unsigned int width);
192 const vpImagePoint &iP,
const unsigned int height,
const unsigned int width);
195 void recordDetector(
const std::string& objectName,
const std::string& dataFile);
196 void load(
const std::string& dataFilename,
const std::string& objName);
210 std::vector<vpImagePoint> getDetectedCorners()
const;
242 void getReferencePoint(
const unsigned int _i,
vpImagePoint& _imPoint);
273 void computeRoi(
vpImagePoint* ip,
const unsigned int nbpt);
274 void initialiseRefCorners(
const cv::Rect& _modelROI);