cvSetErrMode not working
I'm trying to use Parent mode in OpenCV. It seems that OpenCV is ignor开发者_如何学编程ing the cvSetErrMode() call.
fprintf(stderr, "cvSetErrMode(%d) returned %d\n",
CV_ErrModeParent, cvSetErrMode(CV_ErrModeParent));
fprintf(stderr, "cvGetErrMode() returned %d\n", cvGetErrMode());
This returns:
cvSetErrMode(1) returned 0
cvGetErrMode() returned 0
It seems to me that cvGetErrMode() should return 1.
These functions are deprecated in OpenCV 2.x OpenCV still provides stub implementation for backward compatibility.
精彩评论