Commit adb20409 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

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

parent 14ee306b
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment