Stringerror_message="The data is expected as InputArray::STD_VECTOR_MAT (a std::vector<Mat>) or _InputArray::STD_VECTOR_VECTOR (a std::vector< std::vector<...> >).";
CV_Error(CV_StsBadArg,error_message);
CV_Error(Error::StsBadArg,error_message);
}
// number of samples
size_tn=src.total();
...
...
@@ -71,7 +71,7 @@ static Mat asRowMatrix(InputArrayOfArrays src, int rtype, double alpha=1, double
// make sure data can be reshaped, throw exception if not!
if(src.getMat(i).total()!=d){
Stringerror_message=format("Wrong number of elements in matrix #%d! Expected %d was %d.",i,(int)d,(int)src.getMat(i).total());
CV_Error(CV_StsBadArg,error_message);
CV_Error(Error::StsBadArg,error_message);
}
// get a hold of the current row
Matxi=data.row(i);
...
...
@@ -87,7 +87,7 @@ static Mat asRowMatrix(InputArrayOfArrays src, int rtype, double alpha=1, double
CV_Error(CV_StsUnsupportedFormat,"input image must be single channel (gray levels), bgr format (color) or bgra (color with transparency which won't be considered");
CV_Error(Error::StsUnsupportedFormat,"input image must be single channel (gray levels), bgr format (color) or bgra (color with transparency which won't be considered");
returnimageNumberOfChannels>1;// return bool : false for gray level image processing, true for color mode