2
我正在使用OpenCV C++庫,但我沒有設法創建一個DescriptorExtractor
對象。 這裏是我做過什麼:OpenCV如何創建一個DescriptorExtractor對象
Mat img = imread("testOrb.jpg",CV_LOAD_IMAGE_UNCHANGED);
std::vector<KeyPoint> kp;
cv::Ptr<cv::ORB> detector = cv::ORB::create();
detector->detect(img, kp)
//this part works
DescriptorExtractor descriptorExtractor;
Mat descriptors;
descriptorExtractor.compute(img, kp, descriptors);
//when these 3 lines are added, an error is thrown
但我有以下錯誤信息:
OpenCV Error: The function/feature is not implemented() in detectAndCompute, file ...
解決它,謝謝! – rocketer