mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
imgproc(color): clarify error message
This commit is contained in:
parent
c790779a37
commit
b369c456f2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user