Update cv::log documentation
This commit is contained in:
parent
22682f933a
commit
a2ec23c112
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user