added additional check in cv::gpu::demosaicing that source is not empty

This commit is contained in:
Vladislav Vinogradov 2013-12-03 15:55:47 +04:00
parent 14ee306b9e
commit adb2040980

View File

@ -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)
{