opencv特征匹配器 我正在使用OpenCV并将其添加到C++项目中。但是,我在特征匹配方面有一个问题。代码如下: cv::Ptr<Feature2D> f2d = xfeatures2d::SIFT::create(); std::vector<KeyPoint> keypoints_1, keypoints_2; Mat descriptors_1, descriptors_2; f2d->detectAndCompute(img_Org_Y_mat, Mat(), keypoints_1, descriptors_1); f2d->detectAndCompute(img_Rec_Y_mat, Mat(), keypoints_2, descriptors_2); vector<DMatch> matches; BFMatcher matcher(NORM_L2); matcher.match(descriptors_1, descriptors_2, matches);

opencv特征匹配器 我正在使用OpenCV并将其添加到C++项目中。但是,我在特征匹配方面有一个问题。代码如下: cv::Ptr<Feature2D> f2d = xfeatures2d::SIFT::create(); std::vector<KeyPoint> keypoints_1, keypoints_2; Mat descriptors_1, descriptors_2; f2d->detectAndCompute(img_Org_Y_mat, Mat(), keypoints_1, descriptors_1); f2d->detectAndCompute(img_Rec_Y_mat, Mat(), keypoints_2, descriptors_2); vector<DMatch> matches; BFMatcher matcher(NORM_L2); matcher.match(descriptors_1, descriptors_2, matches);,c++,opencv,feature-extraction,C++,Opencv,Feature Extraction,它在程序中写道: Unhandled exception at 0x00007FF803FA9E08 in TAppEncoder.exe: Microsoft C++ exception: cv::Exception at memory location 0x000000CE624E9050. 我也遇到了这个问题。我已经解决了这个问题,但我不确定这个解决方案是否适合这个问题。我将分享我的解决方案 我错误地将发布模型中需要的一些.lib文件(如opencv_bgsegm341.lib)添加到

它在程序中写道:

Unhandled exception at 0x00007FF803FA9E08 in TAppEncoder.exe: Microsoft C++ 
exception: cv::Exception at memory location 0x000000CE624E9050.

我也遇到了这个问题。我已经解决了这个问题,但我不确定这个解决方案是否适合这个问题。我将分享我的解决方案

我错误地将发布模型中需要的一些.lib文件(如opencv_bgsegm341.lib)添加到“附加依赖项”中

删除它们后,程序运行成功


我希望这会对你有所帮助

我也遇到了这个问题。我已经解决了这个问题,但我不确定这个解决方案是否适合这个问题。我将分享我的解决方案

我错误地将发布模型中需要的一些.lib文件(如opencv_bgsegm341.lib)添加到“附加依赖项”中

删除它们后,程序运行成功


我希望这会对你有所帮助

此错误表示通常是matcher.match的第四个参数的掩码与imageCount的大小不同。由于您并没有将任何内容作为掩码传递,所以我假定您要么在删除该参数后忘记重新编译项目,要么使用旧版本的opencv。你用的是哪个版本的opencv?我用的是opencv 3.3,我对面具一无所知。我将其更改为noArray或Mat(),但仍然存在问题。此错误表示通常是matcher.match的第四个参数的掩码与imageCount的大小不同。由于您并没有将任何内容作为掩码传递,所以我假定您要么在删除该参数后忘记重新编译项目,要么使用旧版本的opencv。你用的是哪个版本的opencv?我用的是opencv 3.3,我对面具一无所知。我将其更改为noArray或Mat(),但仍然存在问题。
Unhandled exception at 0x00007FF803FA9E08 in TAppEncoder.exe: Microsoft C++ 
exception: cv::Exception at memory location 0x000000CE624E9050.