I want to create a matrice in opencv for my project of raytracing. This is the code I have come up:
#include "Windows.h"
#include "core/mat.hpp"
#include "core/core.hpp"
#include "core/types_c.h"
using namespace cv;
Mat createImage()
{
Mat b(480, 640, CV_8UC3);
return b;
}
And I have problem with the two Mat. It says variable has incomplete type "cv::Mat"
. I can't understand what it means. I always wrote only Mat nothing else.
Can someone help me please?
#include "opencv2/core/core.hpp"
, skip all other headers (especially the windows.h one). – Houseraising