mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
Check that cv::merge input matrices are not empty.
This commit is contained in:
parent
d0de575aef
commit
0367a12b92
@ -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…
Reference in New Issue
Block a user