OpenCL Errors in the Console when using Stitcher OpenGL 3
I am trying to use the code below to create a panorama. img1 and img2 are coming from 2 cameras and I know that they both contain data (that they're not NULL). The code compiles and runs. However, when I run the code, I get the error in the attached image. I have no clue what's going on. Does anyone have any ideas? I'd appreciate the help!
vector<<Mat>Mat> imgs;
imgs.push_back(img1);
imgs.push_back(img2);
Mat pano;
Stitcher stitcher = Stitcher::createDefault(true);
Stitcher::Status status = stitcher.stitch(imgs, pano);
if (status != Stitcher::OK)
{
cout << "Can't stitch images, error code = " << int(status) << endl;
return -1;
}
The error that appears in the console
I have no idea why my image is not showing up...but the error says "OpenCL program build lop: -D depth=0 -D PIX_PER_WI_Y=4 ....Error, line 14118: compile failed."
May be you can check some trivial error like img1 or img2 are empty, check image depth. After you can try samples/cpp/stitching.cpp to see if you ve got same error. Please give full error message.