I'm trying to get every circle in a new window, however I get this error; the error
I don't know why that happends. The Rect object gives normal values: rect values
Code:
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";
}
}
With Google I found this one: OpenCv assertion failed
However I don't see whats wrong.