From 047be13c1cb58eaea200fbd0e5dee6a77b9d6ae2 Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Mon, 31 Jan 2011 14:58:51 +0000 Subject: [PATCH] added docs for absSum function --- doc/gpu_matrix_reductions.tex | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/gpu_matrix_reductions.tex b/doc/gpu_matrix_reductions.tex index 8ec955f59..fd7867329 100644 --- a/doc/gpu_matrix_reductions.tex +++ b/doc/gpu_matrix_reductions.tex @@ -41,20 +41,32 @@ Returns sum of matrix elements. Scalar sum(const GpuMat\& src, GpuMat\& buf);} \begin{description} -\cvarg{src}{Source image of any depth except \texttt{CV\_64F}, single-channel.} +\cvarg{src}{Source image of any depth except \texttt{CV\_64F}.} \cvarg{buf}{Optional buffer to avoid extra memory allocations. It's resized automatically.} \end{description} See also: \cvCppCross{sum}. +\cvCppFunc{gpu::absSum} +Returns sum of matrix elements absolute values. + +\cvdefCpp{Scalar absSum(const GpuMat\& src);\newline +Scalar absSum(const GpuMat\& src, GpuMat\& buf);} + +\begin{description} +\cvarg{src}{Source image of any depth except \texttt{CV\_64F}.} +\cvarg{buf}{Optional buffer to avoid extra memory allocations. It's resized automatically.} +\end{description} + + \cvCppFunc{gpu::sqrSum} Returns squared sum of matrix elements. \cvdefCpp{Scalar sqrSum(const GpuMat\& src);\newline Scalar sqrSum(const GpuMat\& src, GpuMat\& buf);} \begin{description} -\cvarg{src}{Source image of any depth except \texttt{CV\_64F}, single-channel.} +\cvarg{src}{Source image of any depth except \texttt{CV\_64F}.} \cvarg{buf}{Optional buffer to avoid extra memory allocations. It's resized automatically.} \end{description}