1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Check that cv::merge input matrices are not empty.

This commit is contained in:
Alexander Smorkalov
2023-09-08 12:36:46 +03:00
parent d0de575aef
commit 0367a12b92
+1
View File
@@ -118,6 +118,7 @@ void merge(const Mat* mv, size_t n, OutputArray _dst)
CV_INSTRUMENT_REGION();
CV_Assert( mv && n > 0 );
CV_Assert(!mv[0].empty());
int depth = mv[0].depth();
bool allch1 = true;