1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Merge pull request #24246 from asmorkalov:as/merge_input_check2

Check that cv::merge input matrices are not empty
This commit is contained in:
Alexander Smorkalov
2023-09-08 13:41:43 +03:00
committed by GitHub
+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;