return ok;
}
+namespace
+{
+int quiet_error(int status, const char* func_name,
+ const char* err_msg, const char* file_name,
+ int line, void* userdata )
+{
+ return 0;
+}
+}
+
void cv::drawChessboardCorners( InputOutputArray _image, Size patternSize,
const InputArray& _corners,
bool patternWasFound )
centers.clear();
CirclesGridFinder boxFinder(patternSize, points, parameters);
bool isFound = false;
+#define BE_QUIET 1
+#if BE_QUIET
+ redirectError(quiet_error);
+#endif
try
{
isFound = boxFinder.findHoles();
}
catch (cv::Exception)
{
- }
+ }
+#if BE_QUIET
+ redirectError(0);
+#endif
if (isFound)
{
switch(parameters.gridType)