From 3696174b149c5a20af7fe89485583626194db4d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Kr=C3=A4mer?= Date: Tue, 8 Oct 2013 16:49:20 +0200 Subject: [PATCH] fix documentation warning --- modules/ocl/doc/operations_on_matrices.rst | 2 +- modules/ocl/src/arithm.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ocl/doc/operations_on_matrices.rst b/modules/ocl/doc/operations_on_matrices.rst index 6c6df90..7efd719 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 ef89755..3015912 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) -- 2.7.4