mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Fixed bug in checkRange - integer Mats were always in range
This commit is contained in:
parent
6944c0dba4
commit
ff9da914ec
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user