imread函数读取图像出现“未定义标识符”报错的解决方法
#include"opencv2/imgproc/imgproc_c.h"
#include"opencv2/highgui/highgui_c.h"
......
const Mat srcImage = imread("D:\\AIPCV\\imagell.jpg");
严重性 代码 说明 项目 文件 行 禁止显示状态 错误(活动) E0020 未定义标识符 “imread” Harris D:\VS\ccmiao\Harris\harris.cpp 11
#include"opencv2/imgproc/imgproc_c.h"
#include"opencv2/highgui/highgui_c.h"
改为
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"