Merge pull request #24246 from asmorkalov:as/merge_input_check2

Check that cv::merge input matrices are not empty
pull/24252/head
Alexander Smorkalov 1 year ago committed by GitHub
commit 5a042af7e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      modules/core/src/merge.dispatch.cpp

@ -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;

Loading…
Cancel
Save