1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

make the sparse method give correct results on CPU ocl

Add CL_CPU to supportsFeature check
simplify the logic of pyrlk
This commit is contained in:
yao
2013-04-03 13:23:04 +08:00
parent 656594ad4f
commit fd4a6f0af0
5 changed files with 307 additions and 501 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ namespace cv
static Context* getContext();
static void setContext(Info &oclinfo);
enum {CL_DOUBLE, CL_UNIFIED_MEM};
enum {CL_DOUBLE, CL_UNIFIED_MEM, CL_CPU};
bool supportsFeature(int ftype);
size_t computeUnits();
void* oclContext();