ocl: compare with scalar
[profile/ivi/opencv.git] / modules / core / src / opencl / arithm.cl
index 865b433..d1ef96d 100644 (file)
 #elif defined OP_CMP
 #define srcT2 srcT1
 #define convertToWT1
-#define PROCESS_ELEM storedst(convertToDT(srcelem1 CMP_OPERATOR srcelem2 ? (dstT)(255) : (dstT)(0)))
+#define PROCESS_ELEM storedst((dstT)(srcelem1 CMP_OPERATOR srcelem2 ? (dstT)(255) : (dstT)(0)))
 
 #elif defined OP_CONVERT_SCALE_ABS
 #undef EXTRA_PARAMS