Fixed Mat::isContinuous for big matrix (thanks to Boris Mansencal) #2103
This commit is contained in:
@@ -151,7 +151,7 @@ static void updateContinuityFlag(Mat& m)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int64 t = (int64)m.step[0]*m.size[0];
|
int64 t = (int64)m.step[0]*m.size[0];
|
||||||
if( j <= i && t == (int)t )
|
if( j <= i && t == (size_t)t )
|
||||||
m.flags |= Mat::CONTINUOUS_FLAG;
|
m.flags |= Mat::CONTINUOUS_FLAG;
|
||||||
else
|
else
|
||||||
m.flags &= ~Mat::CONTINUOUS_FLAG;
|
m.flags &= ~Mat::CONTINUOUS_FLAG;
|
||||||
|
Reference in New Issue
Block a user