mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +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_INSTRUMENT_REGION();
|
||||||
|
|
||||||
CV_Assert( mv && n > 0 );
|
CV_Assert( mv && n > 0 );
|
||||||
|
CV_Assert(!mv[0].empty());
|
||||||
|
|
||||||
int depth = mv[0].depth();
|
int depth = mv[0].depth();
|
||||||
bool allch1 = true;
|
bool allch1 = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user