If user closes calibration utility image window, then exit.

This commit is contained in:
Peter Rekdal Sunde
2015-07-09 15:03:23 +02:00
parent 1fafaa6946
commit 2b9e06a9dd

View File

@@ -373,8 +373,7 @@ int main(int argc, char** argv) {
drawImage(imgOriginal);
while (true)
while (cvGetWindowHandle(WINDOW_NAME.c_str()) != 0)
{
char c = waitKey(15);
@@ -387,6 +386,7 @@ int main(int argc, char** argv) {
cout << "prewarp = " << get_config() << endl;
break;
}
}
cvDestroyAllWindows();