CL_INVALID_COMMAND_QUEUE with running meanshift

asked 2014-07-18 18:38:57 -0500

Vahid gravatar image

updated 2014-07-19 11:04:30 -0500

Hi there,

I have a simple program to apply menashift on some images, but after some tries i get this error, any help appreciate it.

OpenCV Error: Gpu API call (CL_INVALID_COMMAND_QUEUE) in openCLMemcpy2D, file /tmp/buildd/ros-hydro-opencv2-2.4.9-2precise-20140617-1410/modules/ocl/src/cl_operations.cpp, line 232

this is my code:

/// Applying MeanShift
cv::ocl::oclMat ocl_image;
cv::Mat res_mean;

// Converting to CV_8UC4
cv::Mat _img_conv;
cvtColor( _img , _img_conv , CV_BGR2BGRA );

ocl_image.upload(_img_conv);

cv::ocl::meanShiftSegmentation( ocl_image , res_mean , _sp , _sr , _mean_size );
//cv::ocl::finish();
edit retag flag offensive close merge delete