Commit d06bdd5b authored by Andrey Pavlenko's avatar Andrey Pavlenko

Merge pull request #6771 from sovrasov:log_doc_fix

parents 67a7826d a2ec23c1
...@@ -1433,14 +1433,11 @@ CV_EXPORTS_W void exp(InputArray src, OutputArray dst); ...@@ -1433,14 +1433,11 @@ CV_EXPORTS_W void exp(InputArray src, OutputArray dst);
/** @brief Calculates the natural logarithm of every array element. /** @brief Calculates the natural logarithm of every array element.
The function log calculates the natural logarithm of the absolute value The function log calculates the natural logarithm of every element of the input array:
of every element of the input array: \f[\texttt{dst} (I) = \log (\texttt{src}(I)) \f]
\f[\texttt{dst} (I) = \fork{\log |\texttt{src}(I)|}{if \(\texttt{src}(I) \ne 0\) }{\texttt{C}}{otherwise}\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 src input array.
@param dst output array of the same size and type as src . @param dst output array of the same size and type as src .
@sa exp, cartToPolar, polarToCart, phase, pow, sqrt, magnitude @sa exp, cartToPolar, polarToCart, phase, pow, sqrt, magnitude
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment