【发布时间】:2015-12-23 16:36:00
【问题描述】:
我正在尝试在新窗口中获取每个圆圈,但是出现此错误; the error
我不知道为什么会这样。 Rect 对象给出正常值: rect values
代码:
void scanCircle(int x, int y, int h, Mat src, int rad) {
try {
Rect region = Rect(x, y, x + h, y + h);
Mat roi = src(region).clone();
}
catch (...) {
cout << "Error";
}
}
通过谷歌我找到了这个:OpenCv assertion failed
但是我看不出有什么问题。
【问题讨论】: