Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Exception using UMat

$
0
0
Hi, I've got a system exception using following code when ocl::setUseOpenCL(true);. Can you check it? Thanks in advance #include #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/core/core.hpp" #include "opencv2/core/ocl.hpp" #include #include #include 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; } videoio: Removing WinRT API headers by default General configuration for OpenCV 3.0.0-dev ===================================== Version control: 3.0.0-65-g945aa06 Platform: Host: Windows 6.2 AMD64 CMake: 3.3.0-rc1 CMake generator: Visual Studio 12 2013 Win64 CMake build tool: C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe MSVC: 1800 Other third-party libraries: Use IPP: 8.2.1 [8.2.1] at: F:/lib/opencv/3rdparty/ippicv/unpack/ippicv_win Use IPP Async: NO Use Eigen: NO Use Cuda: NO Use OpenCL: YES OpenCL: Version: dynamic Include path: F:/lib/opencv/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO -----------------------------------------------------------------

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>