log function behavior differs from documentation, returns -inf for 0 value elements (Bug #4319)
Description
As per the documentation (http://docs.opencv.org/3.0-beta/modules/core/doc/operations_on_arrays.html#log), the log function should return -700 for elements of the input array that are 0.
In the current stable version (3.0-rc1) however, the function returns -INF for zero values.
This has an impact on TonemapDurand::process(), where BilateralFilter() is called on the result of a log() which returns -INF values when process is called on a grayscale image. BilateralFilter() crashes on arrays containing -INF values. Perhaps BilateralFilter() is not working as intended either.
thank you
History
Updated by Vadim Pisarevsky almost 10 years ago
the crash in TonemapDurand is now avoided: https://github.com/Itseez/opencv/pull/4018. The documentation still needs to be changed
- Category changed from core to documentation
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4982