Hi,
I've got a system exception using following code when ocl::setUseOpenCL(true);. Can you check it?
Thanks in advance
#include <opencv2/opencv.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/core/core.hpp"
#include "opencv2/core/ocl.hpp"
#include <iostream>
#include <map>
#include <fstream>
using namespace cv;
using namespace std;
int main(int argc, char **argv)
{
UMat imUMat = UMat::zeros(256,256, CV_8U); // type of mask is CV_8U
Mat imMat = Mat::zeros(256,256, CV_8U); // type of mask is CV_8U
Rect r(0,0,10,10);
imMat(r) = 255;
imUMat(r) = 255;
r = Rect(0,0,0,0);
imMat(r) = 255;
ocl::setUseOpenCL(false);
imUMat(r) = 255;
ocl::setUseOpenCL(true);
imUMat(r) = 255;
return 0;
}