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?
You only need to '#include "core/core.hpp"`
The compiler needs to be able to find the include files, do you have
Opencv/Include
in the compiler's include directory list? Did it give any error about finding core.hpp?