fixed kernel compilation of cv::min, cv::max for CV_64F
This commit is contained in:
parent
f3e2bfea79
commit
b20714a8a8
@ -937,10 +937,10 @@ static bool ocl_binary_op(InputArray _src1, InputArray _src2, OutputArray _dst,
|
|||||||
|
|
||||||
char opts[1024];
|
char opts[1024];
|
||||||
int kercn = haveMask || haveScalar ? cn : 1;
|
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],
|
(haveMask ? "MASK_" : ""), (haveScalar ? "UNARY_OP" : "BINARY_OP"), oclop2str[oclop],
|
||||||
bitwise ? ocl::memopTypeToStr(CV_MAKETYPE(srcdepth, kercn)) :
|
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);
|
ocl::Kernel k("KF", ocl::core::arithm_oclsrc, opts);
|
||||||
if( k.empty() )
|
if( k.empty() )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user