Documentation does not make it clear that cv::pow() does not handle special values (NaN, Inf) in general (Patch #1739)
Description
The implementation of cv::pow()
uses cv::log()
and cv::exp()
to handle general exponents (i.e. non-integral exponents, apart from +/-0.5). These functions do not handle special values (NaN, Inf), and so neither does cv::pow()
in general. While the documentation states that cv::log()
and cv::exp()
do not handle special values, it does not state that cv::pow()
does not handle these values in general.
It may not be obvious to users who haven't looked at the OpenCV source code that cv::pow()
relies on cv::log()
and cv::exp()
, so please update the documentation to state that cv::pow()
doesn't generally handle special values (if it had stated this, it would have saved me time tracking down a bug in some code I've written that uses cv::pow()
!).
Associated revisions
Added a note that cv::pow() doesn't handle NaN and Inf values (#1739)
Merge pull request #1739 from pengx17:2.4_ocl_overload_haar
History
Updated by Ilya Lysenkov almost 13 years ago
- Assignee set to Ilya Lysenkov
Updated by Ilya Lysenkov almost 13 years ago
Sorry for your time spent on bug tracking. This note was added in r7897. Thank you for reporting this.
- Status changed from Open to Done
- Target version set to 2.4.0