Commit ff9da914 authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed bug in checkRange - integer Mats were always in range

parent 6944c0db
......@@ -1990,8 +1990,8 @@ bool checkRange(InputArray _src, bool quiet, Point* pt,
if( depth < CV_32F )
{
double m = 0, M = 0, badValue = 0;
Point mp, MP, badPt(-1,-1);
double m = 0, M = 0;
Point mp, MP;
minMaxLoc(src.reshape(1,0), &m, &M, &mp, &MP);
if( M >= maxVal )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment