Here's a simplified version of my app:
Mat img = imread("./picture.png");
namedWindow("Picture", CV_WINDOW_AUTOSIZE);
imshow("Picture", img);
waitKey(0);
When I execute the compiled app (on a MacOS 10.8.2 with OpenCV 2.4.3) the window is opened underneath the terminal window and is not in focus. So, I have to first click on (or tab into) it, and then can hit any key for the waitKey
to be done.
Is it possible to bring the cv::namedWindow
into focus automatically?