cvSetErrMode无法正常工作

时间:2011-09-07 18:27:43

标签: opencv

我正在尝试在OpenCV中使用父模式。似乎OpenCV忽略了cvSetErrMode()调用。

fprintf(stderr, "cvSetErrMode(%d) returned %d\n", 
    CV_ErrModeParent, cvSetErrMode(CV_ErrModeParent));
fprintf(stderr, "cvGetErrMode() returned %d\n", cvGetErrMode());

返回:

cvSetErrMode(1) returned 0
cvGetErrMode() returned 0

在我看来,cvGetErrMode()应该返回1.

1 个答案:

答案 0 :(得分:2)

OpenCV 2.x中不推荐使用这些函数.OpenCV仍提供存根实现以实现向后兼容。