|
- Mat img = imread("test.jpg",1);
- Ptr<FastFeatureDetector>detector = FastFeatureDetector::create();
- vector<KeyPoint> keypoints1;
- detector->detect(img, keypoints1);
- Mat descriptors1;
- detector->compute(img, keypoints1, descriptors1);
- Mat img_keypoints1;
- drawKeypoints(img, keypoints1, img_keypoints1, Scalar::all(-1));
- imshow("Box_in_scene keyPoints", img_keypoints1);
复制代码
编译时vs2017显示compute那里Exception thrown at 0x00007FFA01ABA388 in test.exe: Microsoft C++ exception: cv::Exception at memory location 0x00000013B08FF180.Unhandled exception at 0x00007FFA01ABA388 in test.exe: Microsoft C++ exception: cv::Exception at memory location 0x00000013B08FF180.
OpenCV(4.0.1) Error: The function/feature is not implemented () in cv::Feature2D::detectAndCompute
怎么解决??????????
|
|