@@ -60,12 +60,14 @@ CV_EXPORTS void subtract(InputArray src1, InputArray src2, OutputArray dst, Inpu
60
60
// ! computes element-wise weighted product of the two arrays (dst = scale * src1 * src2)
61
61
CV_EXPORTS void multiply (InputArray src1, InputArray src2, OutputArray dst, double scale = 1 , int dtype = -1 , Stream& stream = Stream::Null());
62
62
63
- // ! computes element-wise weighted quotient of the two arrays (c = a / b)
64
- CV_EXPORTS void divide (const GpuMat& a, const GpuMat& b, GpuMat& c, double scale = 1 , int dtype = -1 , Stream& stream = Stream::Null());
65
- // ! computes element-wise weighted quotient of matrix and scalar (c = a / s)
66
- CV_EXPORTS void divide (const GpuMat& a, const Scalar& sc, GpuMat& c, double scale = 1 , int dtype = -1 , Stream& stream = Stream::Null());
63
+ // ! computes element-wise weighted quotient of the two arrays (dst = scale * (src1 / src2))
64
+ CV_EXPORTS void divide (InputArray src1, InputArray src2, OutputArray dst, double scale = 1 , int dtype = -1 , Stream& stream = Stream::Null());
65
+
67
66
// ! computes element-wise weighted reciprocal of an array (dst = scale/src2)
68
- CV_EXPORTS void divide (double scale, const GpuMat& b, GpuMat& c, int dtype = -1 , Stream& stream = Stream::Null());
67
+ static inline void divide (double src1, InputArray src2, OutputArray dst, int dtype = -1 , Stream& stream = Stream::Null())
68
+ {
69
+ divide (src1, src2, dst, 1.0 , dtype, stream);
70
+ }
69
71
70
72
// ! computes the weighted sum of two arrays (dst = alpha*src1 + beta*src2 + gamma)
71
73
CV_EXPORTS void addWeighted (const GpuMat& src1, double alpha, const GpuMat& src2, double beta, double gamma, GpuMat& dst,
0 commit comments