Commit fb5db234 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #16079 from alalek:imgproc_color_clarify_error_message

parents 0a35b97e b369c456
......@@ -224,7 +224,10 @@ struct OclHelper
int scn = src.channels();
int depth = src.depth();
CV_Assert( VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) );
CV_Check(scn, VScn::contains(scn), "Invalid number of channels in input image");
CV_Check(dcn, VDcn::contains(dcn), "Invalid number of channels in output image");
CV_CheckDepth(depth, VDepth::contains(depth), "Unsupported depth of input image");
switch (sizePolicy)
{
case TO_YUV:
......
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