Documentation does not make it clear that cv::pow() does not handle special values (NaN, Inf) in general (Patch #1739)


Added by Ose Pedro almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-04-02
Priority:Normal Due date:
Assignee:Ilya Lysenkov % Done:

0%

Category:documentation
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision b6452f4b
Added by Ilya Lysenkov almost 13 years ago

Added a note that cv::pow() doesn't handle NaN and Inf values (#1739)

Revision 95767676
Added by Andrey Pavlenko over 11 years ago

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

Also available in: Atom PDF