cvFloor(-DBL_MAX) == INT_MAX && cvCeil(DBL_MAX) == -INT_MAX (Bug #1784)


Added by Andrey Pavlenko almost 13 years ago. Updated almost 13 years ago.


Status:Cancelled Start date:2012-04-10
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

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

Description

As the result the call "cv::checkRange(m)" that should test for NaN and infinite values always returns "false" (will be workaround-ed).


Associated revisions

Revision 7e06b181
Added by Andrey Pavlenko almost 13 years ago

workaround for the 'Bug #1784 (cvFloor/cvCeil)'; typos fixed; two more tests for checkRange

Revision 28e0d3d7
Added by Roman Donchenko over 11 years ago

Merge pull request #1784 from SpecLad:ffmpeg-no-png

History

Updated by Vadim Pisarevsky almost 13 years ago

results of cvRound/cvFloor/cvCeil are not defined if the operands are out of INT_MIN .. INT_MAX range. Adding extra checks for the range will likely slow down the functions dramatically. BTW, it's pointed out in the reference manual.

  • Status changed from Open to Cancelled
  • Target version set to 2.4.0

Also available in: Atom PDF