Ask Your Question

NTT's profile - activity

2019-12-18 16:23:22 -0600 commented answer cv::Mat_ compiling error

That makes sense! Thank you very much! The problem is for cv::Mat, but it is fine for cv::Vec, eg.: cv::Vec

2019-12-18 16:21:34 -0600 commented answer cv::Mat_ compiling error

That makes sense! Thank you very much! The problem is for cv::Mat, but it is fine for cv::Vec, eg.: cv::Vec

2019-12-18 02:28:24 -0600 marked best answer cv::Mat_ compiling error

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")
    
#endif

int 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
}
2019-12-17 22:32:30 -0600 asked a question cv::Mat_ compiling error

cv::Mat_ compiling error I have very simple program to use cv::Mat_, and I found a compiling error, it took a lot of tim