mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Check for empty Mat in compare, operator= and RNG::fill, fixed related tests
This commit is contained in:
@@ -1233,7 +1233,7 @@ void cv::compare(InputArray _src1, InputArray _src2, OutputArray _dst, int op)
|
||||
CV_Assert( op == CMP_LT || op == CMP_LE || op == CMP_EQ ||
|
||||
op == CMP_NE || op == CMP_GE || op == CMP_GT );
|
||||
|
||||
if(_src1.empty() && _src2.empty())
|
||||
if(_src1.empty() || _src2.empty())
|
||||
{
|
||||
_dst.release();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user