diff --git a/modules/ocl/doc/operations_on_matrices.rst b/modules/ocl/doc/operations_on_matrices.rst index 6c6df9023..7efd71967 100644 --- a/modules/ocl/doc/operations_on_matrices.rst +++ b/modules/ocl/doc/operations_on_matrices.rst @@ -7,7 +7,7 @@ ocl::abs ------------------ Returns void -.. ocv:function:: void ocl::absdiff(const oclMat& src, oclMat& dst) +.. ocv:function:: void ocl::abs(const oclMat& src, oclMat& dst) :param src: input array. diff --git a/modules/ocl/src/arithm.cpp b/modules/ocl/src/arithm.cpp index ef89755a1..301591269 100644 --- a/modules/ocl/src/arithm.cpp +++ b/modules/ocl/src/arithm.cpp @@ -219,10 +219,10 @@ void cv::ocl::max(const oclMat &src1, const oclMat &src2, oclMat &dst) /////////////////////////////Abs, Absdiff //////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// -void cv::ocl::abs(const oclMat &src1, oclMat &dst) +void cv::ocl::abs(const oclMat &src, oclMat &dst) { // explicitly uses use_scalar (even if zero) so that the correct kernel is used - arithmetic_run_generic(src1, oclMat(), Scalar(), oclMat(), dst, ABS, true); + arithmetic_run_generic(src, oclMat(), Scalar(), oclMat(), dst, ABS, true); } void cv::ocl::absdiff(const oclMat &src1, const oclMat &src2, oclMat &dst)