I have very simple program to use cv::Mat_, and I found a compiling error, it took a lot of time to figure out that I had problem with specific type of integer. I think it might be a bug in OpenCV. Can any one help me to understand the error? Thank you very much in advance!!!!!
I am using Visual Studio Community 2019. The codes as follows:
#include <opencv2/core.hpp>
#ifdef _DEBUG#pragma comment(lib, "opencv_core411d.lib")#else#pragma comment(lib, "opencv_core411.lib")#endifint main() { cv::Mat_<cv::Vec<int, 3>> mat1;//This is OK cv::Mat_<cv::Vec<uint, 3>> mat2;//This causes compiling error. This is also for unsigned int cv::Mat_<cv::Vec3i> mat3; //This is OK }