1
0
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:
Maksim Shabunin
2018-07-17 17:50:50 +03:00
parent 1da46fe6fb
commit c473718bc2
5 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -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;