From fa78459c56b5af0993f474969d1a89f9c9b75c9f Mon Sep 17 00:00:00 2001 From: bitwangyaoyao Date: Sat, 11 Aug 2012 13:10:43 +0800 Subject: [PATCH] fix ocl/match_template compiling error on Linux --- modules/ocl/src/match_template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ocl/src/match_template.cpp b/modules/ocl/src/match_template.cpp index ad31b00c68..4b50903b17 100644 --- a/modules/ocl/src/match_template.cpp +++ b/modules/ocl/src/match_template.cpp @@ -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; }