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

pull/1915/head
Vladislav Vinogradov 11 years ago
parent 14ee306b9e
commit adb2040980
  1. 2
      modules/gpu/src/color.cpp

@ -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…
Cancel
Save