In OpenCV 2.4.3, I am trying to delcare one GPU matrix in this way:
cv::VideoCapture video;
video.open("sample.avi");
cv::Mat source;
for ( int n = 0; n < 500; n ++ )
{
video >> source;
cv::gpu::GpuMat gpuMat ( source );
}
Then I got the following error for the gpu matrix declaration:
Error: incomplete type is not allowed
What mistake did I make here? Thanks.
Usually this is associated with missing an include statement. Double check all the necessary includes are present.