mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Check for empty Mat in compare, operator= and RNG::fill, fixed related tests
This commit is contained in:
@@ -411,6 +411,8 @@ Mat& Mat::operator = (const Scalar& s)
|
||||
{
|
||||
CV_INSTRUMENT_REGION()
|
||||
|
||||
if (empty()) return *this;
|
||||
|
||||
const Mat* arrays[] = { this };
|
||||
uchar* dptr;
|
||||
NAryMatIterator it(arrays, &dptr, 1);
|
||||
|
||||
Reference in New Issue
Block a user