|
|
|
@ -67,7 +67,7 @@ void check_failed_auto_(const T& v1, const T& v2, const CheckContext& ctx) |
|
|
|
|
ss << "must be " << getTestOpPhraseStr(ctx.testOp) << std::endl; |
|
|
|
|
} |
|
|
|
|
ss << " '" << ctx.p2_str << "' is " << v2; |
|
|
|
|
cv::errorNoReturn(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
cv::error(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
} |
|
|
|
|
void check_failed_MatDepth(const int v1, const int v2, const CheckContext& ctx) |
|
|
|
|
{ |
|
|
|
@ -79,7 +79,7 @@ void check_failed_MatDepth(const int v1, const int v2, const CheckContext& ctx) |
|
|
|
|
ss << "must be " << getTestOpPhraseStr(ctx.testOp) << std::endl; |
|
|
|
|
} |
|
|
|
|
ss << " '" << ctx.p2_str << "' is " << v2 << " (" << depthToString(v2) << ")"; |
|
|
|
|
cv::errorNoReturn(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
cv::error(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
} |
|
|
|
|
void check_failed_MatType(const int v1, const int v2, const CheckContext& ctx) |
|
|
|
|
{ |
|
|
|
@ -91,7 +91,7 @@ void check_failed_MatType(const int v1, const int v2, const CheckContext& ctx) |
|
|
|
|
ss << "must be " << getTestOpPhraseStr(ctx.testOp) << std::endl; |
|
|
|
|
} |
|
|
|
|
ss << " '" << ctx.p2_str << "' is " << v2 << " (" << typeToString(v2) << ")"; |
|
|
|
|
cv::errorNoReturn(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
cv::error(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
} |
|
|
|
|
void check_failed_MatChannels(const int v1, const int v2, const CheckContext& ctx) |
|
|
|
|
{ |
|
|
|
@ -119,7 +119,7 @@ void check_failed_auto_(const T& v, const CheckContext& ctx) |
|
|
|
|
<< " '" << ctx.p2_str << "'" << std::endl |
|
|
|
|
<< "where" << std::endl |
|
|
|
|
<< " '" << ctx.p1_str << "' is " << v; |
|
|
|
|
cv::errorNoReturn(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
cv::error(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
} |
|
|
|
|
void check_failed_MatDepth(const int v, const CheckContext& ctx) |
|
|
|
|
{ |
|
|
|
@ -128,7 +128,7 @@ void check_failed_MatDepth(const int v, const CheckContext& ctx) |
|
|
|
|
<< " '" << ctx.p2_str << "'" << std::endl |
|
|
|
|
<< "where" << std::endl |
|
|
|
|
<< " '" << ctx.p1_str << "' is " << v << " (" << depthToString(v) << ")"; |
|
|
|
|
cv::errorNoReturn(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
cv::error(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
} |
|
|
|
|
void check_failed_MatType(const int v, const CheckContext& ctx) |
|
|
|
|
{ |
|
|
|
@ -137,7 +137,7 @@ void check_failed_MatType(const int v, const CheckContext& ctx) |
|
|
|
|
<< " '" << ctx.p2_str << "'" << std::endl |
|
|
|
|
<< "where" << std::endl |
|
|
|
|
<< " '" << ctx.p1_str << "' is " << v << " (" << typeToString(v) << ")"; |
|
|
|
|
cv::errorNoReturn(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
cv::error(cv::Error::StsError, ss.str(), ctx.func, ctx.file, ctx.line); |
|
|
|
|
} |
|
|
|
|
void check_failed_MatChannels(const int v, const CheckContext& ctx) |
|
|
|
|
{ |
|
|
|
|