Skip to content

Commit a2ec23c

Browse files
committed
Update cv::log documentation
1 parent 22682f9 commit a2ec23c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

modules/core/include/opencv2/core.hpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,14 +1433,11 @@ CV_EXPORTS_W void exp(InputArray src, OutputArray dst);
14331433

14341434
/** @brief Calculates the natural logarithm of every array element.
14351435
1436-
The function log calculates the natural logarithm of the absolute value
1437-
of every element of the input array:
1438-
\f[\texttt{dst} (I) = \fork{\log |\texttt{src}(I)|}{if \(\texttt{src}(I) \ne 0\) }{\texttt{C}}{otherwise}\f]
1436+
The function log calculates the natural logarithm of every element of the input array:
1437+
\f[\texttt{dst} (I) = \log (\texttt{src}(I)) \f]
1438+
1439+
Output on zero, negative and special (NaN, Inf) values is undefined.
14391440
1440-
where C is a large negative number (about -700 in the current
1441-
implementation). The maximum relative error is about 7e-6 for
1442-
single-precision input and less than 1e-10 for double-precision input.
1443-
Special values (NaN, Inf) are not handled.
14441441
@param src input array.
14451442
@param dst output array of the same size and type as src .
14461443
@sa exp, cartToPolar, polarToCart, phase, pow, sqrt, magnitude

0 commit comments

Comments
 (0)