开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜