Skip to content

what opencv version is it compatible with? #13

Description

@AndreV84
:~/realsense-pointcloud/build$ make -j8
Scanning dependencies of target rs-pcl
[ 50%] Building CXX object CMakeFiles/rs-pcl.dir/src/main.cpp.o
In file included from /home/agx/realsense-pointcloud/src/main.cpp:30:0:
/home/agx/realsense-pointcloud/src/capture_opencv.hpp: In function ‘std::pair<std::vector<cv::KeyPoint>, cv::Mat> get_keypoints(int, cv::Mat)’:
/home/agx/realsense-pointcloud/src/capture_opencv.hpp:31:30: error: ‘SiftFeatureDetector’ is not a member of ‘cv::xfeatures2d’
     cv::Ptr<cv::xfeatures2d::SiftFeatureDetector> detector = cv::xfeatures2d::SiftFeatureDetector::create();
                              ^~~~~~~~~~~~~~~~~~~
/home/agx/realsense-pointcloud/src/capture_opencv.hpp:31:30: note: suggested alternative: ‘SurfFeatureDetector’
     cv::Ptr<cv::xfeatures2d::SiftFeatureDetector> detector = cv::xfeatures2d::SiftFeatureDetector::create();
                              ^~~~~~~~~~~~~~~~~~~
                              SurfFeatureDetector
/home/agx/realsense-pointcloud/src/capture_opencv.hpp:31:30: error: ‘SiftFeatureDetector’ is not a member of ‘cv::xfeatures2d’
/home/agx/realsense-pointcloud/src/capture_opencv.hpp:31:30: note: suggested alternative: ‘SurfFeatureDetector’
     cv::Ptr<cv::xfeatures2d::SiftFeatureDetector> detector = cv::xfeatures2d::SiftFeatureDetector::create();
                              ^~~~~~~~~~~~~~~~~~~
                              SurfFeatureDetector
/home/agx/realsense-pointcloud/src/capture_opencv.hpp:31:49: error: template argument 1 is invalid
     cv::Ptr<cv::xfeatures2d::SiftFeatureDetector> detector = cv::xfeatures2d::SiftFeatureDetector::create();
                                                 ^
/home/agx/realsense-pointcloud/src/capture_opencv.hpp:31:79: error: ‘cv::xfeatures2d::SiftFeatureDetector’ has not been declared
     cv::Ptr<cv::xfeatures2d::SiftFeatureDetector> detector = cv::xfeatures2d::SiftFeatureDetector::create();
                                                                               ^~~~~~~~~~~~~~~~~~~
/home/agx/realsense-pointcloud/src/capture_opencv.hpp:37:13: error: base operand of ‘->’ is not a pointer
     detector->detectAndCompute(input, noArray(), keypoints, descriptors);
             ^~
CMakeFiles/rs-pcl.dir/build.make:81: recipe for target 'CMakeFiles/rs-pcl.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/rs-pcl.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:94: recipe for target 'CMakeFiles/rs-pcl.dir/all' failed
make[1]: *** [CMakeFiles/rs-pcl.dir/all] Error 2
Makefile:102: recipe for target 'all' failed
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions