这些包括我正在使用的
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc_c.h>
using namespace cv;
error C3861: 'matchTemplate': identifier not found
最佳答案
您需要包含imgproc.hpp,其中包含的仅具有C版本:cvMatchTemplate
https://stackoverflow.com/questions/8446659/