From b20714a8a84523efc3cca21b56d9e8f643c5f9f2 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 12 Dec 2013 02:42:24 +0400 Subject: [PATCH] fixed kernel compilation of cv::min, cv::max for CV_64F --- modules/core/src/arithm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/arithm.cpp b/modules/core/src/arithm.cpp index bcd11d256..359d27222 100644 --- a/modules/core/src/arithm.cpp +++ b/modules/core/src/arithm.cpp @@ -937,10 +937,10 @@ static bool ocl_binary_op(InputArray _src1, InputArray _src2, OutputArray _dst, char opts[1024]; int kercn = haveMask || haveScalar ? cn : 1; - sprintf(opts, "-D %s%s -D %s -D dstT=%s", + sprintf(opts, "-D %s%s -D %s -D dstT=%s%s", (haveMask ? "MASK_" : ""), (haveScalar ? "UNARY_OP" : "BINARY_OP"), oclop2str[oclop], bitwise ? ocl::memopTypeToStr(CV_MAKETYPE(srcdepth, kercn)) : - ocl::typeToStr(CV_MAKETYPE(srcdepth, kercn))); + ocl::typeToStr(CV_MAKETYPE(srcdepth, kercn)), doubleSupport ? " -D DOUBLE_SUPPORT" : ""); ocl::Kernel k("KF", ocl::core::arithm_oclsrc, opts); if( k.empty() )