mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
added additional check in cv::gpu::demosaicing that source is not empty
This commit is contained in:
parent
14ee306b9e
commit
adb2040980
@ -1863,7 +1863,7 @@ void cv::gpu::demosaicing(const GpuMat& src, GpuMat& dst, int code, int dcn, Str
|
||||
{
|
||||
const int depth = src.depth();
|
||||
|
||||
CV_Assert( src.channels() == 1 );
|
||||
CV_Assert( src.channels() == 1 && !src.empty() );
|
||||
|
||||
switch (code)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user