use mutex provided by opencv itself

add getoclcontext and getoclcommandqueue so that other opencl program can interactive with opencv ocl module
correct haar test cases
add face detection sample
This commit is contained in:
niko
2012-08-31 14:08:52 +08:00
parent 11e16a7204
commit 6f6e990988
8 changed files with 416 additions and 428 deletions

View File

@@ -88,7 +88,10 @@ namespace cv
//CV_EXPORTS void getComputeCapability(cl_device_id device, int &major, int &minor);
//optional function, if you want save opencl binary kernel to the file, set its path
CV_EXPORTS void setBinpath(const char *path);
//The two functions below are used to get opencl runtime so that opencv can interactive with
//other opencl program
CV_EXPORTS void* getoclContext();
CV_EXPORTS void* getoclCommandQueue();
//////////////////////////////// Error handling ////////////////////////
CV_EXPORTS void error(const char *error_string, const char *file, const int line, const char *func);