1. identifier “CV_GRAY2RGB” is undefined
添加 #include <opencv2/imgproc/types_c.h>
2. error : namespace “cv::cuda” has no member “remap”
#include <opencv2/cudawarping.hpp>
3. error : identifier “CV_INTER_LINEAR” is undefined
#include<opencv2/imgproc/imgproc_c.h>
4. error C2065: ‘CV_RETR_EXTERNAL’: undeclared identifier, error C2065: ‘CV_CHAIN_APPROX_NONE’: undeclared identifier error, error C2065: ‘CV_RANSAC’: undeclared identifier, error C2065: ‘CV_FILLED’: undeclared identifier
#include<opencv2/imgproc/imgproc_c.h>
opencv4部分取消了CV_前缀
CV_RETR_EXTERNAL->RETR_EXTERNAL
CV_CHAIN_APPROX_NONE->CHAIN_APPROX_NONE
CV_RANSAC->RANSAC
CV_FILLED-> FILLED
5. error C2065: ‘CV_AA’: undeclared identifier
#include <opencv2/imgproc/imgproc_c.h>
6. error : namespace “cv::cuda” has no member “split”
#include <opencv2/cudaarithm.hpp>
参考链接