Commit fa78459c authored by bitwangyaoyao's avatar bitwangyaoyao

fix ocl/match_template compiling error on Linux

parent 6bc060fd
......@@ -105,7 +105,7 @@ namespace cv { namespace ocl
if (depth == CV_8U) return 300;
break;
case CV_TM_SQDIFF:
if (depth == CV_32F) return MAXSHORT; // do naive SQDIFF for CV_32F
if (depth == CV_32F) return 0x7fffffff; // do naive SQDIFF for CV_32F
if (depth == CV_8U) return 300;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment