checkRange() returns false negative (Bug #1783)


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


Status:Done Start date:2012-04-10
Priority:Normal Due date:
Assignee:Andrey Pavlenko % Done:

0%

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

Description

The test below fails for all integer types

TYPED_TEST_P(Core_CheckRange, Zero)
{
    double min_bound = 0.;
    double max_bound = 0.001;

    cv::Mat src = cv::Mat::zeros(3,3, cv::DataDepth<TypeParam>::value);

    ASSERT_TRUE( checkRange(src, true, NULL, min_bound, max_bound) );
}


Associated revisions

Revision dccfd79d
Added by Andrey Pavlenko almost 13 years ago

#1783: test and fix for the bug

Revision 67739141
Added by Roman Donchenko over 11 years ago

Merge pull request #1783 from SpecLad:cap-no-pattern

History

Updated by Andrey Pavlenko almost 13 years ago

  • Description changed from The test below fails for all integer types TYPED_TEST_P(Core_CheckRange, Zer... to The test below fails for all integer types <pre> TYPED_TEST_P(Core_Chec... More

Updated by Andrey Pavlenko almost 13 years ago

Fixed. The root cause was a typo ('<= minVal' instead of '< minVal').

  • Status changed from Open to Done

Also available in: Atom PDF