mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Added more strict checks for empty inputs to compare, meanStdDev and RNG::fill
This commit is contained in:
@@ -411,7 +411,8 @@ Mat& Mat::operator = (const Scalar& s)
|
||||
{
|
||||
CV_INSTRUMENT_REGION()
|
||||
|
||||
if (empty()) return *this;
|
||||
if (this->empty())
|
||||
return *this;
|
||||
|
||||
const Mat* arrays[] = { this };
|
||||
uchar* dptr;
|
||||
|
||||
Reference in New Issue
Block a user