From a2ec23c11225f8f2f11b2f4c4fef05294f124f34 Mon Sep 17 00:00:00 2001 From: Vladislav Sovrasov Date: Tue, 5 Jul 2016 17:28:53 +0300 Subject: [PATCH] Update cv::log documentation --- modules/core/include/opencv2/core.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/core/include/opencv2/core.hpp b/modules/core/include/opencv2/core.hpp index 906c4d2aa..d875ce2d7 100644 --- a/modules/core/include/opencv2/core.hpp +++ b/modules/core/include/opencv2/core.hpp @@ -1433,14 +1433,11 @@ CV_EXPORTS_W void exp(InputArray src, OutputArray dst); /** @brief Calculates the natural logarithm of every array element. -The function log calculates the natural logarithm of the absolute value -of every element of the input array: -\f[\texttt{dst} (I) = \fork{\log |\texttt{src}(I)|}{if \(\texttt{src}(I) \ne 0\) }{\texttt{C}}{otherwise}\f] +The function log calculates the natural logarithm of every element of the input array: +\f[\texttt{dst} (I) = \log (\texttt{src}(I)) \f] + +Output on zero, negative and special (NaN, Inf) values is undefined. -where C is a large negative number (about -700 in the current -implementation). The maximum relative error is about 7e-6 for -single-precision input and less than 1e-10 for double-precision input. -Special values (NaN, Inf) are not handled. @param src input array. @param dst output array of the same size and type as src . @sa exp, cartToPolar, polarToCart, phase, pow, sqrt, magnitude